diff options
author | teor <teor@torproject.org> | 2019-10-31 17:21:10 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-11-05 11:12:59 +1000 |
commit | 6d52b5ce910c31962e16b654426b923a43f38201 (patch) | |
tree | 617b8a384f7599d6060af753f5dc9cd1c607424a /src/test/conf_examples/pt_06 | |
parent | 233b96d83addba8d5db49e28f4d762cf34935afc (diff) | |
download | tor-6d52b5ce910c31962e16b654426b923a43f38201.tar.gz tor-6d52b5ce910c31962e16b654426b923a43f38201.zip |
test/parseconf: Add conf_examples for PTs
Tests relay/transport_config.c.
Part of 32213.
Diffstat (limited to 'src/test/conf_examples/pt_06')
-rw-r--r-- | src/test/conf_examples/pt_06/error_no_dirauth_relay | 1 | ||||
-rw-r--r-- | src/test/conf_examples/pt_06/expected | 6 | ||||
-rw-r--r-- | src/test/conf_examples/pt_06/torrc | 9 |
3 files changed, 16 insertions, 0 deletions
diff --git a/src/test/conf_examples/pt_06/error_no_dirauth_relay b/src/test/conf_examples/pt_06/error_no_dirauth_relay new file mode 100644 index 0000000000..9f9c0fd8f3 --- /dev/null +++ b/src/test/conf_examples/pt_06/error_no_dirauth_relay @@ -0,0 +1 @@ +This tor was built with relay mode disabled. diff --git a/src/test/conf_examples/pt_06/expected b/src/test/conf_examples/pt_06/expected new file mode 100644 index 0000000000..d5788b92c9 --- /dev/null +++ b/src/test/conf_examples/pt_06/expected @@ -0,0 +1,6 @@ +ExtORPortCookieAuthFile / +ExtORPortCookieAuthFileGroupReadable 1 +ExtORPort 1 +ServerTransportListenAddr bad3 127.0.0.1:2 +ServerTransportOptions bad3 a=b +ServerTransportPlugin bad3 exec / diff --git a/src/test/conf_examples/pt_06/torrc b/src/test/conf_examples/pt_06/torrc new file mode 100644 index 0000000000..20cfc329a7 --- /dev/null +++ b/src/test/conf_examples/pt_06/torrc @@ -0,0 +1,9 @@ +# Relay PT tests +# Options from relay/transport_config.c +# Try a config with all the options +ExtORPort 1 +ExtORPortCookieAuthFile / +ExtORPortCookieAuthFileGroupReadable 1 +ServerTransportPlugin bad3 exec / +ServerTransportListenAddr bad3 127.0.0.1:2 +ServerTransportOptions bad3 a=b |