X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT140-excludes.sh;h=0cacc41d9d573f6f98abfc43df18e819a2c7eff2;hb=7061e41cd0ed7a37dab83687697a692a53c5a66f;hp=cef07095caf329910c7c997ece5f50b640b06177;hpb=76871fcf5eb97b27030b0517afdac1e2cceb5b2a;p=notmuch diff --git a/test/T140-excludes.sh b/test/T140-excludes.sh index cef07095..0cacc41d 100755 --- a/test/T140-excludes.sh +++ b/test/T140-excludes.sh @@ -286,6 +286,21 @@ test_begin_subtest "Count, default exclusion: tag in query (threads)" output=$(notmuch count --output=threads tag:test and tag:deleted) test_expect_equal "$output" "3" +test_begin_subtest "Count, default exclusion, batch" +notmuch count --batch --output=messages< OUTPUT +tag:test +tag:test and tag:deleted +tag:test +tag:test and tag:deleted +EOF +cat <EXPECTED +2 +4 +2 +4 +EOF +test_expect_equal_file EXPECTED OUTPUT + test_begin_subtest "Count, exclude=true: tag in query (messages)" output=$(notmuch count --exclude=true tag:test and tag:deleted) test_expect_equal "$output" "4"