Add test for +Option, /Option, and Option

Here we use these directives to replace, extend, or clear values in
torrc.defaults and in torrc.
This commit is contained in:
Nick Mathewson 2019-09-12 16:42:03 -04:00
parent 2f7be9620b
commit 850a00dc07
18 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1 @@
ORPort 1000

View File

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

View File

@ -0,0 +1,3 @@
# We'll replace this option on the command line.
ORPort 9999

View File

@ -0,0 +1 @@
/ORPort

View File

View File

@ -0,0 +1,3 @@
# We'll remove this option on the command line, and not replace it.
ORPort 9999

View File

@ -0,0 +1 @@
+ORPort 1000

View File

@ -0,0 +1,3 @@
Nickname Unnamed
ORPort 9999
ORPort 1000

View File

@ -0,0 +1,3 @@
# We will extend this option on the command line
ORPort 9999

View File

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

View File

@ -0,0 +1,3 @@
# This value is unadorned, so replaces the one from defaults.torrc.
ORPort 9099

View File

@ -0,0 +1 @@
ORPort 9000

View File

@ -0,0 +1,3 @@
Nickname Unnamed
ORPort 9000
ORPort 9099

View File

@ -0,0 +1,3 @@
# This value has a plus, and so extends the one from defaults.torrc.
+ORPort 9099

View File

@ -0,0 +1 @@
ORPort 9000

View File

View File

@ -0,0 +1,3 @@
# This value has a slash, and so clears the one from defaults.torrc.
/ORPort

View File

@ -0,0 +1 @@
ORPort 9000