]> the.earth.li Git - onak.git/blob - t/fs-000-add.t
Cleanup tests to be able to run from a different directory
[onak.git] / t / fs-000-add.t
1 #!/bin/sh
2 # Check we can add a key successfully with the fs backend.
3
4 set -e
5
6 cd ${WORKDIR}
7 ${BUILDDIR}/onak -b -c $1 add < ${TESTSDIR}/../keys/noodles.key
8 if [ ! -e db/key/2D/A8/2DA8B985/94FA372B2DA8B985 ]; then
9         echo Did not correctly add key using fs backend.
10         exit 1
11 fi
12
13 exit 0