This document explains how to run HAlign-4 tests under the test/ directory.
HAlign-4 uses doctest for unit tests and CTest for registration.
Use the helper script:
cd test
./run_tests.sh -t Release -j 8What it does:
- configures the test build into
build-test/(or your chosen-Bdirectory) - builds the test binaries
- runs
ctest(verbose by default)
Example: run the align test only:
cd test
./run_tests.sh -t Release -- -- -R align(Everything after -- is passed to ctest.)
Some tests are heavier and are guarded by an environment variable.
cd test
./run_tests.sh -t Release --perfThis sets:
HALIGN4_RUN_PERF=1
To build tests into a custom directory:
cd test
./run_tests.sh -B ../build-test-release -t Release -j 16To clean rebuild:
cd test
./run_tests.sh --clean -t ReleaseIf you already have a configured build directory:
ctest --test-dir build-test -VThe repository includes small datasets that are useful for smoke tests and documentation examples:
test/data/mt1x.fasta.gz(minimal dataset)test/data/covid-ref.fasta.gz/test/data/covid-test.fasta.gz
For runnable CLI examples, see docs/usage.md.