mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
test/parseconf: Add basic parsing tests
And document the "%include" behaviour. Closes 32450.
This commit is contained in:
parent
f6c9ca3a1d
commit
2d651f4f6a
11 changed files with 7 additions and 0 deletions
0
src/test/conf_examples/empty_1/expected
Normal file
0
src/test/conf_examples/empty_1/expected
Normal file
0
src/test/conf_examples/empty_1/torrc
Normal file
0
src/test/conf_examples/empty_1/torrc
Normal file
0
src/test/conf_examples/empty_2/cmdline
Normal file
0
src/test/conf_examples/empty_2/cmdline
Normal file
0
src/test/conf_examples/empty_2/expected
Normal file
0
src/test/conf_examples/empty_2/expected
Normal file
0
src/test/conf_examples/empty_2/torrc
Normal file
0
src/test/conf_examples/empty_2/torrc
Normal file
0
src/test/conf_examples/empty_2/torrc.defaults
Normal file
0
src/test/conf_examples/empty_2/torrc.defaults
Normal file
0
src/test/conf_examples/empty_3/expected
Normal file
0
src/test/conf_examples/empty_3/expected
Normal file
0
src/test/conf_examples/empty_3/included/empty
Normal file
0
src/test/conf_examples/empty_3/included/empty
Normal file
1
src/test/conf_examples/empty_3/torrc
Normal file
1
src/test/conf_examples/empty_3/torrc
Normal file
|
@ -0,0 +1 @@
|
|||
%include "included"
|
1
src/test/conf_examples/empty_4/error
Normal file
1
src/test/conf_examples/empty_4/error
Normal file
|
@ -0,0 +1 @@
|
|||
Unable to open configuration file
|
|
@ -28,6 +28,11 @@
|
|||
# cmdline -- Optional. If present, it contains command-line arguments that
|
||||
# will be passed to Tor.
|
||||
#
|
||||
# (included torrc files or directories) -- Optional. If present, and
|
||||
# configured in the torrc* or cmdline, these files or directories are
|
||||
# included. Include paths should be specified relative to the test case
|
||||
# directory.
|
||||
#
|
||||
# expected -- If this file is present, then it should be the expected result
|
||||
# of "--dump-config short" for this test case. Exactly one of
|
||||
# "expected" or "error" must be present, or the test will fail.
|
||||
|
|
Loading…
Add table
Reference in a new issue