From: Tomi Ollila Date: Mon, 14 Dec 2015 21:27:40 +0000 (+0200) Subject: Re: [Patch v3 4/8] test: initial tests for S/MIME and notmuch-emacs X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=39d37d967859737927b42b8546731d349f43b210;p=notmuch-archives.git Re: [Patch v3 4/8] test: initial tests for S/MIME and notmuch-emacs --- diff --git a/07/09ff936be8099aa369ba66c9e8055a3be99481 b/07/09ff936be8099aa369ba66c9e8055a3be99481 new file mode 100644 index 000000000..99e5e9118 --- /dev/null +++ b/07/09ff936be8099aa369ba66c9e8055a3be99481 @@ -0,0 +1,100 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 7EE3D6DE0C81 + for ; Mon, 14 Dec 2015 13:27:27 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.691 +X-Spam-Level: +X-Spam-Status: No, score=0.691 tagged_above=-999 required=5 tests=[AWL=0.039, + SPF_NEUTRAL=0.652] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id qa5_oaCEEWPD for ; + Mon, 14 Dec 2015 13:27:25 -0800 (PST) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by arlo.cworth.org (Postfix) with ESMTP id E271B6DE0231 + for ; Mon, 14 Dec 2015 13:27:24 -0800 (PST) +Received: from guru.guru-group.fi (localhost [IPv6:::1]) + by guru.guru-group.fi (Postfix) with ESMTP id BA59510005A; + Mon, 14 Dec 2015 23:27:40 +0200 (EET) +From: Tomi Ollila +To: David Bremner , notmuch@notmuchmail.org +Subject: Re: [Patch v3 4/8] test: initial tests for S/MIME and notmuch-emacs +In-Reply-To: <87h9jkajct.fsf@tesseract.cs.unb.ca> +References: <1450100337-31655-1-git-send-email-david@tethera.net> + <1450100337-31655-5-git-send-email-david@tethera.net> + <87h9jkajct.fsf@tesseract.cs.unb.ca> +User-Agent: Notmuch/0.21+32~g73439f8 (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-unknown-linux-gnu) +X-Face: HhBM'cA~ +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Mon, 14 Dec 2015 21:27:27 -0000 + +On Mon, Dec 14 2015, David Bremner wrote: + +> David Bremner 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 +