aboutsummaryrefslogtreecommitdiff
path: root/src/test/conf_examples/lzma_zstd_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/lzma_zstd_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/lzma_zstd_1')
-rw-r--r--src/test/conf_examples/lzma_zstd_1/error1
-rw-r--r--src/test/conf_examples/lzma_zstd_1/error_lzma1
-rw-r--r--src/test/conf_examples/lzma_zstd_1/error_lzma_zstd1
-rw-r--r--src/test/conf_examples/lzma_zstd_1/error_zstd1
-rw-r--r--src/test/conf_examples/lzma_zstd_1/torrc4
5 files changed, 8 insertions, 0 deletions
diff --git a/src/test/conf_examples/lzma_zstd_1/error b/src/test/conf_examples/lzma_zstd_1/error
new file mode 100644
index 0000000000..a5531ca21e
--- /dev/null
+++ b/src/test/conf_examples/lzma_zstd_1/error
@@ -0,0 +1 @@
+Tor 0.* running on .* with Libevent .*, .*, Zlib .*, Liblzma N/A, and Libzstd N/A
diff --git a/src/test/conf_examples/lzma_zstd_1/error_lzma b/src/test/conf_examples/lzma_zstd_1/error_lzma
new file mode 100644
index 0000000000..2947e5991b
--- /dev/null
+++ b/src/test/conf_examples/lzma_zstd_1/error_lzma
@@ -0,0 +1 @@
+Tor 0.* running on .* with Libevent .*, .*, Zlib .*, Liblzma .*, and Libzstd N/A
diff --git a/src/test/conf_examples/lzma_zstd_1/error_lzma_zstd b/src/test/conf_examples/lzma_zstd_1/error_lzma_zstd
new file mode 100644
index 0000000000..e76e4357f8
--- /dev/null
+++ b/src/test/conf_examples/lzma_zstd_1/error_lzma_zstd
@@ -0,0 +1 @@
+Tor 0.* running on .* with Libevent .*, .*, Zlib .*, Liblzma .*, and Libzstd .* \ No newline at end of file
diff --git a/src/test/conf_examples/lzma_zstd_1/error_zstd b/src/test/conf_examples/lzma_zstd_1/error_zstd
new file mode 100644
index 0000000000..c8b174423b
--- /dev/null
+++ b/src/test/conf_examples/lzma_zstd_1/error_zstd
@@ -0,0 +1 @@
+Tor 0.* running on .* with Libevent .*, .*, Zlib .*, Liblzma N/A, and Libzstd .* \ No newline at end of file
diff --git a/src/test/conf_examples/lzma_zstd_1/torrc b/src/test/conf_examples/lzma_zstd_1/torrc
new file mode 100644
index 0000000000..91a4656b77
--- /dev/null
+++ b/src/test/conf_examples/lzma_zstd_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