teor
7504711510
test/parseconf: Add conf_examples for relays
...
Tests relay/relay_config.c.
Part of 32213.
2019-11-05 11:12:59 +10:00
teor
6d52b5ce91
test/parseconf: Add conf_examples for PTs
...
Tests relay/transport_config.c.
Part of 32213.
2019-11-05 11:12:59 +10:00
teor
d3c8486724
relay: Disable relay config when the module is disabled
...
This commit:
* disables the ORPort, DirPort, DirCache, and BridgeRelay options,
* sets ClientOnly 1,
* disables relay_config.c and relay/transport_config.c,
* disables test_rebind.sh, and
* modifies the expected results for test_parseconf.sh,
when the relay module is disabled.
Part of 32213.
2019-11-04 13:10:00 +10:00
teor
da49c4d78d
dirauth: Disable dirauth config when the module is disabled
...
Part of 32213.
2019-10-31 12:34:19 +10:00
teor
b266a804e9
test/parseconf: Add basic dirauth and bridgeauth tests
...
Part of 32123.
2019-10-20 20:25:58 +10:00
teor
0501ce9f13
test/parseconf: Expect different outputs when relay mode is disabled
...
Part of 32123.
2019-10-20 20:25:54 +10:00
Nick Mathewson
763d955a17
Add a test for a command-line option without a value.
2019-10-17 12:01:40 -04:00
teor
83fa962c1a
test: a file with no config options, at the end of an %include directory
...
(The file must contain whitespace or comments to trigger the bug.)
Regression test for 31408.
2019-09-24 11:10:50 +10:00
Nick Mathewson
7e9ee3a58d
Add a test with many non-default options.
2019-09-14 19:00:41 -04:00
Nick Mathewson
617679df42
Add a few error test cases
2019-09-14 19:00:41 -04:00
Nick Mathewson
80e858e3e6
Add an integration test for %include.
2019-09-14 19:00:41 -04:00
Nick Mathewson
850a00dc07
Add test for +Option, /Option, and Option
...
Here we use these directives to replace, extend, or clear values in
torrc.defaults and in torrc.
2019-09-14 19:00:41 -04:00
Nick Mathewson
2f7be9620b
Move our first 3 example conf_examples to named directories
...
I'm not planning to use "example" as the name for all of them, but
these first three _are_ simple examples.
2019-09-14 19:00:41 -04:00
Nick Mathewson
7c7e8402b5
Add a test script to try parsing and encoding Tor configurations
...
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.
2019-09-14 19:00:41 -04:00