mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 15:43:32 +01:00
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.
This commit is contained in:
parent
5d98b54725
commit
fa60fee8d5
3
changes/ticket31304
Normal file
3
changes/ticket31304
Normal file
@ -0,0 +1,3 @@
|
||||
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
|
||||
# ...
|
||||
|
Loading…
Reference in New Issue
Block a user