X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=t%2Fall-040-index-text.t;h=43b489bb87a5ddaf62d30859580f2ec7a53c96fe;hb=41b7047c909cb5d8243901080db4931ebf165acf;hp=f5b1c14e1c82ed3e0cd16ad237c1cca48c731147;hpb=2682946a339e46d392eebcb7597ef2073720df0d;p=onak.git diff --git a/t/all-040-index-text.t b/t/all-040-index-text.t index f5b1c14..43b489b 100755 --- a/t/all-040-index-text.t +++ b/t/all-040-index-text.t @@ -5,14 +5,14 @@ set -e # Backends should really support this, but the file one is as simple as # possible, so doesn't. Skip the test for it. -if [ "$1" = "file" ]; then +if [ "$2" = "file" ]; then exit 0 fi -cd t -../onak -b -c test.conf add < ../keys/noodles.key -if ! ../onak -c test.conf index noodles 2> /dev/null | \ - grep -q -- 'pub 4096R/2DA8B985 2008/06/03 Jonathan McDowell'; then +cd ${WORKDIR} +${BUILDDIR}/onak -b -c $1 add < ${TESTSDIR}/../keys/noodles.key +if ! ${BUILDDIR}/onak -c $1 index noodles 2> /dev/null | \ + grep -q -- 'pub 4096R/0x94FA372B2DA8B985 2008/06/03 Jonathan McDowell'; then echo "* Did not correctly retrieve key by text" exit 1 fi