mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 05:03:43 +01:00
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:
parent
2f7be9620b
commit
850a00dc07
1
src/test/conf_examples/ops_1/cmdline
Normal file
1
src/test/conf_examples/ops_1/cmdline
Normal file
@ -0,0 +1 @@
|
||||
ORPort 1000
|
2
src/test/conf_examples/ops_1/expected
Normal file
2
src/test/conf_examples/ops_1/expected
Normal file
@ -0,0 +1,2 @@
|
||||
Nickname Unnamed
|
||||
ORPort 1000
|
3
src/test/conf_examples/ops_1/torrc
Normal file
3
src/test/conf_examples/ops_1/torrc
Normal file
@ -0,0 +1,3 @@
|
||||
# We'll replace this option on the command line.
|
||||
|
||||
ORPort 9999
|
1
src/test/conf_examples/ops_2/cmdline
Normal file
1
src/test/conf_examples/ops_2/cmdline
Normal file
@ -0,0 +1 @@
|
||||
/ORPort
|
0
src/test/conf_examples/ops_2/expected
Normal file
0
src/test/conf_examples/ops_2/expected
Normal file
3
src/test/conf_examples/ops_2/torrc
Normal file
3
src/test/conf_examples/ops_2/torrc
Normal file
@ -0,0 +1,3 @@
|
||||
# We'll remove this option on the command line, and not replace it.
|
||||
|
||||
ORPort 9999
|
1
src/test/conf_examples/ops_3/cmdline
Normal file
1
src/test/conf_examples/ops_3/cmdline
Normal file
@ -0,0 +1 @@
|
||||
+ORPort 1000
|
3
src/test/conf_examples/ops_3/expected
Normal file
3
src/test/conf_examples/ops_3/expected
Normal file
@ -0,0 +1,3 @@
|
||||
Nickname Unnamed
|
||||
ORPort 9999
|
||||
ORPort 1000
|
3
src/test/conf_examples/ops_3/torrc
Normal file
3
src/test/conf_examples/ops_3/torrc
Normal file
@ -0,0 +1,3 @@
|
||||
# We will extend this option on the command line
|
||||
|
||||
ORPort 9999
|
2
src/test/conf_examples/ops_4/expected
Normal file
2
src/test/conf_examples/ops_4/expected
Normal file
@ -0,0 +1,2 @@
|
||||
Nickname Unnamed
|
||||
ORPort 9099
|
3
src/test/conf_examples/ops_4/torrc
Normal file
3
src/test/conf_examples/ops_4/torrc
Normal file
@ -0,0 +1,3 @@
|
||||
# This value is unadorned, so replaces the one from defaults.torrc.
|
||||
|
||||
ORPort 9099
|
1
src/test/conf_examples/ops_4/torrc.defaults
Normal file
1
src/test/conf_examples/ops_4/torrc.defaults
Normal file
@ -0,0 +1 @@
|
||||
ORPort 9000
|
3
src/test/conf_examples/ops_5/expected
Normal file
3
src/test/conf_examples/ops_5/expected
Normal file
@ -0,0 +1,3 @@
|
||||
Nickname Unnamed
|
||||
ORPort 9000
|
||||
ORPort 9099
|
3
src/test/conf_examples/ops_5/torrc
Normal file
3
src/test/conf_examples/ops_5/torrc
Normal file
@ -0,0 +1,3 @@
|
||||
# This value has a plus, and so extends the one from defaults.torrc.
|
||||
|
||||
+ORPort 9099
|
1
src/test/conf_examples/ops_5/torrc.defaults
Normal file
1
src/test/conf_examples/ops_5/torrc.defaults
Normal file
@ -0,0 +1 @@
|
||||
ORPort 9000
|
0
src/test/conf_examples/ops_6/expected
Normal file
0
src/test/conf_examples/ops_6/expected
Normal file
3
src/test/conf_examples/ops_6/torrc
Normal file
3
src/test/conf_examples/ops_6/torrc
Normal file
@ -0,0 +1,3 @@
|
||||
# This value has a slash, and so clears the one from defaults.torrc.
|
||||
|
||||
/ORPort
|
1
src/test/conf_examples/ops_6/torrc.defaults
Normal file
1
src/test/conf_examples/ops_6/torrc.defaults
Normal file
@ -0,0 +1 @@
|
||||
ORPort 9000
|
Loading…
Reference in New Issue
Block a user