Re: [PATCH 3½/9] test: notmuch address --deduplicate=no tests
authorDavid Bremner <david@tethera.net>
Sun, 20 Sep 2015 12:43:59 +0000 (09:43 +2100)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:49:35 +0000 (14:49 -0700)
09/bb963bdedb43ed07a76faa4f64de414cd8fba0 [new file with mode: 0644]

diff --git a/09/bb963bdedb43ed07a76faa4f64de414cd8fba0 b/09/bb963bdedb43ed07a76faa4f64de414cd8fba0
new file mode 100644 (file)
index 0000000..1626809
--- /dev/null
@@ -0,0 +1,93 @@
+Return-Path: <david@tethera.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 1152B6DE1B2E\r
+ for <notmuch@notmuchmail.org>; Sun, 20 Sep 2015 07:30:33 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.113\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.113 tagged_above=-999 required=5 tests=[AWL=0.113]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id qGe8Sy84P9eV for <notmuch@notmuchmail.org>;\r
+ Sun, 20 Sep 2015 07:30:31 -0700 (PDT)\r
+Received: from gitolite.debian.net (gitolite.debian.net [87.98.215.224])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id F141A6DE1B2C\r
+ for <notmuch@notmuchmail.org>; Sun, 20 Sep 2015 07:30:30 -0700 (PDT)\r
+Received: from remotemail by gitolite.debian.net with local (Exim 4.80)\r
+ (envelope-from <david@tethera.net>)\r
+ id 1Zdex8-00075t-Gm; Sun, 20 Sep 2015 13:46:50 +0000\r
+Received: (nullmailer pid 4346 invoked by uid 1000); Sun, 20 Sep 2015\r
+ 12:44:00 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: Jani Nikula <jani@nikula.org>, Jani Nikula <jani@nikula.org>,\r
+ notmuch@notmuchmail.org\r
+Subject: Re: [PATCH =?utf-8?Q?3=C2=BD=2F9=5D?= test: notmuch address\r
+ --deduplicate=no tests\r
+In-Reply-To: <1441391716-17282-1-git-send-email-jani@nikula.org>\r
+References:\r
+ <fd59eadee26a770097517bee038e2b126e11aa90.1441308761.git.jani@nikula.org>\r
+ <1441391716-17282-1-git-send-email-jani@nikula.org>\r
+User-Agent: Notmuch/0.20.2+73~gd432116 (http://notmuchmail.org) Emacs/24.5.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Sun, 20 Sep 2015 09:43:59 -0300\r
+Message-ID: <87a8shtg4w.fsf@maritornes.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\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: Sun, 20 Sep 2015 14:30:33 -0000\r
+\r
+Jani Nikula <jani@nikula.org> writes:\r
+\r
+> Test not using address deduplication. Incorporate some trivial output\r
+> sorting tests here, as they seem to lack tests.\r
+> ---\r
+>  test/T095-address.sh | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++\r
+>  1 file changed, 70 insertions(+)\r
+>\r
+> diff --git a/test/T095-address.sh b/test/T095-address.sh\r
+> index 8eecb2a6a7ba..f8d902cb3a5e 100755\r
+> --- a/test/T095-address.sh\r
+> +++ b/test/T095-address.sh\r
+> @@ -145,4 +145,74 @@ cat <<EOF >EXPECTED\r
+>  EOF\r
+>  test_expect_equal_file OUTPUT EXPECTED\r
+>  \r
+> +test_begin_subtest "--deduplicate=no --sort=oldest-first --output=sender"\r
+> +notmuch address --deduplicate=no --sort=oldest-first --output=sender '*' >OUTPUT\r
+> +cat <<EOF >EXPECTED\r
+> +Mikhail Gusarov <dottedmag@dottedmag.net>\r
+> +Mikhail Gusarov <dottedmag@dottedmag.net>\r
+> +Carl Worth <cworth@cworth.org>\r
+\r
+> +\r
+> +test_begin_subtest "--deduplicate=no --sort=newest-first --output=sender --output=recipients"\r
+> +notmuch address --deduplicate=no --sort=newest-first --output=sender --output=recipients path:foo/new >OUTPUT\r
+> +cat <<EOF >EXPECTED\r
+> +Mikhail Gusarov <dottedmag@dottedmag.net>\r
+> +notmuch@notmuchmail.org\r
+> +Mikhail Gusarov <dottedmag@dottedmag.net>\r
+\r
+Two comments:\r
+\r
+1) It's suprising that Mikail is first in both the newest-first and\r
+oldest-first list. Is it easy to explain why?\r
+\r
+2) the use of path: term is not mentioned in the description. Should it\r
+be mentioned somehow?\r
+\r
+d\r