aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2019-11-17 21:58:12 -0400
committerDavid Bremner <david@tethera.net>2019-12-14 07:25:06 -0400
commit6cd47227de09556dbc611d842c9b4b0f077598fc (patch)
treea09ba981923541264ef88c5f7741289c7118c9f6
parenta7884929d51790ed2782b04ba5b5e466d7148a63 (diff)
test: add a known broken test for S/MIME decryption
This should serve to clarify this feature is not implimented in notmuch yet.
-rwxr-xr-xtest/T355-smime.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/T355-smime.sh b/test/T355-smime.sh
index 336da917..11a4d6cd 100755
--- a/test/T355-smime.sh
+++ b/test/T355-smime.sh
@@ -94,4 +94,13 @@ Verification successful
EOF
test_expect_equal_file EXPECTED OUTPUT
+test_begin_subtest "Decryption (notmuch CLI)"
+test_subtest_known_broken
+notmuch show --decrypt=true subject:"test encrypted message 001" |\
+ grep "^This is a" > OUTPUT
+cat <<EOF > EXPECTED
+This is a test encrypted message.
+EOF
+test_expect_equal_file EXPECTED OUTPUT
+
test_done