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