2 # Check we can retrieve a key by keyid
6 # Backends should really support this, but the file one is as simple as
7 # possible, so doesn't. Skip the test for it.
8 if [ "$2" = "file" ]; then
13 ${BUILDDIR}/onak -b -c $1 add < ${TESTSDIR}/../keys/noodles.key
14 if ! ${BUILDDIR}/onak -c $1 get 0xB9A66E35 2> /dev/null | \
15 grep -q -- '-----BEGIN PGP PUBLIC KEY BLOCK-----'; then
16 echo "* Did not correctly retrieve key by subkey id."
19 if ! ${BUILDDIR}/onak -c $1 get 0xCF3FBAD1 2> /dev/null | \
20 grep -q -- '-----BEGIN PGP PUBLIC KEY BLOCK-----'; then
21 echo "* Did not correctly retrieve key by subkey id."