Re: [gdal-dev] Testing the driver

2024-03-12 Thread Abel Pau via gdal-dev
l Pau ; gdal-dev@lists.osgeo.org Asunto: Re: [gdal-dev] Testing the driver ok, I've looked a bit at the code So I believe the issue is that - https://github.com/OSGeo/gdal/blob/master/apps/test_ogrsf.cpp#L1064 forms a "/foo/test.pol" filename for the miramon driver and call Crea

Re: [gdal-dev] Testing the driver

2024-03-11 Thread Even Rouault via gdal-dev
IMkdir() *Perhaps if the destination folder doesn’t exist I should NOT create it and return a FAILURE?* *De:*Abel Pau *Enviado el:* dimecres, 6 de març de 2024 16:24 *Para:* Abel Pau ; Even Rouault ; gdal-dev@lists.osgeo.org *Asunto:* RE: [gdal-dev] Testing the driver Hi, It seems nothing chang

Re: [gdal-dev] Testing the driver

2024-03-11 Thread Abel Pau via gdal-dev
ow to delete that? I don’t use anymore: VSIMkdirRecursive(). I use VSIMkdir() Perhaps if the destination folder doesn’t exist I should NOT create it and return a FAILURE? De: Abel Pau Enviado el: dimecres, 6 de març de 2024 16:24 Para: Abel Pau ; Even Rouault ; gdal-dev@lists.osgeo.org Asunto: RE

Re: [gdal-dev] Testing the driver

2024-03-08 Thread Javier Jimenez Shaw via gdal-dev
:* gdal-dev *En nombre de *Abel Pau > via gdal-dev > *Enviado el:* dijous, 7 de març de 2024 23:42 > *Para:* Even Rouault ; Andrew C Aitchison < > and...@aitchison.me.uk>; Daniel Evans > *CC:* 'gdal-dev@lists.osgeo.org' (gdal-dev@lists.osgeo.org) < > gdal-de

Re: [gdal-dev] Testing the driver

2024-03-08 Thread Abel Pau via gdal-dev
via gdal-dev Enviado el: dijous, 7 de març de 2024 23:42 Para: Even Rouault ; Andrew C Aitchison ; Daniel Evans CC: 'gdal-dev@lists.osgeo.org' (gdal-dev@lists.osgeo.org) Asunto: Re: [gdal-dev] Testing the driver Hi, It’s in debug mode, yes, as you suggested. yes, it crashes in th

Re: [gdal-dev] Testing the driver

2024-03-07 Thread Abel Pau via gdal-dev
Re: [gdal-dev] Testing the driver At #10 we can see the variable nNum set to a non-sense megabignumber. Is it on a -DCMAKE_BUILD_TYPE=Debug build ? Otherwise stack traces and variable content in the debugger might look like garbage because of optimizations. If it is a debug build, then ther

Re: [gdal-dev] Testing the driver

2024-03-07 Thread Even Rouault via gdal-dev
At #10 we can see the variable nNum set to a non-sense megabignumber. Is it on a -DCMAKE_BUILD_TYPE=Debug build ? Otherwise stack traces and variable content in the debugger might look like garbage because of optimizations. If it is a debug build, then there's likely some memory corruption o

Re: [gdal-dev] Testing the driver

2024-03-07 Thread Abel Pau via gdal-dev
-Mensaje original- De: Andrew C Aitchison Enviado el: dijous, 7 de març de 2024 1:01 Para: Daniel Evans CC: Abel Pau ; 'gdal-dev@lists.osgeo.org' (gdal-dev@lists.osgeo.org) Asunto: Re: [gdal-dev] Testing the driver On Wed, 6 Mar 2024, Daniel Evans via gdal-dev wrote: >

Re: [gdal-dev] Testing the driver

2024-03-06 Thread Andrew C Aitchison via gdal-dev
On Wed, 6 Mar 2024, Daniel Evans via gdal-dev wrote: Is it worth moving this in-depth discussion to a PR or similar for the new driver? My thinking is that a lengthy discussion on memory leak detection techniques in C++, how to run tests in Python, etc., aren't topics relevant to most GDAL mail

Re: [gdal-dev] Testing the driver

2024-03-06 Thread Daniel Evans via gdal-dev
2 > *Para:* Abel Pau ; gdal-dev@lists.osgeo.org > *Asunto:* Re: [gdal-dev] Testing the driver > > > > PYTHONMALLOC=malloc gdb --args python3 -m pytest > autotest/ogr/ogr_miramon_vector.py > > PYTHONMALLOC=malloc valgrind python3 -m pytest > autotest/ogr/ogr_miramon_vect

Re: [gdal-dev] Testing the driver

2024-03-06 Thread Abel Pau via gdal-dev
I was using ubuntu 20.04 and it doesn’t work there. Trying to install 22.04 but I have some issues (again). De: Even Rouault Enviado el: dimecres, 6 de març de 2024 17:12 Para: Abel Pau ; gdal-dev@lists.osgeo.org Asunto: Re: [gdal-dev] Testing the driver PYTHONMALLOC=malloc gdb --args

Re: [gdal-dev] Testing the driver

2024-03-06 Thread Even Rouault via gdal-dev
uot;/usr/local/lib/python3.8/dist-packages/pluggy/_hooks.py", line 501 in __call__ File "/usr/local/lib/python3.8/dist-packages/_pytest/main.py", line 327 in _main File "/usr/local/lib/python3.8/dist-packages/_pytest/main.py", line 273 in wrap_session File "/us

Re: [gdal-dev] Testing the driver

2024-03-06 Thread Abel Pau via gdal-dev
com/AbelPau/gdal/actions/runs/8172351502/job/22342474513> De: gdal-dev En nombre de Abel Pau via gdal-dev Enviado el: dimecres, 6 de març de 2024 13:52 Para: Even Rouault ; gdal-dev@lists.osgeo.org Asunto: Re: [gdal-dev] Testing the driver Ok, I ‘ve changed that. Let’s see if it’s the p

Re: [gdal-dev] Testing the driver

2024-03-06 Thread Abel Pau via gdal-dev
"/usr/local/lib/python3.8/dist-packages/_pytest/runner.py", line 223 in call_and_report File "/usr/local/lib/python3.8/dist-packages/_pytest/runner.py", line 134 in runtestprotocol File "/usr/local/lib/python3.8/dist-packages/_pytest/runner.py", line 115 in pyt

Re: [gdal-dev] Testing the driver

2024-03-06 Thread Abel Pau via gdal-dev
ic_test.py ✓✓ 100% ██ Results (5.98s): 66 passed De: Even Rouault Enviado el: dimecres, 6 de març de 2024 13:09 Para: Abel Pau ; gdal-dev@lists.osgeo.org Asunto: Re: [gdal-dev] Testing the driver Hi, I don't see anything wrong. I've tried that on m

Re: [gdal-dev] Testing the driver

2024-03-06 Thread Abel Pau via gdal-dev
Ok, I ‘ve changed that. Let’s see if it’s the problem. It’s all so delicate :) Thanks again! De: Even Rouault Enviado el: dimecres, 6 de març de 2024 13:36 Para: Abel Pau ; gdal-dev@lists.osgeo.org Asunto: Re: [gdal-dev] Testing the driver Le 06/03/2024 à 13:14, Abel Pau a écrit : Hi Even, I

Re: [gdal-dev] Testing the driver

2024-03-06 Thread Even Rouault via gdal-dev
Para:* Abel Pau ; gdal-dev@lists.osgeo.org *Asunto:* Re: [gdal-dev] Testing the driver Hi, I don't see anything wrong. I've tried that on my native Linux build and the test_ogr_miramon_vector_1() is found. Does "pytest autotest/ogr/ogr_basic_test.py" work?* Note: you don&#x

Re: [gdal-dev] Testing the driver

2024-03-06 Thread Abel Pau via gdal-dev
e_133(): Do you know what it can be? De: Even Rouault Enviado el: dimecres, 6 de març de 2024 13:09 Para: Abel Pau ; gdal-dev@lists.osgeo.org Asunto: Re: [gdal-dev] Testing the driver Hi, I don't see anything wrong. I've tried that on my native Linux build and the test_ogr_miramon

Re: [gdal-dev] Testing the driver

2024-03-06 Thread Even Rouault via gdal-dev
t;) == "2" ds = None except Exception as e: pytest.fail(f"Test failed with exception: {e}") *De:*Even Rouault *Enviado el:* divendres, 9 de febrer de 2024 11:48 *Para:* Abel Pau ; gdal-dev@lists.osgeo.org *Asunto:* Re: [gdal-dev] Testing the driver Abel, Le 09/02/2024 à

Re: [gdal-dev] Testing the driver

2024-03-05 Thread Abel Pau via gdal-dev
pytest.fail(f"Test failed with exception: {e}") De: Even Rouault Enviado el: divendres, 9 de febrer de 2024 11:48 Para: Abel Pau ; gdal-dev@lists.osgeo.org Asunto: Re: [gdal-dev] Testing the driver Abel, Le 09/02/2024 à 10:55, Abel Pau via gdal-dev a écrit : Hi, I am at the l

Re: [gdal-dev] Testing the driver

2024-02-18 Thread Andrew C Aitchison via gdal-dev
On Sun, 18 Feb 2024, Even Rouault wrote: Le 10/02/2024 à 18:34, Andrew C Aitchison via gdal-dev a écrit : On Sat, 10 Feb 2024, Even Rouault via gdal-dev wrote: To test your own development, you may have a more pleasant experience by directly running just the tests for your driver with somethi

Re: [gdal-dev] Testing the driver

2024-02-18 Thread Even Rouault via gdal-dev
Le 10/02/2024 à 18:34, Andrew C Aitchison via gdal-dev a écrit : On Sat, 10 Feb 2024, Even Rouault via gdal-dev wrote: To test your own development, you may have a more pleasant experience by directly running just the tests for your driver with something like "pytest autotest/ogr/ogr_miramo

Re: [gdal-dev] Testing the driver

2024-02-10 Thread Andrew C Aitchison via gdal-dev
On Sat, 10 Feb 2024, Even Rouault via gdal-dev wrote: To test your own development, you may have a more pleasant experience by directly running just the tests for your driver with something like "pytest autotest/ogr/ogr_miramon.py"  (be careful on Windows, the content of $build_dir/autotest

Re: [gdal-dev] Testing the driver

2024-02-09 Thread Even Rouault via gdal-dev
To test your own development, you may have a more pleasant experience by directly running just the tests for your driver with something like "pytest autotest/ogr/ogr_miramon.py"  (be careful on Windows, the content of $build_dir/autotest is copied from $source_dir/autotest each time "cmake" i

Re: [gdal-dev] Testing the driver

2024-02-09 Thread Even Rouault via gdal-dev
Abel, Le 09/02/2024 à 10:55, Abel Pau via gdal-dev a écrit : Hi, I am at the lasts steps before pulling a request about the MiraMon driver. I need to write some documentation and formalize the tests. After that, I’ll do the pull request to github. I'd suggest first before issuing the pull

[gdal-dev] Testing the driver

2024-02-09 Thread Abel Pau via gdal-dev
Hi, I am at the lasts steps before pulling a request about the MiraMon driver. I need to write some documentation and formalize the tests. After that, I'll do the pull request to github. I am a little confused about the testing. I can use pytest or ctest, right? Which is the favourite? Are there