aboutsummaryrefslogtreecommitdiff
path: root/test/tagging
AgeCommit message (Collapse)Author
2014-01-13test: renamed test scripts to format T\d\d\d-name.shTomi Ollila
All test scripts to be executed are now named as T\d\d\d-name.sh, numers in increments of 10. This eases adding new tests and developers to see which are test scripts that are executed by test suite and in which order.
2013-03-30test: notmuch tag --remove-allJani Nikula
2013-01-07test/tagging: add test for naked punctuation in tags; compare with quoting spaces.David Bremner
This test also serves as documentation of the quoting requirements. The comment lines are so that it exactly matches the man page. Nothing more embarrassing than having an example in the man page fail.
2013-01-07test/tagging: add test for exotic message-ids and batch taggingDavid Bremner
The (now fixed) bug that this test revealed is that unquoted message-ids with whitespace or other control characters in them are split into several tokens by the Xapian query parser.
2013-01-07test/tagging: add tests for exotic tagsDavid Bremner
We test quotes seperately because they matter to the query escaper.
2013-01-07test/tagging: add basic tests for batch tagging functionalityDavid Bremner
This tests argument parsing, blank lines and comments, and basic hex decoding functionality.
2013-01-07test/tagging: add test for error messages of tag --batchDavid Bremner
This is based on the similar test for notmuch restore, but the parser in batch tagging mode is less tolerant of a few cases, in particular those tested by illegal_tag.
2012-10-27tag: Disallow adding malformed tags to messagesAustin Clements
This disallows adding empty tags, since nothing but confusion follows in their wake, and disallows adding tags that begin with "-" because they are also confusing, the tag "-" is impossible to remove using the CLI, and because the syntax for removing such tags conflicts with long argument syntax. This does not place any restrictions on what tags can be removed, as that would make it difficult for people who have the misfortune of already having malformed tags to remove these tags.
2012-03-30cli: refactor "notmuch tag" data structures for tagging operationsJani Nikula
To simplify code, keep all tagging operations in a single array instead of separate add and remove arrays. Apply tag changes in the order specified on the command line, instead of first removing and then adding the tags. This results in a minor functional change: If a tag is both added and removed, the last specified operation is now used. Previously the tag was always added. Change the relevant test to reflect the new behaviour. Signed-off-by: Jani Nikula <jani@nikula.org>
2012-03-30test: add test for both adding and removing a tag at the same timeJani Nikula
The current behaviour is that regardless of the order in which the addition and removal of a tag are specified, the tag is added. Signed-off-by: Jani Nikula <jani@nikula.org>
2011-11-14test: Add a test script for "notmuch tag"Austin Clements