mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
test/parseconf: Add failure cases in conf_failures/
These failure cases can be used to test the failure behaviour and failure logs of test_parseconf.sh. See the README for details. Part of 32451.
This commit is contained in:
parent
51a6c0c8fd
commit
c7838c71fb
5
src/test/conf_failures/README
Normal file
5
src/test/conf_failures/README
Normal file
@ -0,0 +1,5 @@
|
||||
This directory contains typical test_parseconf.sh failure cases.
|
||||
|
||||
If these directories are copied into conf_examples, test_parseconf.sh will
|
||||
fail. Use these failure cases to make sure test_parseconf.sh handles failures
|
||||
correctly, and produces useful output.
|
1
src/test/conf_failures/fail-error-success/error
Normal file
1
src/test/conf_failures/fail-error-success/error
Normal file
@ -0,0 +1 @@
|
||||
Tor
|
0
src/test/conf_failures/fail-error-success/torrc
Normal file
0
src/test/conf_failures/fail-error-success/torrc
Normal file
1
src/test/conf_failures/fail-error/error
Normal file
1
src/test/conf_failures/fail-error/error
Normal file
@ -0,0 +1 @@
|
||||
no match
|
1
src/test/conf_failures/fail-error/torrc
Normal file
1
src/test/conf_failures/fail-error/torrc
Normal file
@ -0,0 +1 @@
|
||||
bad bad bad
|
0
src/test/conf_failures/fail-expected-error/expected
Normal file
0
src/test/conf_failures/fail-expected-error/expected
Normal file
1
src/test/conf_failures/fail-expected-error/torrc
Normal file
1
src/test/conf_failures/fail-expected-error/torrc
Normal file
@ -0,0 +1 @@
|
||||
bad bad bad
|
0
src/test/conf_failures/fail-expected-log/expected
Normal file
0
src/test/conf_failures/fail-expected-log/expected
Normal file
1
src/test/conf_failures/fail-expected-log/expected_log
Normal file
1
src/test/conf_failures/fail-expected-log/expected_log
Normal file
@ -0,0 +1 @@
|
||||
bad bad bad
|
0
src/test/conf_failures/fail-expected-log/torrc
Normal file
0
src/test/conf_failures/fail-expected-log/torrc
Normal file
1
src/test/conf_failures/fail-expected/expected
Normal file
1
src/test/conf_failures/fail-expected/expected
Normal file
@ -0,0 +1 @@
|
||||
bad
|
0
src/test/conf_failures/fail-expected/torrc
Normal file
0
src/test/conf_failures/fail-expected/torrc
Normal file
Loading…
Reference in New Issue
Block a user