]> the.earth.li Git - onak.git/blobdiff - t/file-010-del.t
Add basic testing infrastructure + initial tests
[onak.git] / t / file-010-del.t
diff --git a/t/file-010-del.t b/t/file-010-del.t
new file mode 100755 (executable)
index 0000000..31acc5a
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+# Check we can delete a key successfully with the file backend.
+
+set -e
+
+cd t
+../onak -b -c test.conf add < ../keys/noodles.key
+../onak -b -c test.conf delete 0x2DA8B985
+if [ -e db/0x2DA8B985 ]; then
+       echo "* Did not correctly delete key using file backend"
+       exit 1
+fi
+
+exit 0