]> the.earth.li Git - onak.git/blobdiff - t/fs-000-add.t
Add basic testing infrastructure + initial tests
[onak.git] / t / fs-000-add.t
diff --git a/t/fs-000-add.t b/t/fs-000-add.t
new file mode 100755 (executable)
index 0000000..c20231e
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+# Check we can add a key successfully with the fs backend.
+
+set -e
+
+cd t
+../onak -b -c test.conf add < ../keys/noodles.key
+if [ ! -e db/key/2D/A8/2DA8B985/94FA372B2DA8B985 ]; then
+       echo Did not correctly add key using fs backend.
+       exit 1
+fi
+
+exit 0