summaryrefslogtreecommitdiff
path: root/src/test/include.am
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-09-11 14:50:06 -0400
committerNick Mathewson <nickm@torproject.org>2019-09-14 19:00:41 -0400
commit7c7e8402b599515846cbb77ab4cbb5520f8463d8 (patch)
treed00a7d874775c4921a7bf3a3f2c9db357d048503 /src/test/include.am
parent41261c3b5cd505f5a601c319eb484866903814af (diff)
downloadtor-7c7e8402b599515846cbb77ab4cbb5520f8463d8.tar.gz
tor-7c7e8402b599515846cbb77ab4cbb5520f8463d8.zip
Add a test script to try parsing and encoding Tor configurations
This script takes a set of example torrcs and command-lines from src/test/conf_examples. If a success is expected, it runs "tor --dump-config" and compares the result with the one we expect. If a failure is expected, it runs "tor --verify-config" and greps for the error we expect.
Diffstat (limited to 'src/test/include.am')
-rw-r--r--src/test/include.am6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/include.am b/src/test/include.am
index 931e054988..2dd4d8c583 100644
--- a/src/test/include.am
+++ b/src/test/include.am
@@ -24,7 +24,8 @@ TESTSCRIPTS = \
src/test/test_workqueue_pipe2.sh \
src/test/test_workqueue_socketpair.sh \
src/test/test_switch_id.sh \
- src/test/test_cmdline.sh
+ src/test/test_cmdline.sh \
+ src/test/test_parseconf.sh
if USE_RUST
TESTSCRIPTS += \
@@ -414,7 +415,8 @@ EXTRA_DIST += \
src/test/test_workqueue_pipe.sh \
src/test/test_workqueue_pipe2.sh \
src/test/test_workqueue_socketpair.sh \
- src/test/test_cmdline.sh
+ src/test/test_cmdline.sh \
+ src/test/test_parseconf.sh
test-rust:
$(TESTS_ENVIRONMENT) "$(abs_top_srcdir)/src/test/test_rust.sh"