2 test_description='"notmuch count" for messages and threads'
9 test_begin_subtest "message count is the default for notmuch count"
11 "`notmuch search --output=messages ${SEARCH} | wc -l`" \
12 "`notmuch count ${SEARCH}`"
14 test_begin_subtest "message count with --output=messages"
16 "`notmuch search --output=messages ${SEARCH} | wc -l`" \
17 "`notmuch count --output=messages ${SEARCH}`"
19 test_begin_subtest "thread count with --output=threads"
21 "`notmuch search --output=threads ${SEARCH} | wc -l`" \
22 "`notmuch count --output=threads ${SEARCH}`"
24 test_begin_subtest "thread count is the default for notmuch search"
26 "`notmuch search ${SEARCH} | wc -l`" \
27 "`notmuch count --output=threads ${SEARCH}`"
29 SEARCH="from:cworth and not from:cworth"
30 test_begin_subtest "count with no matching messages"
33 "`notmuch count --output=messages ${SEARCH}`"
35 test_begin_subtest "count with no matching threads"
38 "`notmuch count --output=threads ${SEARCH}`"