aboutsummaryrefslogtreecommitdiff
path: root/src/test/conf_examples
AgeCommit message (Collapse)Author
2020-10-21Allow mutiple lines on configuration for ROUTERSET entries. #28361Daniel Pinto
Affected entries are: EntryNodes, ExcludeNodes, ExcludeExitNodes, ExitNodes, MiddleNodes, HSLayer2Nodes and HSLayer3Nodes.
2020-10-14Merge branch 'tor-gitlab/mr/170'David Goulet
2020-10-13Make OptimisticData always-on.Nick Mathewson
We've been using it for years, and it seems to work just fine. This patch removes the option and its network parameter. Part of #40139
2020-09-23Remove parseconf test with AndroidIdentityTag.Nick Mathewson
2020-07-17Add running glibc version to the log. #40047Daniel Pinto
Also adds the compiled and running glibc version when using the --library-versions flag.
2020-07-02parseconf: Add an authority IPv6 ORPort testteor
These tests don't actually exercise the authority IPv6 ORPort self-add feature in 32822, but they do improve coverage of the related config code. Part of 32822.
2020-05-08Improve logging of included config filesDaniel Pinto
2020-03-21parseconf: Add ORPort and DirPort auto teststeor
These tests don't actually trigger bug 32588, but they do increase the coverage of the auto port config code. Tests for 32588.
2020-03-09Remove the ClientAutoIPv6ORPort optionNeel Chauhan
2019-12-19Change conf_examples test for ConsensusParams option.Nick Mathewson
2019-12-19Add an integration test for options disabled by dirauth subsystem.Nick Mathewson
2019-11-20parseconf test: ControlSocketsGroupWriteable without ControlSocket.Nick Mathewson
2019-11-14test/parseconf: Update conf_examples to use expected_logteor
Part of 32451.
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-12Merge branch 'maint-0.4.2'teor
2019-11-12test/parseconf: Add tests for ignored optionsteor
These tests will also pass on 0.4.3, with the original implementation, and with the new implementation in 32404. Part of 32295 and 32404.
2019-11-11test/parseconf: Add basic parsing teststeor
And document the "%include" behaviour. Closes 32450.
2019-11-07Adjustments to 32406 per reviewNick Mathewson
When we are failing because of a lack of a _required_ engine, note that the engine was "required". When engines are disabled, any required engine should cause a failure.
2019-11-07Add a test for 32406 (AccelName with "!").Nick Mathewson
This also lets us test a failing set_options().
2019-11-07conf_examples test for crypto_accelNick Mathewson
2019-11-07test/parseconf: Update config parsing tests for 32410teor
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-05test/parseconf: Add conf_examples for relaysteor
Tests relay/relay_config.c. Part of 32213.
2019-11-05test/parseconf: Add conf_examples for PTsteor
Tests relay/transport_config.c. Part of 32213.
2019-11-04relay: Disable relay config when the module is disabledteor
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-10-31dirauth: Disable dirauth config when the module is disabledteor
Part of 32213.
2019-10-20test/parseconf: Add basic dirauth and bridgeauth teststeor
Part of 32123.
2019-10-20test/parseconf: Expect different outputs when relay mode is disabledteor
Part of 32123.
2019-10-17Add a test for a command-line option without a value.Nick Mathewson
2019-09-24test: a file with no config options, at the end of an %include directoryteor
(The file must contain whitespace or comments to trigger the bug.) Regression test for 31408.
2019-09-14Add a test with many non-default options.Nick Mathewson
2019-09-14Add a few error test casesNick Mathewson
2019-09-14Add an integration test for %include.Nick Mathewson
2019-09-14Add test for +Option, /Option, and OptionNick Mathewson
Here we use these directives to replace, extend, or clear values in torrc.defaults and in torrc.
2019-09-14Move our first 3 example conf_examples to named directoriesNick Mathewson
I'm not planning to use "example" as the name for all of them, but these first three _are_ simple examples.
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.