[PATCH 1/9] lib: read "property" terms from messages.
[notmuch-archives.git] / 95 / 634618b808f7b56edb9824ee4a28a05c084368
1 Return-Path: <markwalters1009@gmail.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id E15E1431FD4\r
6         for <notmuch@notmuchmail.org>; Sat, 11 May 2013 12:50:28 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.201\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
14         RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
15 Received: from olra.theworths.org ([127.0.0.1])\r
16         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
17         with ESMTP id 0Q2eHS5Lsbft for <notmuch@notmuchmail.org>;\r
18         Sat, 11 May 2013 12:50:23 -0700 (PDT)\r
19 Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com\r
20         [209.85.212.179]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
21         (No client certificate requested)\r
22         by olra.theworths.org (Postfix) with ESMTPS id 1C463431FBD\r
23         for <notmuch@notmuchmail.org>; Sat, 11 May 2013 12:50:22 -0700 (PDT)\r
24 Received: by mail-wi0-f179.google.com with SMTP id hn3so1673567wib.0\r
25         for <notmuch@notmuchmail.org>; Sat, 11 May 2013 12:50:22 -0700 (PDT)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
27         h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to\r
28         :references; bh=g8ICB0MZY93PBn2/eh966KL14FPLMlSypZX0Kmlk+UY=;\r
29         b=M6tCG3XlG+cSkIxKj9abL4aXvxsrhEuC0h3L2vGPDrXXXT3q75NQAGADF9fAeJP3/S\r
30         rlNLaUAxt+OCBVPmPG7un7O1XoZWwwoTtKUqXdw/w/2Vo3kcMwg2yuiippIkWlxAowk0\r
31         4UAzMsTZSeeoKdVnuRxp5W5Lg59SF3By3gyjDTo7+kpJuNDPvPNRgYy/ODtkSUMlXAe0\r
32         C4nWKXSoEPwpn7Nr5f8a4K07QTvDD9V+0MJ1esq9P394XOPjtvq1IXQ4R0eUdQc3uutm\r
33         UW+xIOvh+I5O6MyqB52baZ1S2/aeIkMLOqDgYxV4Nt0wYgy7qi0vOdGfw8u9cno/SNL/\r
34         gC1w==\r
35 X-Received: by 10.180.212.3 with SMTP id ng3mr10393950wic.22.1368301822051;\r
36         Sat, 11 May 2013 12:50:22 -0700 (PDT)\r
37 Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
38         by mx.google.com with ESMTPSA id ed20sm6268472wic.0.2013.05.11.12.50.21\r
39         for <multiple recipients>\r
40         (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
41         Sat, 11 May 2013 12:50:21 -0700 (PDT)\r
42 From: Mark Walters <markwalters1009@gmail.com>\r
43 To: notmuch@notmuchmail.org\r
44 Subject: [PATCH v2 3/8] test: add tests for search --exclude=all\r
45 Date: Sat, 11 May 2013 20:50:04 +0100\r
46 Message-Id: <1368301809-12532-4-git-send-email-markwalters1009@gmail.com>\r
47 X-Mailer: git-send-email 1.7.9.1\r
48 In-Reply-To: <1368301809-12532-1-git-send-email-markwalters1009@gmail.com>\r
49 References: <1368301809-12532-1-git-send-email-markwalters1009@gmail.com>\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.13\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54         <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Sat, 11 May 2013 19:50:29 -0000\r
63 \r
64 From: Peter Wang <novalazy@gmail.com>\r
65 \r
66 Test the new search --exclude=all option.\r
67 ---\r
68  test/excludes |   22 ++++++++++++++++++++++\r
69  1 files changed, 22 insertions(+), 0 deletions(-)\r
70 \r
71 diff --git a/test/excludes b/test/excludes\r
72 index 24d653e..f1ae9ea 100755\r
73 --- a/test/excludes\r
74 +++ b/test/excludes\r
75 @@ -166,6 +166,16 @@ ${matching_message_ids[3]}\r
76  ${matching_message_ids[4]}\r
77  ${matching_message_ids[5]}"\r
78  \r
79 +test_begin_subtest "Search, exclude=all (thread summary)"\r
80 +output=$(notmuch search --exclude=all tag:test | notmuch_search_sanitize)\r
81 +test_expect_equal "$output" "thread:XXX   2001-01-05 [1/5] Notmuch Test Suite; Some messages excluded: single non-excluded match: reply 4 (inbox test unread)\r
82 +thread:XXX   2001-01-05 [1/6] Notmuch Test Suite; No messages excluded: single match: reply 3 (inbox test unread)"\r
83 +\r
84 +test_begin_subtest "Search, exclude=all (messages)"\r
85 +output=$(notmuch search --exclude=all --output=messages tag:test | notmuch_search_sanitize)\r
86 +test_expect_equal "$output" "${matching_message_ids[4]}\r
87 +${matching_message_ids[5]}"\r
88 +\r
89  test_begin_subtest "Search, default exclusion: tag in query (thread summary)"\r
90  output=$(notmuch search tag:test and tag:deleted | notmuch_search_sanitize)\r
91  test_expect_equal "$output" "thread:XXX   2001-01-05 [1/6] Notmuch Test Suite; All messages excluded: single match: reply 2 (deleted inbox test unread)\r
92 @@ -218,6 +228,18 @@ ${matching_message_ids[1]}\r
93  ${matching_message_ids[2]}\r
94  ${matching_message_ids[3]}"\r
95  \r
96 +test_begin_subtest "Search, exclude=all: tag in query (thread summary)"\r
97 +output=$(notmuch search --exclude=all tag:test and tag:deleted | notmuch_search_sanitize)\r
98 +test_expect_equal "$output" "thread:XXX   2001-01-05 [1/6] Notmuch Test Suite; All messages excluded: single match: reply 2 (deleted inbox test unread)\r
99 +thread:XXX   2001-01-05 [2/6] Notmuch Test Suite; All messages excluded: double match: reply 2 (deleted inbox test unread)\r
100 +thread:XXX   2001-01-05 [1/6] Notmuch Test Suite; Some messages excluded: single excluded match: reply 3 (deleted inbox test unread)"\r
101 +\r
102 +test_begin_subtest "Search, exclude=all: tag in query (messages)"\r
103 +output=$(notmuch search --exclude=all --output=messages tag:test and tag:deleted | notmuch_search_sanitize)\r
104 +test_expect_equal "$output" "${matching_message_ids[0]}\r
105 +${matching_message_ids[1]}\r
106 +${matching_message_ids[2]}\r
107 +${matching_message_ids[3]}"\r
108  \r
109  #########################################################\r
110  # Notmuch count tests\r
111 -- \r
112 1.7.9.1\r
113 \r