test/parseconf: Split the file list into sections

There are lots of different files now, so having Config and Result
sections is helpful.

Part of 32451.
This commit is contained in:
teor 2019-11-12 15:03:47 +10:00
parent 233ccef6d8
commit 735d5f5b7e

View File

@ -17,6 +17,8 @@
# This script looks for its test cases as individual directories in # This script looks for its test cases as individual directories in
# src/test/conf_examples/. Each test may have these files: # src/test/conf_examples/. Each test may have these files:
# #
# Configuration Files
#
# torrc -- Usually needed. This file is passed to Tor on the command line # torrc -- Usually needed. This file is passed to Tor on the command line
# with the "-f" flag. (If you omit it, you'll test Tor's behavior when # with the "-f" flag. (If you omit it, you'll test Tor's behavior when
# it receives a nonexistent configuration file.) # it receives a nonexistent configuration file.)
@ -33,6 +35,8 @@
# included. Include paths should be specified relative to the test case # included. Include paths should be specified relative to the test case
# directory. # directory.
# #
# Result Files
#
# expected -- If this file is present, then it should be the expected result # expected -- If this file is present, then it should be the expected result
# of "--dump-config short" for this test case. Exactly one of # of "--dump-config short" for this test case. Exactly one of
# "expected" or "error" must be present, or the test will fail. # "expected" or "error" must be present, or the test will fail.