diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-03-26 12:37:49 -0400 |
---|---|---|
committer | teor <teor@torproject.org> | 2020-04-07 17:35:51 +1000 |
commit | 9b434b79ce74dab0498fc0ee1df5df3b2441cfad (patch) | |
tree | 33e94aa660c3a7b164c475ff38df0b195b74fa7a /scripts/maint | |
parent | 978b7ef45c21169a01a81cd1b206530cbcd47fe2 (diff) | |
download | tor-9b434b79ce74dab0498fc0ee1df5df3b2441cfad.tar.gz tor-9b434b79ce74dab0498fc0ee1df5df3b2441cfad.zip |
Add a test script to check subsystem order as part of make check.
Diffstat (limited to 'scripts/maint')
-rwxr-xr-x | scripts/maint/run_check_subsystem_order.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/maint/run_check_subsystem_order.sh b/scripts/maint/run_check_subsystem_order.sh new file mode 100755 index 0000000000..1e68b9d008 --- /dev/null +++ b/scripts/maint/run_check_subsystem_order.sh @@ -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 |