mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Add a test script to check subsystem order as part of make check.
This commit is contained in:
parent
978b7ef45c
commit
9b434b79ce
17
scripts/maint/run_check_subsystem_order.sh
Executable file
17
scripts/maint/run_check_subsystem_order.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
TOR="${abs_top_builddir:-.}/src/app/tor"
|
||||
|
||||
INCLUDES_PY="${abs_top_srcdir:-.}/scripts/maint/practracker/includes.py"
|
||||
|
||||
if ! test -x "${INCLUDES_PY}" ; then
|
||||
echo "skip"
|
||||
exit 77
|
||||
fi
|
||||
|
||||
"${TOR}" --dbg-dump-subsystem-list | \
|
||||
"${INCLUDES_PY}" --check-subsystem-order -
|
||||
|
||||
echo ok
|
@ -37,7 +37,8 @@ TESTSCRIPTS += \
|
||||
src/test/test_ntor.sh \
|
||||
src/test/test_hs_ntor.sh \
|
||||
src/test/test_bt.sh \
|
||||
scripts/maint/practracker/test_practracker.sh
|
||||
scripts/maint/practracker/test_practracker.sh \
|
||||
scripts/maint/run_check_subsystem_order.sh
|
||||
|
||||
if COVERAGE_ENABLED
|
||||
# ...
|
||||
@ -430,6 +431,7 @@ EXTRA_DIST += \
|
||||
src/test/test_rebind.sh \
|
||||
src/test/test_rebind.py \
|
||||
src/test/zero_length_keys.sh \
|
||||
scripts/maint/run_check_subsystem_order.sh \
|
||||
src/test/rust_supp.txt \
|
||||
src/test/test_keygen.sh \
|
||||
src/test/test_key_expiration.sh \
|
||||
|
Loading…
Reference in New Issue
Block a user