Re: [PATCH v4 08/16] reorganize indexing of multipart/signed and multipart/encrypted
[notmuch-archives.git] / a6 / b1a9919b47276044eefec26246cd74147082e4
1 Return-Path: <bremner@tethera.net>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 232EB429E34\r
6         for <notmuch@notmuchmail.org>; Sun, 10 Nov 2013 19:15:54 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id lxT9YRcQ8DAZ for <notmuch@notmuchmail.org>;\r
16         Sun, 10 Nov 2013 19:15:48 -0800 (PST)\r
17 Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])\r
18         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 46C72431FAE\r
21         for <notmuch@notmuchmail.org>; Sun, 10 Nov 2013 19:15:48 -0800 (PST)\r
22 Received: from remotemail by yantan.tethera.net with local (Exim 4.80)\r
23         (envelope-from <bremner@tethera.net>)\r
24         id 1Vfhyd-0003CQ-B7; Sun, 10 Nov 2013 23:15:47 -0400\r
25 Received: (nullmailer pid 14497 invoked by uid 1000); Mon, 11 Nov 2013\r
26         03:15:43 -0000\r
27 From: David Bremner <david@tethera.net>\r
28 To: notmuch@notmuchmail.org\r
29 Subject: [Patch v2 1/2] test: add optional workaround for gmime bug.\r
30 Date: Sun, 10 Nov 2013 23:15:33 -0400\r
31 Message-Id: <1384139734-14427-1-git-send-email-david@tethera.net>\r
32 X-Mailer: git-send-email 1.8.4.2\r
33 In-Reply-To: <1384100482-15453-3-git-send-email-david@tethera.net>\r
34 References: <1384100482-15453-3-git-send-email-david@tethera.net>\r
35 X-BeenThere: notmuch@notmuchmail.org\r
36 X-Mailman-Version: 2.1.13\r
37 Precedence: list\r
38 List-Id: "Use and development of the notmuch mail system."\r
39         <notmuch.notmuchmail.org>\r
40 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
41         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
42 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
43 List-Post: <mailto:notmuch@notmuchmail.org>\r
44 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
45 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
47 X-List-Received-Date: Mon, 11 Nov 2013 03:15:54 -0000\r
48 \r
49 A new variable NOTMUCH_TEST_WORKAROUNDS is introduced, which enables this\r
50 workaround.  It could be used in the future for similar things.\r
51 ---\r
52  test/README      | 7 +++++++\r
53  test/test-lib.sh | 9 +++++++++\r
54  2 files changed, 16 insertions(+)\r
55 \r
56 diff --git a/test/README b/test/README\r
57 index d12cff2..f132860 100644\r
58 --- a/test/README\r
59 +++ b/test/README\r
60 @@ -96,6 +96,13 @@ Note that some tests in the existing test suite rely on previous test\r
61  items, so you cannot arbitrarily skip any test and expect the\r
62  remaining tests to be unaffected.\r
63  \r
64 +Working around some bugs\r
65 +------------------------\r
66 +\r
67 +The test suite contains some workarounds for known (minor) problems in\r
68 +external dependencies. You can enable these workarounds by setting the\r
69 +environment variable NOTMUCH_TEST_WORKAROUNDS to a non-null value.\r
70 +\r
71  Writing Tests\r
72  -------------\r
73  The test script is written as a shell script.  It should start with\r
74 diff --git a/test/test-lib.sh b/test/test-lib.sh\r
75 index 2aa4dfc..4554d5e 100644\r
76 --- a/test/test-lib.sh\r
77 +++ b/test/test-lib.sh\r
78 @@ -628,6 +628,15 @@ notmuch_json_show_sanitize ()\r
79         -e 's|"filename": "/[^"]*",|"filename": "YYYYY",|g'\r
80  }\r
81  \r
82 +notmuch_reply_sanitize ()\r
83 +{\r
84 +    if test -n "$NOTMUCH_TEST_WORKAROUNDS"; then\r
85 +       # work around GMIME bug #711305\r
86 +       sed -e 's/^References:  /References: /'\r
87 +    else\r
88 +       cat\r
89 +    fi\r
90 +}\r
91  # End of notmuch helper functions\r
92  \r
93  # Use test_set_prereq to tell that a particular prerequisite is available.\r
94 -- \r
95 1.8.4.2\r
96 \r