From: David Bremner Date: Mon, 11 Nov 2013 03:15:33 +0000 (+2000) Subject: [Patch v2 1/2] test: add optional workaround for gmime bug. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2243c9bfcdc758329951e73ff092df4db1298a22;p=notmuch-archives.git [Patch v2 1/2] test: add optional workaround for gmime bug. --- diff --git a/a6/b1a9919b47276044eefec26246cd74147082e4 b/a6/b1a9919b47276044eefec26246cd74147082e4 new file mode 100644 index 000000000..dcedd7cb9 --- /dev/null +++ b/a6/b1a9919b47276044eefec26246cd74147082e4 @@ -0,0 +1,96 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 232EB429E34 + for ; Sun, 10 Nov 2013 19:15:54 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id lxT9YRcQ8DAZ for ; + Sun, 10 Nov 2013 19:15:48 -0800 (PST) +Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155]) + (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 46C72431FAE + for ; Sun, 10 Nov 2013 19:15:48 -0800 (PST) +Received: from remotemail by yantan.tethera.net with local (Exim 4.80) + (envelope-from ) + id 1Vfhyd-0003CQ-B7; Sun, 10 Nov 2013 23:15:47 -0400 +Received: (nullmailer pid 14497 invoked by uid 1000); Mon, 11 Nov 2013 + 03:15:43 -0000 +From: David Bremner +To: notmuch@notmuchmail.org +Subject: [Patch v2 1/2] test: add optional workaround for gmime bug. +Date: Sun, 10 Nov 2013 23:15:33 -0400 +Message-Id: <1384139734-14427-1-git-send-email-david@tethera.net> +X-Mailer: git-send-email 1.8.4.2 +In-Reply-To: <1384100482-15453-3-git-send-email-david@tethera.net> +References: <1384100482-15453-3-git-send-email-david@tethera.net> +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +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, 11 Nov 2013 03:15:54 -0000 + +A new variable NOTMUCH_TEST_WORKAROUNDS is introduced, which enables this +workaround. It could be used in the future for similar things. +--- + test/README | 7 +++++++ + test/test-lib.sh | 9 +++++++++ + 2 files changed, 16 insertions(+) + +diff --git a/test/README b/test/README +index d12cff2..f132860 100644 +--- a/test/README ++++ b/test/README +@@ -96,6 +96,13 @@ Note that some tests in the existing test suite rely on previous test + items, so you cannot arbitrarily skip any test and expect the + remaining tests to be unaffected. + ++Working around some bugs ++------------------------ ++ ++The test suite contains some workarounds for known (minor) problems in ++external dependencies. You can enable these workarounds by setting the ++environment variable NOTMUCH_TEST_WORKAROUNDS to a non-null value. ++ + Writing Tests + ------------- + The test script is written as a shell script. It should start with +diff --git a/test/test-lib.sh b/test/test-lib.sh +index 2aa4dfc..4554d5e 100644 +--- a/test/test-lib.sh ++++ b/test/test-lib.sh +@@ -628,6 +628,15 @@ notmuch_json_show_sanitize () + -e 's|"filename": "/[^"]*",|"filename": "YYYYY",|g' + } + ++notmuch_reply_sanitize () ++{ ++ if test -n "$NOTMUCH_TEST_WORKAROUNDS"; then ++ # work around GMIME bug #711305 ++ sed -e 's/^References: /References: /' ++ else ++ cat ++ fi ++} + # End of notmuch helper functions + + # Use test_set_prereq to tell that a particular prerequisite is available. +-- +1.8.4.2 +