summaryrefslogtreecommitdiff
path: root/tests/email-print-mime-structure.sh
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2019-11-25 01:53:56 -0500
committerSean Whitton <spwhitton@spwhitton.name>2019-11-25 07:46:31 -0700
commitb80164cb3c3e713a68c184096ec98293890a5ba9 (patch)
treea7c556150ffd5aca9e8d7aebd57a9d594eee5fa4 /tests/email-print-mime-structure.sh
parent93d309e682c0910556d79aa75c8871cb3f6860ae (diff)
downloadmailscripts-b80164cb3c3e713a68c184096ec98293890a5ba9.tar.gz
email-print-mime-structure: Add test for --use-gpg-agent as well
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Diffstat (limited to 'tests/email-print-mime-structure.sh')
-rwxr-xr-xtests/email-print-mime-structure.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/email-print-mime-structure.sh b/tests/email-print-mime-structure.sh
index 0c0bb50..d3d8b0c 100755
--- a/tests/email-print-mime-structure.sh
+++ b/tests/email-print-mime-structure.sh
@@ -14,6 +14,12 @@ for eml in tests/email-print-mime-structure/*.eml; do
if [ -e "$pgpkey" ]; then
printf "Testing %s (PGPy)\n" "${eml##*/}"
test_eml "$base" --pgpkey "$pgpkey"
+
+ testgpghome=$(mktemp -d)
+ printf "Testing %s (GnuPG)\n" "${eml##*/}"
+ gpg --homedir="$testgpghome" --batch --quiet --import < "$pgpkey"
+ GNUPGHOME="$testgpghome" test_eml "$base" --use-gpg-agent
+ rm -rf "$testgpghome"
else
printf "Testing %s\n" "${eml##*/}"
test_eml "$base"