mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
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.
This commit is contained in:
parent
4b914dea02
commit
e0eec3bf29
1
src/test/conf_examples/relay_30/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_30/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
|||||||
|
This tor was built with relay mode disabled.
|
2
src/test/conf_examples/relay_30/expected
Normal file
2
src/test/conf_examples/relay_30/expected
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
Nickname Unnamed
|
||||||
|
ORPort auto
|
1
src/test/conf_examples/relay_30/expected_log
Normal file
1
src/test/conf_examples/relay_30/expected_log
Normal file
@ -0,0 +1 @@
|
|||||||
|
Your ContactInfo config option is not set
|
3
src/test/conf_examples/relay_30/torrc
Normal file
3
src/test/conf_examples/relay_30/torrc
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Relay tests
|
||||||
|
# default (IPv4) ORPort auto
|
||||||
|
ORPort auto
|
1
src/test/conf_examples/relay_31/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_31/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
|||||||
|
This tor was built with relay mode disabled.
|
3
src/test/conf_examples/relay_31/expected
Normal file
3
src/test/conf_examples/relay_31/expected
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
DirPort auto
|
||||||
|
Nickname Unnamed
|
||||||
|
ORPort auto
|
1
src/test/conf_examples/relay_31/expected_log
Normal file
1
src/test/conf_examples/relay_31/expected_log
Normal file
@ -0,0 +1 @@
|
|||||||
|
Your ContactInfo config option is not set
|
4
src/test/conf_examples/relay_31/torrc
Normal file
4
src/test/conf_examples/relay_31/torrc
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Relay tests
|
||||||
|
# default (IPv4) ORPort and DirPort auto
|
||||||
|
ORPort auto
|
||||||
|
DirPort auto
|
1
src/test/conf_examples/relay_32/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_32/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
|||||||
|
This tor was built with relay mode disabled.
|
3
src/test/conf_examples/relay_32/expected
Normal file
3
src/test/conf_examples/relay_32/expected
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Nickname Unnamed
|
||||||
|
ORPort auto
|
||||||
|
ORPort [::1]:auto
|
1
src/test/conf_examples/relay_32/expected_log
Normal file
1
src/test/conf_examples/relay_32/expected_log
Normal file
@ -0,0 +1 @@
|
|||||||
|
Your ContactInfo config option is not set
|
4
src/test/conf_examples/relay_32/torrc
Normal file
4
src/test/conf_examples/relay_32/torrc
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Relay tests
|
||||||
|
# default (IPv4) ORPort auto and IPv6 ORPort auto
|
||||||
|
ORPort auto
|
||||||
|
ORPort [::1]:auto
|
1
src/test/conf_examples/relay_33/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_33/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
|||||||
|
This tor was built with relay mode disabled.
|
3
src/test/conf_examples/relay_33/expected
Normal file
3
src/test/conf_examples/relay_33/expected
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Nickname Unnamed
|
||||||
|
ORPort 127.0.0.1:auto
|
||||||
|
ORPort [::1]:auto
|
1
src/test/conf_examples/relay_33/expected_log
Normal file
1
src/test/conf_examples/relay_33/expected_log
Normal file
@ -0,0 +1 @@
|
|||||||
|
Your ContactInfo config option is not set
|
4
src/test/conf_examples/relay_33/torrc
Normal file
4
src/test/conf_examples/relay_33/torrc
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Relay tests
|
||||||
|
# explicit IPv4 ORPort auto and IPv6 ORPort auto
|
||||||
|
ORPort 127.0.0.1:auto
|
||||||
|
ORPort [::1]:auto
|
1
src/test/conf_examples/relay_34/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_34/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
|||||||
|
This tor was built with relay mode disabled.
|
4
src/test/conf_examples/relay_34/expected
Normal file
4
src/test/conf_examples/relay_34/expected
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
DirPort 127.0.0.1:auto
|
||||||
|
Nickname Unnamed
|
||||||
|
ORPort 127.0.0.1:auto
|
||||||
|
ORPort [::1]:auto
|
1
src/test/conf_examples/relay_34/expected_log
Normal file
1
src/test/conf_examples/relay_34/expected_log
Normal file
@ -0,0 +1 @@
|
|||||||
|
Your ContactInfo config option is not set
|
5
src/test/conf_examples/relay_34/torrc
Normal file
5
src/test/conf_examples/relay_34/torrc
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Relay tests
|
||||||
|
# explicit IPv4 ORPort and DirPort auto and IPv6 ORPort auto
|
||||||
|
ORPort 127.0.0.1:auto
|
||||||
|
ORPort [::1]:auto
|
||||||
|
DirPort 127.0.0.1:auto
|
Loading…
Reference in New Issue
Block a user