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