]> the.earth.li Git - onak.git/blobdiff - t/all-030-get-fail.t
Add basic testing infrastructure + initial tests
[onak.git] / t / all-030-get-fail.t
diff --git a/t/all-030-get-fail.t b/t/all-030-get-fail.t
new file mode 100755 (executable)
index 0000000..0db2b28
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+# Check retrieving a non existent keyid fails
+
+set -e
+
+cd t
+../onak -b -c test.conf add < ../keys/noodles.key
+if ! ../onak -c test.conf get 0x12345678 2>&1 | \
+       grep -q 'Key not found'; then
+       echo "* Did not correctly error on non-existent key"
+       exit 1
+fi
+
+exit 0