aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/search
diff options
context:
space:
mode:
authorGravatar Mark Walters <markwalters1009@gmail.com>2012-03-01 22:30:35 +0000
committerGravatar David Bremner <bremner@debian.org>2012-03-02 08:25:46 -0400
commit98f5b0f09a816dfe5bc206f8b76c87223437e63d (patch)
treef0a00e55dd59369f1b02b5e406884cbcfe754dc6 /test/search
parent4eab10f0f82cbae8635552a05a7d0ee4ca1ef8cc (diff)
test: add tests for new cli --no-exclude option
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.
Diffstat (limited to 'test/search')
-rwxr-xr-xtest/search5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/search b/test/search
index 414be356..3da5d173 100755
--- a/test/search
+++ b/test/search
@@ -148,6 +148,11 @@ output=$(notmuch search subject:deleted | notmuch_search_sanitize)
test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Not deleted (inbox unread)
thread:XXX 2001-01-05 [1/2] Notmuch Test Suite; Not deleted reply (deleted inbox unread)"
+test_begin_subtest "Don't exclude \"deleted\" messages when --no-exclude specified"
+output=$(notmuch search --no-exclude subject:deleted | notmuch_search_sanitize)
+test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Not deleted (inbox unread)
+thread:XXX 2001-01-05 [2/2] Notmuch Test Suite; Deleted (deleted inbox unread)"
+
test_begin_subtest "Don't exclude \"deleted\" messages from search if not configured"
notmuch config set search.exclude_tags
output=$(notmuch search subject:deleted | notmuch_search_sanitize)