diff options
author | teor <teor@torproject.org> | 2020-01-14 21:49:29 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2020-03-21 04:07:03 +1000 |
commit | e0eec3bf29cbd5f1d4588040d9f83aa54450291c (patch) | |
tree | c8a767a9315f5a651848d9383188121d208c1db4 /src/test/conf_examples/relay_33 | |
parent | 4b914dea025806b47ba91e5e0a713fb266805a27 (diff) | |
download | tor-e0eec3bf29cbd5f1d4588040d9f83aa54450291c.tar.gz tor-e0eec3bf29cbd5f1d4588040d9f83aa54450291c.zip |
parseconf: Add ORPort and DirPort auto tests
These tests don't actually trigger bug 32588, but they do increase
the coverage of the auto port config code.
Tests for 32588.
Diffstat (limited to 'src/test/conf_examples/relay_33')
-rw-r--r-- | src/test/conf_examples/relay_33/error_no_dirauth_relay | 1 | ||||
-rw-r--r-- | src/test/conf_examples/relay_33/expected | 3 | ||||
-rw-r--r-- | src/test/conf_examples/relay_33/expected_log | 1 | ||||
-rw-r--r-- | src/test/conf_examples/relay_33/torrc | 4 |
4 files changed, 9 insertions, 0 deletions
diff --git a/src/test/conf_examples/relay_33/error_no_dirauth_relay b/src/test/conf_examples/relay_33/error_no_dirauth_relay new file mode 100644 index 0000000000..9f9c0fd8f3 --- /dev/null +++ b/src/test/conf_examples/relay_33/error_no_dirauth_relay @@ -0,0 +1 @@ +This tor was built with relay mode disabled. diff --git a/src/test/conf_examples/relay_33/expected b/src/test/conf_examples/relay_33/expected new file mode 100644 index 0000000000..22567cbe2e --- /dev/null +++ b/src/test/conf_examples/relay_33/expected @@ -0,0 +1,3 @@ +Nickname Unnamed +ORPort 127.0.0.1:auto +ORPort [::1]:auto diff --git a/src/test/conf_examples/relay_33/expected_log b/src/test/conf_examples/relay_33/expected_log new file mode 100644 index 0000000000..d5478c1a15 --- /dev/null +++ b/src/test/conf_examples/relay_33/expected_log @@ -0,0 +1 @@ +Your ContactInfo config option is not set
\ No newline at end of file diff --git a/src/test/conf_examples/relay_33/torrc b/src/test/conf_examples/relay_33/torrc new file mode 100644 index 0000000000..44d16ad31a --- /dev/null +++ b/src/test/conf_examples/relay_33/torrc @@ -0,0 +1,4 @@ +# Relay tests +# explicit IPv4 ORPort auto and IPv6 ORPort auto +ORPort 127.0.0.1:auto +ORPort [::1]:auto |