[PATCH 3½/9] test: notmuch address --deduplicate=no tests
authorJani Nikula <jani@nikula.org>
Fri, 4 Sep 2015 18:35:16 +0000 (21:35 +0300)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:49:31 +0000 (14:49 -0700)
21/620f65754f947c7dea2aded1d86faeff43682e [new file with mode: 0644]

diff --git a/21/620f65754f947c7dea2aded1d86faeff43682e b/21/620f65754f947c7dea2aded1d86faeff43682e
new file mode 100644 (file)
index 0000000..d1c62ef
--- /dev/null
@@ -0,0 +1,159 @@
+Return-Path: <jani@nikula.org>\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 5B2316DE1472\r
+ for <notmuch@notmuchmail.org>; Fri,  4 Sep 2015 11:35:26 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.48\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.48 tagged_above=-999 required=5 tests=[AWL=0.240, \r
+ RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01,\r
+ RCVD_IN_MSPIKE_WL=-0.01] 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 xQImKBFdZujk for <notmuch@notmuchmail.org>;\r
+ Fri,  4 Sep 2015 11:35:23 -0700 (PDT)\r
+Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com\r
+ [209.85.212.179])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 5F7A16DE0A9A\r
+ for <notmuch@notmuchmail.org>; Fri,  4 Sep 2015 11:35:23 -0700 (PDT)\r
+Received: by wicge5 with SMTP id ge5so26010336wic.0\r
+ for <notmuch@notmuchmail.org>; Fri, 04 Sep 2015 11:35:21 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to\r
+ :references:mime-version:content-type:content-transfer-encoding;\r
+ bh=BuBbwHp0CA7c/OWkT2Sm/4vUgalQUBUcEpJBMakHPG8=;\r
+ b=Ah6PPUUgCObc2ztXJpYw6OpzsOS//Ijmj8Vb7Z4tzHpxXLWkyDCGERzV9GC7lFC+TK\r
+ VGHraXxPurER1vdJvjv/yshhTrO11sEaavDXsNK/dSQCvuCPx1aX9Isv4qE5Z24568IY\r
+ D/86wbxwCBgKlJSXVpyosB1pf2/UGWF+0lKCEoInS73PeW92b5zw+0Q1qQYNuD3U397J\r
+ MbNwkKi8zTO8sAmGZXRgBAucwx6d7xQ/LrSCp45AOiY31NYx3kbM7MA2FJ2x51Z6XUJ1\r
+ Gw2Zi9u9YNEGzsLqSg/DIrQIIP5WamVzeYfEYB0h7jnBOCiJZbL425ZXyF1awPjZ2gb9\r
+ maBw==\r
+X-Gm-Message-State:\r
+ ALoCoQn//wJN0coA1qywyrrkff9bftbt6SDn9iKBxI8n1R6RTRd2cCq262hmlTnhME1oIGrWcYgp\r
+X-Received: by 10.180.104.8 with SMTP id ga8mr9496668wib.86.1441391721210;\r
+ Fri, 04 Sep 2015 11:35:21 -0700 (PDT)\r
+Received: from localhost (mobile-access-bcee4f-131.dhcp.inet.fi.\r
+ [188.238.79.131])\r
+ by smtp.gmail.com with ESMTPSA id p3sm5622024wib.16.2015.09.04.11.35.19\r
+ (version=TLSv1/SSLv3 cipher=OTHER);\r
+ Fri, 04 Sep 2015 11:35:20 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: Jani Nikula <jani@nikula.org>,\r
+       notmuch@notmuchmail.org\r
+Subject: =?utf-8?q?=5BPATCH_3=C2=BD/9=5D_test=3A_notmuch_address_--deduplicate=3Dno_tests?=\r
+Date: Fri,  4 Sep 2015 21:35:16 +0300\r
+Message-Id: <1441391716-17282-1-git-send-email-jani@nikula.org>\r
+X-Mailer: git-send-email 2.1.4\r
+In-Reply-To:\r
+ <fd59eadee26a770097517bee038e2b126e11aa90.1441308761.git.jani@nikula.org>\r
+References:\r
+ <fd59eadee26a770097517bee038e2b126e11aa90.1441308761.git.jani@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=UTF-8\r
+Content-Transfer-Encoding: 8bit\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: Fri, 04 Sep 2015 18:35:26 -0000\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
++Lars Kellogg-Stedman <lars@seas.harvard.edu>\r
++Mikhail Gusarov <dottedmag@dottedmag.net>\r
++Alex Botero-Lowry <alex.boterolowry@gmail.com>\r
++Carl Worth <cworth@cworth.org>\r
++Lars Kellogg-Stedman <lars@seas.harvard.edu>\r
++Mikhail Gusarov <dottedmag@dottedmag.net>\r
++Mikhail Gusarov <dottedmag@dottedmag.net>\r
++Keith Packard <keithp@keithp.com>\r
++Keith Packard <keithp@keithp.com>\r
++Keith Packard <keithp@keithp.com>\r
++Jan Janak <jan@ryngle.com>\r
++Jan Janak <jan@ryngle.com>\r
++Jan Janak <jan@ryngle.com>\r
++Israel Herraiz <isra@herraiz.org>\r
++Adrian Perez de Castro <aperez@igalia.com>\r
++Aron Griffis <agriffis@n01se.net>\r
++Ingmar Vanhassel <ingmar@exherbo.org>\r
++Alex Botero-Lowry <alex.boterolowry@gmail.com>\r
++Lars Kellogg-Stedman <lars@seas.harvard.edu>\r
++Lars Kellogg-Stedman <lars@seas.harvard.edu>\r
++Lars Kellogg-Stedman <lars@seas.harvard.edu>\r
++Stewart Smith <stewart@flamingspork.com>\r
++Stewart Smith <stewart@flamingspork.com>\r
++Keith Packard <keithp@keithp.com>\r
++Keith Packard <keithp@keithp.com>\r
++Keith Packard <keithp@keithp.com>\r
++Stewart Smith <stewart@flamingspork.com>\r
++Jjgod Jiang <gzjjgod@gmail.com>\r
++Jan Janak <jan@ryngle.com>\r
++Rolland Santimano <rollandsantimano@yahoo.com>\r
++Alexander Botero-Lowry <alex.boterolowry@gmail.com>\r
++Jjgod Jiang <gzjjgod@gmail.com>\r
++Alexander Botero-Lowry <alex.boterolowry@gmail.com>\r
++Alexander Botero-Lowry <alex.boterolowry@gmail.com>\r
++Keith Packard <keithp@keithp.com>\r
++Alexander Botero-Lowry <alex.boterolowry@gmail.com>\r
++Carl Worth <cworth@cworth.org>\r
++Carl Worth <cworth@cworth.org>\r
++Carl Worth <cworth@cworth.org>\r
++Carl Worth <cworth@cworth.org>\r
++Carl Worth <cworth@cworth.org>\r
++Carl Worth <cworth@cworth.org>\r
++Carl Worth <cworth@cworth.org>\r
++Carl Worth <cworth@cworth.org>\r
++Carl Worth <cworth@cworth.org>\r
++Carl Worth <cworth@cworth.org>\r
++Chris Wilson <chris@chris-wilson.co.uk>\r
++Olivier Berger <olivier.berger@it-sudparis.eu>\r
++François Boulogne <boulogne.f@gmail.com>\r
++EOF\r
++test_expect_equal_file OUTPUT EXPECTED\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
++notmuch@notmuchmail.org\r
++Lars Kellogg-Stedman <lars@seas.harvard.edu>\r
++notmuch@notmuchmail.org\r
++EOF\r
++test_expect_equal_file OUTPUT EXPECTED\r
++\r
+ test_done\r
+-- \r
+2.1.4\r
+\r