From: Mark Walters <markwalters1...@gmail.com> --- test/tagging | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/test/tagging b/test/tagging index 980ff92..eb7d61c 100755 --- a/test/tagging +++ b/test/tagging @@ -19,6 +19,15 @@ test_expect_equal "$output" "\ thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; One (inbox tag3 unread) thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag3 unread)" +test_begin_subtest "Adding tags. Query from stdin" +echo -n "subject:One" | notmuch tag +intag1 +intag2 -- - +echo DONE +output=$(notmuch search \* | notmuch_search_sanitize) +test_expect_equal "$output" "\ +thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; One (inbox intag1 intag2 tag3 unread) +thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag3 unread)" +notmuch tag -intag1 -intag2 \* + test_expect_code 1 "No tag operations" 'notmuch tag One' test_expect_code 1 "No query" 'notmuch tag +tag2' -- 1.7.9.1