]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add an integration test for options disabled by dirauth subsystem.
authorNick Mathewson <nickm@torproject.org>
Mon, 16 Dec 2019 00:05:17 +0000 (19:05 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 19 Dec 2019 12:54:56 +0000 (07:54 -0500)
src/test/conf_examples/dirauth_2/expected [new file with mode: 0644]
src/test/conf_examples/dirauth_2/expected_log [new file with mode: 0644]
src/test/conf_examples/dirauth_2/expected_log_no_dirauth [new file with mode: 0644]
src/test/conf_examples/dirauth_2/expected_log_no_dirauth_relay [new file with mode: 0644]
src/test/conf_examples/dirauth_2/expected_no_dirauth [new file with mode: 0644]
src/test/conf_examples/dirauth_2/expected_no_dirauth_relay [new file with mode: 0644]
src/test/conf_examples/dirauth_2/torrc [new file with mode: 0644]

diff --git a/src/test/conf_examples/dirauth_2/expected b/src/test/conf_examples/dirauth_2/expected
new file mode 100644 (file)
index 0000000..19ab024
--- /dev/null
@@ -0,0 +1 @@
+AuthDirMaxServersPerAddr 8
diff --git a/src/test/conf_examples/dirauth_2/expected_log b/src/test/conf_examples/dirauth_2/expected_log
new file mode 100644 (file)
index 0000000..88611fe
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file
diff --git a/src/test/conf_examples/dirauth_2/expected_log_no_dirauth b/src/test/conf_examples/dirauth_2/expected_log_no_dirauth
new file mode 100644 (file)
index 0000000..01110c5
--- /dev/null
@@ -0,0 +1 @@
+This copy of Tor was built without support for the option "AuthDirMaxServersPerAddr". Skipping.
\ No newline at end of file
diff --git a/src/test/conf_examples/dirauth_2/expected_log_no_dirauth_relay b/src/test/conf_examples/dirauth_2/expected_log_no_dirauth_relay
new file mode 100644 (file)
index 0000000..01110c5
--- /dev/null
@@ -0,0 +1 @@
+This copy of Tor was built without support for the option "AuthDirMaxServersPerAddr". Skipping.
\ No newline at end of file
diff --git a/src/test/conf_examples/dirauth_2/expected_no_dirauth b/src/test/conf_examples/dirauth_2/expected_no_dirauth
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/src/test/conf_examples/dirauth_2/expected_no_dirauth_relay b/src/test/conf_examples/dirauth_2/expected_no_dirauth_relay
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/src/test/conf_examples/dirauth_2/torrc b/src/test/conf_examples/dirauth_2/torrc
new file mode 100644 (file)
index 0000000..bd1cdbc
--- /dev/null
@@ -0,0 +1,5 @@
+#
+# This will get accepted if the module is enabled, and ignored if the module
+# is disabled.
+#
+AuthDirMaxServersPerAddr 8