aboutsummaryrefslogtreecommitdiff
path: root/test/001-error-no-args.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/001-error-no-args.test')
-rwxr-xr-xtest/001-error-no-args.test/run.sh8
-rw-r--r--test/001-error-no-args.test/stderr.expected2
2 files changed, 10 insertions, 0 deletions
diff --git a/test/001-error-no-args.test/run.sh b/test/001-error-no-args.test/run.sh
new file mode 100755
index 0000000..4e67e1d
--- /dev/null
+++ b/test/001-error-no-args.test/run.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+${EXECUTABLE}
+if [ $? -eq 0 ]; then
+ exit 1
+else
+ exit 0
+fi
diff --git a/test/001-error-no-args.test/stderr.expected b/test/001-error-no-args.test/stderr.expected
new file mode 100644
index 0000000..32481e5
--- /dev/null
+++ b/test/001-error-no-args.test/stderr.expected
@@ -0,0 +1,2 @@
+usage: ../../sand-leek [-t threads] -s search
+searches for keys for onion addresses beginning with `search`