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:
teor 2020-01-14 21:49:29 +10:00
parent 4b914dea02
commit e0eec3bf29
No known key found for this signature in database
GPG Key ID: 10FEAA0E7075672A
20 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,2 @@
Nickname Unnamed
ORPort auto

View File

@ -0,0 +1 @@
Your ContactInfo config option is not set

View File

@ -0,0 +1,3 @@
# Relay tests
# default (IPv4) ORPort auto
ORPort auto

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,3 @@
DirPort auto
Nickname Unnamed
ORPort auto

View File

@ -0,0 +1 @@
Your ContactInfo config option is not set

View File

@ -0,0 +1,4 @@
# Relay tests
# default (IPv4) ORPort and DirPort auto
ORPort auto
DirPort auto

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,3 @@
Nickname Unnamed
ORPort auto
ORPort [::1]:auto

View File

@ -0,0 +1 @@
Your ContactInfo config option is not set

View File

@ -0,0 +1,4 @@
# Relay tests
# default (IPv4) ORPort auto and IPv6 ORPort auto
ORPort auto
ORPort [::1]:auto

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,3 @@
Nickname Unnamed
ORPort 127.0.0.1:auto
ORPort [::1]:auto

View File

@ -0,0 +1 @@
Your ContactInfo config option is not set

View File

@ -0,0 +1,4 @@
# Relay tests
# explicit IPv4 ORPort auto and IPv6 ORPort auto
ORPort 127.0.0.1:auto
ORPort [::1]:auto

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,4 @@
DirPort 127.0.0.1:auto
Nickname Unnamed
ORPort 127.0.0.1:auto
ORPort [::1]:auto

View File

@ -0,0 +1 @@
Your ContactInfo config option is not set

View 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