]> the.earth.li Git - onak.git/blob - t/all-065-get-fingerprint-v5.t
0.6.2 release
[onak.git] / t / all-065-get-fingerprint-v5.t
1 #!/bin/sh
2 # Check we can retrieve a key by key fingerprint
3
4 set -e
5
6 cd ${WORKDIR}
7 ${BUILDDIR}/onak -b -c $1 add < ${TESTSDIR}/../keys/v5-test.key
8 if ! ${BUILDDIR}/onak -c $1 get 0x19347BC9872464025F99DF3EC2E0000ED9884892E1F7B3EA4C94009159569B54 2> /dev/null | \
9         grep -q -- '-----BEGIN PGP PUBLIC KEY BLOCK-----'; then
10         echo "* Did not correctly retrieve key by fingerprint."
11         exit 1
12 fi
13
14 exit 0