Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging Environment Issues: Troubleshooting Errors in Test Suite Execution #82

Open
xuezhicang opened this issue Sep 24, 2024 · 0 comments

Comments

@xuezhicang
Copy link

I’m currently trying to determine whether my program has been successfully built, or if there’s a problem with my environment. Could you help me?

After compiling RichDEM, I ran the test program (richdem_tests.exe located in /richdem/build/tests) and encountered the following errors:

===============================================================================
/lstr/richdem/tests/tests.cpp:40:
TEST CASE: Test padding on load

/lstr/richdem/tests/tests.cpp:40: ERROR: test case THREW exception: Could not open file 'ones_block.dem' with GDAL!

===============================================================================
/lstr/richdem/tests/tests.cpp:138:
TEST CASE: Checking flow accumulation

/lstr/richdem/tests/tests.cpp:138: ERROR: test case THREW exception: filesystem error: directory iterator cannot open directory: No such file or directory [flow_accum]

ERROR 4: depressions/testdem1.dem: No such file or directory

/lstr/richdem/tests/tests.cpp:236:
TEST CASE: Checking depression filling

/lstr/richdem/tests/tests.cpp:236: ERROR: test case THREW exception: Could not open file 'depressions/testdem1.dem' with GDAL!

ERROR 4: breaching/testdem1.dem: No such file or directory

/lstr/richdem/tests/tests.cpp:296:
TEST CASE: Checking depression breaching

/lstr/richdem/tests/tests.cpp:296: ERROR: test case THREW exception: Could not open file 'breaching/testdem1.dem' with GDAL!

ERROR 4: beauford/beauford.tif: No such file or directory

/lstr/richdem/tests/tests.cpp:360:
TEST CASE: Checking flow accumulation

/lstr/richdem/tests/tests.cpp:360: ERROR: test case THREW exception: Could not open file 'beauford/beauford.tif' with GDAL!

===============================================================================
[doctest] test cases: 27 | 22 passed | 5 failed | 0 skipped
[doctest] assertions: 224162 | 224162 passed | 0 failed |
[doctest] Status: FAILURE!

I suspect that many of the issues are related to the 'file does not exist' error. I found some files in the /richdem/tests folder and copied them to the /richdem/build/tests folder, but I am still encountering error messages. The errors are listed below, and I've attached the file if you're interested in reviewing it.

===============================================================================
/lstr/sahara/marssim/z1747635_gis/richdem/tests/tests.cpp:296:
TEST CASE: Checking depression breaching
Lindsay2016 Constrained Breaching (Length=4, Depth=3)

/lstr/sahara/marssim/z1747635_gis/richdem/tests/tests.cpp:354: FATAL ERROR: REQUIRE( elevation==manually_flooded ) is NOT correct!
values: REQUIRE( {?} == {?} )

===============================================================================
/lst/richdem/tests/tests.cpp:360:
TEST CASE: Checking flow accumulation

/lstr/richdem/tests/tests.cpp:360: ERROR: test case THREW exception: Could not open file 'beauford/beauford.tif' with GDAL!

===============================================================================
[doctest] test cases: 27 | 25 passed | 2 failed | 0 skipped
[doctest] assertions: 224256 | 224255 passed | 1 failed |
[doctest] Status: FAILURE!

test_res.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant