X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=t%2Fall-070-get-short.t;fp=t%2Fall-070-get-short.t;h=8adaa3f43693f9bbe9a4d5797a5275f24ee54390;hb=ec3fd8971e87c82b2768b5b9dcbcd569edc3259b;hp=0000000000000000000000000000000000000000;hpb=83ae316a7b14e55418349e87d1a1942a0627ae14;p=onak.git diff --git a/t/all-070-get-short.t b/t/all-070-get-short.t new file mode 100755 index 0000000..8adaa3f --- /dev/null +++ b/t/all-070-get-short.t @@ -0,0 +1,14 @@ +#!/bin/sh +# Check we can retrieve a key by keyid + +set -e + +cd t +../onak -b -c test.conf add < ../keys/noodles.key +if ! ../onak -c test.conf get 0x2DA8B985 2> /dev/null | \ + grep -q -- '-----BEGIN PGP PUBLIC KEY BLOCK-----'; then + echo "* Did not correctly retrieve key by keyid." + exit 1 +fi + +exit 0