[PATCH 2/2] test: show tests
authorMark Walters <markwalters1009@gmail.com>
Mon, 19 Mar 2012 15:31:01 +0000 (15:31 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:38 +0000 (09:45 -0800)
39/45479f2c9d113277493e9b4f5d9b2d3a61ebe7 [new file with mode: 0644]

diff --git a/39/45479f2c9d113277493e9b4f5d9b2d3a61ebe7 b/39/45479f2c9d113277493e9b4f5d9b2d3a61ebe7
new file mode 100644 (file)
index 0000000..01ae92d
--- /dev/null
@@ -0,0 +1,136 @@
+Return-Path: <markwalters1009@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id EF9D4429E29\r
+       for <notmuch@notmuchmail.org>; Mon, 19 Mar 2012 08:31:17 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.201\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
+       RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id ro0g3uC2683A for <notmuch@notmuchmail.org>;\r
+       Mon, 19 Mar 2012 08:31:16 -0700 (PDT)\r
+Received: from mail-we0-f181.google.com (mail-we0-f181.google.com\r
+       [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 62BBF429E28\r
+       for <notmuch@notmuchmail.org>; Mon, 19 Mar 2012 08:31:16 -0700 (PDT)\r
+Received: by werm13 with SMTP id m13so6830554wer.26\r
+       for <notmuch@notmuchmail.org>; Mon, 19 Mar 2012 08:31:15 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
+       bh=/HdZTDkqeugyknmzwwCGIhYC56AuaO7Pd6CmYKOYA5I=;\r
+       b=af6IDsvMx99H18rEzkf9btRSfwuzoq6pfGusOvr789Ipkzg4xwzPgOE4XHl/jWx3ef\r
+       j/oV4GYEh2YeknpnzRlcR9pPJdbNPYF1x0li6T5PvmwW3DQLYOSdBlIA1zpCOPTrDAXm\r
+       Bb7MMUNWkIdjRxcNYc6nu9WaYanLk6doXRxcTiFyOHWG/63j4u20U3rgh5Y8q+OfESUg\r
+       ei3OvtOoVSZ3KH/lzmNRYPHm9X/Po6KqxkI+5MC8crREfqiwPVYZZnw2+8kAksAjGFtr\r
+       1JpI3dqQXPapmeh2AqWfPiyjPplzdhK6zGrWtxwF9O7p7QMQslfb0qCqWUeHbPB2IsM3\r
+       2yWA==\r
+Received: by 10.216.145.209 with SMTP id p59mr7493917wej.50.1332171075113;\r
+       Mon, 19 Mar 2012 08:31:15 -0700 (PDT)\r
+Received: from localhost (94-192-233-223.zone6.bethere.co.uk.\r
+ [94.192.233.223])     by mx.google.com with ESMTPS id\r
+ b3sm26353557wib.4.2012.03.19.08.31.13 (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Mon, 19 Mar 2012 08:31:14 -0700 (PDT)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 2/2] test: show tests\r
+Date: Mon, 19 Mar 2012 15:31:01 +0000\r
+Message-Id: <1332171061-27983-3-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.9.1\r
+In-Reply-To: <1332171061-27983-1-git-send-email-markwalters1009@gmail.com>\r
+References: <1332171061-27983-1-git-send-email-markwalters1009@gmail.com>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 19 Mar 2012 15:31:18 -0000\r
+\r
+---\r
+ test/notmuch-test |    1 +\r
+ test/show         |   47 +++++++++++++++++++++++++++++++++++++++++++++++\r
+ 2 files changed, 48 insertions(+), 0 deletions(-)\r
+ create mode 100755 test/show\r
+\r
+diff --git a/test/notmuch-test b/test/notmuch-test\r
+index f03b594..2499e4b 100755\r
+--- a/test/notmuch-test\r
++++ b/test/notmuch-test\r
+@@ -28,6 +28,7 @@ TESTS="\r
+   search-insufficient-from-quoting\r
+   search-limiting\r
+   tagging\r
++  show\r
+   json\r
+   multipart\r
+   thread-naming\r
+diff --git a/test/show b/test/show\r
+new file mode 100755\r
+index 0000000..fc83e5e\r
+--- /dev/null\r
++++ b/test/show\r
+@@ -0,0 +1,47 @@\r
++#!/usr/bin/env bash\r
++test_description='"notmuch show" in several variations'\r
++. ./test-lib.sh\r
++\r
++EXPECTED=$TEST_DIRECTORY/show.expected-output\r
++\r
++add_email_corpus\r
++\r
++thread_query=`notmuch search --output=threads subject:"Working with Maildir storage?"`\r
++\r
++test_begin_subtest "Show single thread (text)"\r
++notmuch show $thread_query >OUTPUT\r
++test_expect_equal_file OUTPUT $EXPECTED/single-thread-text\r
++\r
++test_begin_subtest "Show single thread (json)"\r
++notmuch show --format=json $thread_query | notmuch_json_show_sanitize >OUTPUT\r
++test_expect_equal_file OUTPUT $EXPECTED/single-thread-json\r
++\r
++test_begin_subtest "Show single thread (mbox)"\r
++notmuch show --format=mbox $thread_query >OUTPUT\r
++test_expect_equal_file OUTPUT $EXPECTED/single-thread-mbox\r
++\r
++test_begin_subtest "Show single thread with additional query (text)"\r
++notmuch show $thread_query and from:worth >OUTPUT\r
++test_expect_equal_file OUTPUT $EXPECTED/single-thread-and-query-text\r
++\r
++test_begin_subtest "Show single thread with additional query --entire-thread (text)"\r
++notmuch show --entire-thread $thread_query and from:worth >OUTPUT\r
++test_expect_equal_file OUTPUT $EXPECTED/single-thread-and-query-entire-thread-text\r
++\r
++test_begin_subtest "Show single thread with additional query (json)"\r
++notmuch show --format=json $thread_query and from:worth | notmuch_json_show_sanitize >OUTPUT\r
++test_expect_equal_file OUTPUT $EXPECTED/single-thread-and-query-json\r
++\r
++test_begin_subtest "Show single thread with additional query --entire-thread (json)"\r
++notmuch show --format=json --entire-thread $thread_query and from:worth | notmuch_json_show_sanitize >OUTPUT\r
++test_expect_equal_file OUTPUT $EXPECTED/single-thread-and-query-entire-thread-json\r
++\r
++test_begin_subtest "Show single thread with additional query (mbox)"\r
++notmuch show --format=mbox $thread_query and from:worth >OUTPUT\r
++test_expect_equal_file OUTPUT $EXPECTED/single-thread-and-query-mbox\r
++\r
++test_begin_subtest "Show single thread with additional query --entire-thread (mbox)"\r
++notmuch show --format=mbox --entire-thread $thread_query and from:worth >OUTPUT\r
++test_expect_equal_file OUTPUT $EXPECTED/single-thread-and-query-entire-thread-mbox\r
++\r
++test_done\r
+-- \r
+1.7.9.1\r
+\r