test/parseconf: Add basic parsing tests

And document the "%include" behaviour.

Closes 32450.
This commit is contained in:
teor 2019-11-11 13:04:28 +10:00
parent f6c9ca3a1d
commit 2d651f4f6a
11 changed files with 7 additions and 0 deletions

View file

View file

View file

View file

View file

View file

View file

@ -0,0 +1 @@
%include "included"

View file

@ -0,0 +1 @@
Unable to open configuration file

View 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.