X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=t%2Fall-080-get-subkey.t;h=e934dd8e3112692cdb6bf4976a1aebc3a68c4cc9;hb=58ed9a0076feb9604154b99da6ed1907ca7df089;hp=ecccdf44e56175220288e26363f6543883d324c7;hpb=438bd2cc9821da85d9f396b01bb14c8b770679c0;p=onak.git diff --git a/t/all-080-get-subkey.t b/t/all-080-get-subkey.t index ecccdf4..e934dd8 100755 --- a/t/all-080-get-subkey.t +++ b/t/all-080-get-subkey.t @@ -5,18 +5,18 @@ 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 get 0x045281F1B9A66E35 2> /dev/null | \ +cd ${WORKDIR} +${BUILDDIR}/onak -b -c $1 add < ${TESTSDIR}/../keys/noodles.key +if ! ${BUILDDIR}/onak -c $1 get 0x045281F1B9A66E35 2> /dev/null | \ grep -q -- '-----BEGIN PGP PUBLIC KEY BLOCK-----'; then echo "* Did not correctly retrieve key by subkey id." exit 1 fi -if ! ../onak -c test.conf get 0xFF162FC5CF3FBAD1 2> /dev/null | \ +if ! ${BUILDDIR}/onak -c $1 get 0xFF162FC5CF3FBAD1 2> /dev/null | \ grep -q -- '-----BEGIN PGP PUBLIC KEY BLOCK-----'; then echo "* Did not correctly retrieve key by subkey id." exit 1