[Patch v3 4/8] test: initial tests for S/MIME and notmuch-emacs
Tomi Ollila
tomi.ollila at iki.fi
Mon Dec 14 13:27:40 PST 2015
On Mon, Dec 14 2015, David Bremner <david at tethera.net> wrote:
> David Bremner <david at tethera.net> writes:
>
>> Test the ability of notmuch-mua-mail to send S/MIME signed (and
>> encrypted) messages; this really relies on existing functionality in
>> message-mode.
>>
>> The generated keys and messages will later be useful for testing the
>> notmuch CLI.
>> ---
>> test/T355-smime.sh | 42 +++++++++++++++++++++++++++++++++++++
>> test/smime/README | 7 +++++++
>> test/smime/key+cert.pem | 56 +++++++++++++++++++++++++++++++++++++++++++++++++
>> test/smime/test.crt | 19 +++++++++++++++++
>> test/test-lib.el | 10 +++++++++
>> test/test-lib.sh | 1 +
>> 6 files changed, 135 insertions(+)
>> create mode 100755 test/T355-smime.sh
>> create mode 100644 test/smime/README
>> create mode 100644 test/smime/key+cert.pem
>> create mode 100644 test/smime/test.crt
>>
>> diff --git a/test/T355-smime.sh b/test/T355-smime.sh
>> new file mode 100755
>> index 0000000..e3419d6
>> --- /dev/null
>> +++ b/test/T355-smime.sh
>> @@ -0,0 +1,42 @@
>> +#!/usr/bin/env bash
>> +
>> +test_description='S/MIME signature verification and decryption'
>> +. ./test-lib.sh
>
> Apparently this needs
>
> unset GPG_AGENT_INFO
>
> at the beginning to avoid getting confused by a potential pre-2.1
> gpg-agent.
And, as the first patch series was very old it did not have this:
. ./test-lib.sh || exit 1
Tomi
More information about the notmuch
mailing list