-
Notifications
You must be signed in to change notification settings - Fork 78
Description
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!