Testing
The repository includes regression tests under tests/.
Available Test Suites
pert_testrad_testvolc_test
Run all test suites:
make -C src check
Run a single suite:
make -C src pert_test
make -C src rad_test
make -C src volc_test
What The Tests Do
The test scripts:
- set
LD_LIBRARY_PATHto the locally built libraries inlibs/build/lib - set
OMP_NUM_THREADS=4 - reconstruct the bundled split Level-1B test archive in
tests/data/ - create fresh output directories inside each suite
- compare generated output against
data.ref/
Because the tests regenerate files locally, running them changes contents under
the corresponding tests/*/data/ directories.
Test Data
The test input archive is stored in:
tests/data/cris_l1b.ziptests/data/cris_l1b.z01
The suite scripts combine and unpack the archive before executing the binaries.
When To Run Which Test
- use
rad_testafter changes related tospec2tabormap_rad - use
pert_testafter changes related to perturbation, noise, mapping, or variance logic - use
volc_testafter changes related to volcanic index calculations - run
make -C src checkafter shared-library changes such as edits inlibcris.c