summaryrefslogtreecommitdiff
path: root/src/test/test_parseconf.sh
AgeCommit message (Collapse)Author
2019-11-14test/parseconf: Warn when the expected_log* file is missingteor
Part of 32451.
2019-11-14test/parseconf: Stop adding newlines to *_printfteor
Cleanup after 32451.
2019-11-14test/parseconf: Show tor command lines on failureteor
Part of 32451.
2019-11-14test/parseconf: Refactor and simplify, stage 2teor
Remove more duplicate code. Eliminate some arguments. Rewrite some comments. Cleanup after 32451.
2019-11-14test/parseconf: Refactor and standardise, stage 1teor
Remove duplicate code, and standardise similar behaviour. Add some additional error checking. Cleanup after 32451.
2019-11-14test/parseconf: Rename some functions, and reformatteor
Part of 32451.
2019-11-14test/parseconf: Use consistent formattingteor
Make spacing, quotes, and env vars consistent. Cleanup after 32451 and 32468.
2019-11-14test/parseconf: Stop ignoring --dump-config failuresteor
When we added the $FILTER for Windows newlines, we made the pipeline always exit successfully, even if tor failed. Fixes bug 32468; bugfix on 0.4.2.1-alpha.
2019-11-14test/parseconf: Standardise output messagesteor
Part of 32451.
2019-11-14test/parseconf: Add an expected_log fileteor
The "expected_log" file is a set of patterns that matches the output of "tor --verify-config". Unlike "error", it expects a successful exit status. Part of 32451.
2019-11-14test/parseconf: Rewrite the included files sectionteor
Part of 32451.
2019-11-14test/parseconf: Split the file list into sectionsteor
There are lots of different files now, so having Config and Result sections is helpful. Part of 32451.
2019-11-11test/parseconf: Add basic parsing teststeor
And document the "%include" behaviour. Closes 32450.
2019-11-06test/parseconf: Add support for optional library variantsteor
test_parseconf.sh now supports: * {error,expected}{,_lzma,_nss,_zstd}{,_no_dirauth,_no_relay_dirauth} Or any combination of two or more optional libraries. Closes ticket 32397.
2019-11-06shellcheck: Fix minor issues in some scriptsteor
Fix minor issues in git-push-all.sh, git-setup-dirs.sh and test_parseconf.sh. Fixes bug 32402; not in any released version of tor. Obviously correct changes to already reviewed code.
2019-11-05test/parseconf: Always show the result file name on failureteor
Obviously correct fixes on already reviewed code.
2019-11-05test/parseconf: Run all the tests, even if one failsteor
Obviously correct fixes on already reviewed code.
2019-11-05test/parseconf: Consistenly use FAILteor
Obviously correct fixes on already reviewed code.
2019-11-05test/parseconf: Don't specify a path for 'true'teor
Obviously correct fixes on already reviewed code.
2019-11-05test/parseconf: Send all errors to stderrteor
Obviously correct fixes on already reviewed code.
2019-11-05test/scripts: Use the same code to find the tor binaryteor
This change makes sure we are always using the coverage binary, when coverage is enabled. Fixes bug 32368; bugfix on 0.2.7.3-rc.
2019-10-31test: Fix a loop variable bug in test_parseconf.shteor
Obviously correct fixes to already reviewed code. No changes file required: not in any released version of tor.
2019-10-20test/parseconf: Expect different outputs when relay mode is disabledteor
Part of 32123.
2019-09-16On windows, allow failures in test_parseconf.shNick Mathewson
There seems to be some unreliability issue with this test on appveyor. Addresses ticket 31757; This isn't a final fix for this issue, but it should make CI pass.
2019-09-16Fix a shellcheck warning in test_parseconf.sh.Nick Mathewson
I wonder why this didn't show up before.
2019-09-14test_parseconf.sh: On --dump-config failure, --verify-configNick Mathewson
2019-09-14test_parseconf: run each test from inside its directory.Nick Mathewson
We need this to test includes and relative paths.
2019-09-14Add a test script to try parsing and encoding Tor configurationsNick Mathewson
This script takes a set of example torrcs and command-lines from src/test/conf_examples. If a success is expected, it runs "tor --dump-config" and compares the result with the one we expect. If a failure is expected, it runs "tor --verify-config" and greps for the error we expect.