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 11C5D6DE0C81 for ; Mon, 14 Dec 2015 12:03:22 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.31 X-Spam-Level: X-Spam-Status: No, score=-0.31 tagged_above=-999 required=5 tests=[AWL=0.241, RP_MATCHES_RCVD=-0.55, SPF_PASS=-0.001] 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 jPBRSKWmeWnL for ; Mon, 14 Dec 2015 12:03:20 -0800 (PST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 1B1856DE0231 for ; Mon, 14 Dec 2015 12:03:20 -0800 (PST) Received: from remotemail by fethera.tethera.net with local (Exim 4.84) (envelope-from ) id 1a8ZKz-0004in-Kt; Mon, 14 Dec 2015 15:03:13 -0500 Received: (nullmailer pid 24936 invoked by uid 1000); Mon, 14 Dec 2015 20:03:14 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: Re: [Patch v3 4/8] test: initial tests for S/MIME and notmuch-emacs In-Reply-To: <1450100337-31655-5-git-send-email-david@tethera.net> References: <1450100337-31655-1-git-send-email-david@tethera.net> <1450100337-31655-5-git-send-email-david@tethera.net> User-Agent: Notmuch/0.21+5~gca076ce (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu) Date: Mon, 14 Dec 2015 16:03:14 -0400 Message-ID: <87h9jkajct.fsf@tesseract.cs.unb.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 20:03:22 -0000 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.