]> git.notmuchmail.org Git - notmuch/commitdiff
test: test notmuch count --output=files
authorJani Nikula <jani@nikula.org>
Sat, 17 Aug 2013 12:11:30 +0000 (15:11 +0300)
committerDavid Bremner <bremner@debian.org>
Sat, 24 Aug 2013 09:44:12 +0000 (11:44 +0200)
Add tests for notmuch count --output=files option.

test/count

index 05713fdc7eb250a65b618fbd152846f93d08a134..da86c8cc70cf4a9f32669fd1b3472353f528d295 100755 (executable)
@@ -28,6 +28,16 @@ test_expect_equal \
     "$((`notmuch search '*' | wc -l`))" \
     "`notmuch count --output=threads '*'`"
 
     "$((`notmuch search '*' | wc -l`))" \
     "`notmuch count --output=threads '*'`"
 
+test_begin_subtest "files count"
+test_expect_equal \
+    "$((`notmuch search --output=files '*' | wc -l`))" \
+    "`notmuch count --output=files '*'`"
+
+test_begin_subtest "files count for a duplicate message-id"
+test_expect_equal \
+    "2" \
+    "`notmuch count --output=files id:20091117232137.GA7669@griffis1.net`"
+
 test_begin_subtest "count with no matching messages"
 test_expect_equal \
     "0" \
 test_begin_subtest "count with no matching messages"
 test_expect_equal \
     "0" \