[PATCH 3½/9] test: notmuch address --deduplicate=no tests

Jani Nikula jani at nikula.org
Fri Sep 4 11:35:16 PDT 2015


Test not using address deduplication. Incorporate some trivial output
sorting tests here, as they seem to lack tests.
---
 test/T095-address.sh | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)

diff --git a/test/T095-address.sh b/test/T095-address.sh
index 8eecb2a6a7ba..f8d902cb3a5e 100755
--- a/test/T095-address.sh
+++ b/test/T095-address.sh
@@ -145,4 +145,74 @@ cat <<EOF >EXPECTED
 EOF
 test_expect_equal_file OUTPUT EXPECTED
 
+test_begin_subtest "--deduplicate=no --sort=oldest-first --output=sender"
+notmuch address --deduplicate=no --sort=oldest-first --output=sender '*' >OUTPUT
+cat <<EOF >EXPECTED
+Mikhail Gusarov <dottedmag at dottedmag.net>
+Mikhail Gusarov <dottedmag at dottedmag.net>
+Carl Worth <cworth at cworth.org>
+Lars Kellogg-Stedman <lars at seas.harvard.edu>
+Mikhail Gusarov <dottedmag at dottedmag.net>
+Alex Botero-Lowry <alex.boterolowry at gmail.com>
+Carl Worth <cworth at cworth.org>
+Lars Kellogg-Stedman <lars at seas.harvard.edu>
+Mikhail Gusarov <dottedmag at dottedmag.net>
+Mikhail Gusarov <dottedmag at dottedmag.net>
+Keith Packard <keithp at keithp.com>
+Keith Packard <keithp at keithp.com>
+Keith Packard <keithp at keithp.com>
+Jan Janak <jan at ryngle.com>
+Jan Janak <jan at ryngle.com>
+Jan Janak <jan at ryngle.com>
+Israel Herraiz <isra at herraiz.org>
+Adrian Perez de Castro <aperez at igalia.com>
+Aron Griffis <agriffis at n01se.net>
+Ingmar Vanhassel <ingmar at exherbo.org>
+Alex Botero-Lowry <alex.boterolowry at gmail.com>
+Lars Kellogg-Stedman <lars at seas.harvard.edu>
+Lars Kellogg-Stedman <lars at seas.harvard.edu>
+Lars Kellogg-Stedman <lars at seas.harvard.edu>
+Stewart Smith <stewart at flamingspork.com>
+Stewart Smith <stewart at flamingspork.com>
+Keith Packard <keithp at keithp.com>
+Keith Packard <keithp at keithp.com>
+Keith Packard <keithp at keithp.com>
+Stewart Smith <stewart at flamingspork.com>
+Jjgod Jiang <gzjjgod at gmail.com>
+Jan Janak <jan at ryngle.com>
+Rolland Santimano <rollandsantimano at yahoo.com>
+Alexander Botero-Lowry <alex.boterolowry at gmail.com>
+Jjgod Jiang <gzjjgod at gmail.com>
+Alexander Botero-Lowry <alex.boterolowry at gmail.com>
+Alexander Botero-Lowry <alex.boterolowry at gmail.com>
+Keith Packard <keithp at keithp.com>
+Alexander Botero-Lowry <alex.boterolowry at gmail.com>
+Carl Worth <cworth at cworth.org>
+Carl Worth <cworth at cworth.org>
+Carl Worth <cworth at cworth.org>
+Carl Worth <cworth at cworth.org>
+Carl Worth <cworth at cworth.org>
+Carl Worth <cworth at cworth.org>
+Carl Worth <cworth at cworth.org>
+Carl Worth <cworth at cworth.org>
+Carl Worth <cworth at cworth.org>
+Carl Worth <cworth at cworth.org>
+Chris Wilson <chris at chris-wilson.co.uk>
+Olivier Berger <olivier.berger at it-sudparis.eu>
+François Boulogne <boulogne.f at gmail.com>
+EOF
+test_expect_equal_file OUTPUT EXPECTED
+
+test_begin_subtest "--deduplicate=no --sort=newest-first --output=sender --output=recipients"
+notmuch address --deduplicate=no --sort=newest-first --output=sender --output=recipients path:foo/new >OUTPUT
+cat <<EOF >EXPECTED
+Mikhail Gusarov <dottedmag at dottedmag.net>
+notmuch at notmuchmail.org
+Mikhail Gusarov <dottedmag at dottedmag.net>
+notmuch at notmuchmail.org
+Lars Kellogg-Stedman <lars at seas.harvard.edu>
+notmuch at notmuchmail.org
+EOF
+test_expect_equal_file OUTPUT EXPECTED
+
 test_done
-- 
2.1.4



More information about the notmuch mailing list