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
20 changed files with 45 additions and 0 deletions
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+2
View File
@@ -0,0 +1,2 @@
Nickname Unnamed
ORPort auto
@@ -0,0 +1 @@
Your ContactInfo config option is not set
+3
View File
@@ -0,0 +1,3 @@
# Relay tests
# default (IPv4) ORPort auto
ORPort auto
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+3
View File
@@ -0,0 +1,3 @@
DirPort auto
Nickname Unnamed
ORPort auto
@@ -0,0 +1 @@
Your ContactInfo config option is not set
+4
View File
@@ -0,0 +1,4 @@
# Relay tests
# default (IPv4) ORPort and DirPort auto
ORPort auto
DirPort auto
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+3
View File
@@ -0,0 +1,3 @@
Nickname Unnamed
ORPort auto
ORPort [::1]:auto
@@ -0,0 +1 @@
Your ContactInfo config option is not set
+4
View File
@@ -0,0 +1,4 @@
# Relay tests
# default (IPv4) ORPort auto and IPv6 ORPort auto
ORPort auto
ORPort [::1]:auto
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+3
View File
@@ -0,0 +1,3 @@
Nickname Unnamed
ORPort 127.0.0.1:auto
ORPort [::1]:auto
@@ -0,0 +1 @@
Your ContactInfo config option is not set
+4
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
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+4
View File
@@ -0,0 +1,4 @@
DirPort 127.0.0.1:auto
Nickname Unnamed
ORPort 127.0.0.1:auto
ORPort [::1]:auto
@@ -0,0 +1 @@
Your ContactInfo config option is not set
+5
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