summaryrefslogtreecommitdiff
path: root/test/count
AgeCommit message (Collapse)Author
2013-04-01test: notmuch count --batch and --input optionsJani Nikula
2012-12-08test: wrap 'wc -l' results in arithmetic evaluation to strip whitespaceJani Nikula
This is for portability, as 'wc -l' emits whitespace on some BSD variants. Suggested by Tomi Ollila <tomi.ollila@iki.fi>.
2012-12-08test: fix count testJani Nikula
The quoting for ${SEARCH} is broken when it's supposed to be '*', and it seems tricky to get it right. Just drop the variable and use '*' directly. Before this, none of the messages ever matched, and the test was comparing zeros.
2012-04-07test: add some exclude testsMark Walters
Systematically test the exclude options for search. Also move the search existing exclude tests into the new test. There is some overlap between the two sets of tests but many of the existing ones are there because they triggered bugs in the past so I have kept them to ensure coverage.
2012-04-07cli: move count to the new --exclude=(true|false|flag) naming scheme.Mark Walters
Move the option --no-exclude to the --exclude= scheme. Since there is no way to flag messages only true and false are implemented. Note that, for consistency with other commands, this is implemented as a keyword option rather than a boolean option.
2012-03-18test: the test for the exclude code mistakenly excludes the tag "="Mark Walters
The tests for the exclude code in search and count use the line notmuch config set search.exclude_tags = deleted which actually sets the exclude tags to be "=" and "deleted". Remove the "=" from this line.
2012-03-02test: add tests for new cli --no-exclude optionMark Walters
The tests test the new --no-exclude option to search and count. There were no existing tests for the exclude behaviour for count so added these too.
2011-11-15test: add tests for notmuch countJani Nikula
Signed-off-by: Jani Nikula <jani@nikula.org>