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 <[email protected]>
+Mikhail Gusarov <[email protected]>
+Carl Worth <[email protected]>
+Lars Kellogg-Stedman <[email protected]>
+Mikhail Gusarov <[email protected]>
+Alex Botero-Lowry <[email protected]>
+Carl Worth <[email protected]>
+Lars Kellogg-Stedman <[email protected]>
+Mikhail Gusarov <[email protected]>
+Mikhail Gusarov <[email protected]>
+Keith Packard <[email protected]>
+Keith Packard <[email protected]>
+Keith Packard <[email protected]>
+Jan Janak <[email protected]>
+Jan Janak <[email protected]>
+Jan Janak <[email protected]>
+Israel Herraiz <[email protected]>
+Adrian Perez de Castro <[email protected]>
+Aron Griffis <[email protected]>
+Ingmar Vanhassel <[email protected]>
+Alex Botero-Lowry <[email protected]>
+Lars Kellogg-Stedman <[email protected]>
+Lars Kellogg-Stedman <[email protected]>
+Lars Kellogg-Stedman <[email protected]>
+Stewart Smith <[email protected]>
+Stewart Smith <[email protected]>
+Keith Packard <[email protected]>
+Keith Packard <[email protected]>
+Keith Packard <[email protected]>
+Stewart Smith <[email protected]>
+Jjgod Jiang <[email protected]>
+Jan Janak <[email protected]>
+Rolland Santimano <[email protected]>
+Alexander Botero-Lowry <[email protected]>
+Jjgod Jiang <[email protected]>
+Alexander Botero-Lowry <[email protected]>
+Alexander Botero-Lowry <[email protected]>
+Keith Packard <[email protected]>
+Alexander Botero-Lowry <[email protected]>
+Carl Worth <[email protected]>
+Carl Worth <[email protected]>
+Carl Worth <[email protected]>
+Carl Worth <[email protected]>
+Carl Worth <[email protected]>
+Carl Worth <[email protected]>
+Carl Worth <[email protected]>
+Carl Worth <[email protected]>
+Carl Worth <[email protected]>
+Carl Worth <[email protected]>
+Chris Wilson <[email protected]>
+Olivier Berger <[email protected]>
+François Boulogne <[email protected]>
+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 <[email protected]>
[email protected]
+Mikhail Gusarov <[email protected]>
[email protected]
+Lars Kellogg-Stedman <[email protected]>
[email protected]
+EOF
+test_expect_equal_file OUTPUT EXPECTED
+
 test_done
-- 
2.1.4

_______________________________________________
notmuch mailing list
[email protected]
http://notmuchmail.org/mailman/listinfo/notmuch

Reply via email to