diff options
author | David Phillips <david@yeah.nah.nz> | 2019-03-11 16:43:29 +1300 |
---|---|---|
committer | David Phillips <david@yeah.nah.nz> | 2019-03-11 16:43:29 +1300 |
commit | 18a130918e25d33405cd67f671cdcda72de6662d (patch) | |
tree | 545195e78360cede6f59cd85aa79160812a6ed9b | |
parent | 0959ba2096e46b44785eeb643363247002aee52d (diff) | |
download | sand-leek-18a130918e25d33405cd67f671cdcda72de6662d.tar.xz |
Amend test cases, use -A
-rwxr-xr-x | test/001-error-no-args.test/run.sh | 2 | ||||
-rw-r--r-- | test/001-error-no-args.test/stderr.expected | 8 | ||||
-rw-r--r-- | test/003-test-invalid-char.test/run.sh | 2 | ||||
-rw-r--r-- | test/003-test-invalid-char.test/stderr.expected | 4 |
4 files changed, 9 insertions, 7 deletions
diff --git a/test/001-error-no-args.test/run.sh b/test/001-error-no-args.test/run.sh index 4e67e1d..fae5bd4 100755 --- a/test/001-error-no-args.test/run.sh +++ b/test/001-error-no-args.test/run.sh @@ -1,6 +1,6 @@ #!/bin/sh -${EXECUTABLE} +${EXECUTABLE} -A if [ $? -eq 0 ]; then exit 1 else diff --git a/test/001-error-no-args.test/stderr.expected b/test/001-error-no-args.test/stderr.expected index 598c00c..b109898 100644 --- a/test/001-error-no-args.test/stderr.expected +++ b/test/001-error-no-args.test/stderr.expected @@ -1,4 +1,6 @@ usage: ../../sand-leek [-t threads] [-A] -s search -searches for keys for onion addresses beginning with `search`. -Specifying -A disables the use of ANSI escape sequences, which cause -are not interpreted on some terminals (powershell, cmd.exe) +Options: + -t threads use `threads` worker threads (default: 1) + -A disable ANSI escape sequences in stderr output + -s search search for keys to onion addresses beginning with `search` + diff --git a/test/003-test-invalid-char.test/run.sh b/test/003-test-invalid-char.test/run.sh index a59b826..3bb0152 100644 --- a/test/003-test-invalid-char.test/run.sh +++ b/test/003-test-invalid-char.test/run.sh @@ -1,6 +1,6 @@ #!/bin/sh -${EXECUTABLE} -s foovalid1not +${EXECUTABLE} -A -s foovalid1not if [ $? -eq 0 ]; then exit 1 diff --git a/test/003-test-invalid-char.test/stderr.expected b/test/003-test-invalid-char.test/stderr.expected index 2a36048..17eedbf 100644 --- a/test/003-test-invalid-char.test/stderr.expected +++ b/test/003-test-invalid-char.test/stderr.expected @@ -1,3 +1,3 @@ -[22m[36mINFO: [1;37mStarting sand-leek 1 -[22m[31mERROR: [1;37msearch contains non-base-32 character(s): 1 +INFO: Starting sand-leek 1 +ERROR: search contains non-base-32 character(s): 1 I cannot search for something that will never occur |