Skip to content

Commit

Permalink
test/parseconf: Add basic parsing tests
Browse files Browse the repository at this point in the history
And document the "%include" behaviour.

Closes 32450.
  • Loading branch information
teor2345 committed Nov 11, 2019
1 parent f6c9ca3 commit 2d651f4
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 0 deletions.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
1 change: 1 addition & 0 deletions src/test/conf_examples/empty_3/torrc
@@ -0,0 +1 @@
%include "included"
1 change: 1 addition & 0 deletions src/test/conf_examples/empty_4/error
@@ -0,0 +1 @@
Unable to open configuration file
5 changes: 5 additions & 0 deletions src/test/test_parseconf.sh
Expand Up @@ -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.
Expand Down

0 comments on commit 2d651f4

Please sign in to comment.