aboutsummaryrefslogtreecommitdiff
path: root/src/test/conf_examples/nss_1
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-11-06 16:52:40 +1000
committerteor <teor@torproject.org>2019-11-06 21:36:42 +1000
commit22482fd45472525c5ebaf2e68880b61b7703cad3 (patch)
treeead9834defa347f497d04a7fc20ad01027702530 /src/test/conf_examples/nss_1
parent85e566a6a0541b141b694152ac99912d3a349dca (diff)
downloadtor-22482fd45472525c5ebaf2e68880b61b7703cad3.tar.gz
tor-22482fd45472525c5ebaf2e68880b61b7703cad3.zip
test/parseconf: Add support for optional library variants
test_parseconf.sh now supports: * {error,expected}{,_lzma,_nss,_zstd}{,_no_dirauth,_no_relay_dirauth} Or any combination of two or more optional libraries. Closes ticket 32397.
Diffstat (limited to 'src/test/conf_examples/nss_1')
-rw-r--r--src/test/conf_examples/nss_1/error1
-rw-r--r--src/test/conf_examples/nss_1/error_nss1
-rw-r--r--src/test/conf_examples/nss_1/torrc4
3 files changed, 6 insertions, 0 deletions
diff --git a/src/test/conf_examples/nss_1/error b/src/test/conf_examples/nss_1/error
new file mode 100644
index 0000000000..32e8cfc2f8
--- /dev/null
+++ b/src/test/conf_examples/nss_1/error
@@ -0,0 +1 @@
+Tor 0.* running on .* with Libevent .*, OpenSSL .*, Zlib .*, Liblzma .*, and Libzstd .*
diff --git a/src/test/conf_examples/nss_1/error_nss b/src/test/conf_examples/nss_1/error_nss
new file mode 100644
index 0000000000..c0fe7b003c
--- /dev/null
+++ b/src/test/conf_examples/nss_1/error_nss
@@ -0,0 +1 @@
+Tor 0.* running on .* with Libevent .*, NSS .*, Zlib .*, Liblzma .*, and Libzstd .*
diff --git a/src/test/conf_examples/nss_1/torrc b/src/test/conf_examples/nss_1/torrc
new file mode 100644
index 0000000000..91a4656b77
--- /dev/null
+++ b/src/test/conf_examples/nss_1/torrc
@@ -0,0 +1,4 @@
+# Deliberately bad options, to cause an error message
+# But this test actually checks for the optional library list in tor's logs,
+# not the error message
+bad bad bad \ No newline at end of file