2 test_description='"notmuch count" for messages and threads'
7 test_begin_subtest "message count is the default for notmuch count"
9 "`notmuch search --output=messages '*' | wc -l`" \
12 test_begin_subtest "message count with --output=messages"
14 "`notmuch search --output=messages '*' | wc -l`" \
15 "`notmuch count --output=messages '*'`"
17 test_begin_subtest "thread count with --output=threads"
19 "`notmuch search --output=threads '*' | wc -l`" \
20 "`notmuch count --output=threads '*'`"
22 test_begin_subtest "thread count is the default for notmuch search"
24 "`notmuch search '*' | wc -l`" \
25 "`notmuch count --output=threads '*'`"
27 test_begin_subtest "count with no matching messages"
30 "`notmuch count --output=messages from:cworth and not from:cworth`"
32 test_begin_subtest "count with no matching threads"
35 "`notmuch count --output=threads from:cworth and not from:cworth`"