Skip to content
Snippets Groups Projects
Commit fa60fee8 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

practracker: Add unit tests to test script, and test script to makefile

This makes all of the practracker tests get run by make check, and
hence by our CI.

Closes ticket 31304.
parent 5d98b547
No related branches found
No related tags found
No related merge requests found
o Minor features (tests):
- The practracker tests are now run as part of the Tor test suite.
Closes ticket 31304.
......@@ -29,6 +29,10 @@ run_practracker() {
"${DATA}/" "$@";
}
echo "unit tests:"
"${PYTHON:-python}" "${PRACTRACKER_DIR}/practracker_tests.py" || exit 1
echo "ex0:"
run_practracker --exceptions "${DATA}/ex0.txt" > "${TMPDIR}/ex0-received.txt"
......
......@@ -31,7 +31,11 @@ TESTSCRIPTS += \
endif
if USEPYTHON
TESTSCRIPTS += src/test/test_ntor.sh src/test/test_hs_ntor.sh src/test/test_bt.sh
TESTSCRIPTS += \
src/test/test_ntor.sh \
src/test/test_hs_ntor.sh \
src/test/test_bt.sh \
scripts/maint/practracker/test_practracker.sh
if COVERAGE_ENABLED
# ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment