Re: [PATCH v4 03/16] make shared crypto code behave library-like
[notmuch-archives.git] / 56 / f352f8c50eb37b8aa439d7cec70bfd9b509a25
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 ABFC1431FC2\r
6         for <notmuch@notmuchmail.org>; Mon, 12 Mar 2012 04:32:01 -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 V3S0Azo6zs3t for <notmuch@notmuchmail.org>;\r
18         Mon, 12 Mar 2012 04:32:01 -0700 (PDT)\r
19 Received: from mail-we0-f181.google.com (mail-we0-f181.google.com\r
20         [74.125.82.181]) (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 12846431FAF\r
23         for <notmuch@notmuchmail.org>; Mon, 12 Mar 2012 04:32:00 -0700 (PDT)\r
24 Received: by werm13 with SMTP id m13so3639546wer.26\r
25         for <notmuch@notmuchmail.org>; Mon, 12 Mar 2012 04:31:59 -0700 (PDT)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
27         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
28         bh=2I3wOw4hg00YgDAE+2CQ4mJZ2kAkaBH/IoYUfNaRsqc=;\r
29         b=cdeNiTFTZfMhw2wlgtm3NakcLlVn5j7DcHHog4xHN2rgBKlkOXY0J0E4INxEDtfjHc\r
30         QJlCqtre5wPp073bBlC4syOUP0EWJcNhPXIWSQSxU82PnyHT+pHF+uYEQ2pJlz4aA2OA\r
31         r/fGlTEfERwxX/w947sXp00KsWTZMUbWGENGX4jf1WW/n54Ig5pmYZO2DTIF6q/nHcD/\r
32         +D0K3Ww8Ptva1O8lqKJiic1rBonGaAvIhmPuNSFJT8Mbdbw3UehH+P/wA2WLlgCcI5xT\r
33         ixMCxLvip2VeGW+McIZtXsVfkq05KN0ysYh6339KHg/ba83ZQxydyzmtexDpxATP5Jgf\r
34         Wszw==\r
35 Received: by 10.216.135.206 with SMTP id u56mr7114586wei.29.1331551919901;\r
36         Mon, 12 Mar 2012 04:31:59 -0700 (PDT)\r
37 Received: from localhost (94-192-233-223.zone6.bethere.co.uk.\r
38  [94.192.233.223])      by mx.google.com with ESMTPS id\r
39  9sm57004882wid.2.2012.03.12.04.31.58   (version=TLSv1/SSLv3 cipher=OTHER);     Mon,\r
40  12 Mar 2012 04:31:59 -0700 (PDT)\r
41 From: Mark Walters <markwalters1009@gmail.com>\r
42 To: notmuch@notmuchmail.org\r
43 Subject: [PATCH 1/2] test: add tests for message only search\r
44 Date: Mon, 12 Mar 2012 11:31:53 +0000\r
45 Message-Id: <1331551914-28323-2-git-send-email-markwalters1009@gmail.com>\r
46 X-Mailer: git-send-email 1.7.9.1\r
47 In-Reply-To: <1331551914-28323-1-git-send-email-markwalters1009@gmail.com>\r
48 References: <1331551914-28323-1-git-send-email-markwalters1009@gmail.com>\r
49 X-BeenThere: notmuch@notmuchmail.org\r
50 X-Mailman-Version: 2.1.13\r
51 Precedence: list\r
52 List-Id: "Use and development of the notmuch mail system."\r
53         <notmuch.notmuchmail.org>\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
57 List-Post: <mailto:notmuch@notmuchmail.org>\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
61 X-List-Received-Date: Mon, 12 Mar 2012 11:32:01 -0000\r
62 \r
63 This adds two tests for --output=messages searches one of which fails\r
64 in some configurations.\r
65 ---\r
66  test/search |   11 +++++++++++\r
67  1 files changed, 11 insertions(+), 0 deletions(-)\r
68 \r
69 diff --git a/test/search b/test/search\r
70 index 081f60c..276271b 100755\r
71 --- a/test/search\r
72 +++ b/test/search\r
73 @@ -132,13 +132,24 @@ test_expect_equal "$output" "thread:XXX   2000-01-01 [1/1] Notmuch Test Suite; u\r
74  test_begin_subtest "Exclude \"deleted\" messages from search"\r
75  notmuch config set search.exclude_tags = deleted\r
76  generate_message '[subject]="Not deleted"'\r
77 +not_deleted_id=$gen_msg_id\r
78  generate_message '[subject]="Deleted"'\r
79  notmuch new > /dev/null\r
80  notmuch tag +deleted id:$gen_msg_id\r
81 +deleted_id=$gen_msg_id\r
82  output=$(notmuch search subject:deleted | notmuch_search_sanitize)\r
83  test_expect_equal "$output" "thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; Not deleted (inbox unread)\r
84  thread:XXX   2001-01-05 [0/1] Notmuch Test Suite; Deleted (deleted inbox unread)"\r
85  \r
86 +test_begin_subtest "Exclude \"deleted\" messages from message search"\r
87 +output=$(notmuch search --output=messages subject:deleted | notmuch_search_sanitize)\r
88 +test_expect_equal "$output" "id:$not_deleted_id"\r
89 +\r
90 +test_begin_subtest "Exclude \"deleted\" messages from message search (no-exclude)"\r
91 +output=$(notmuch search --no-exclude --output=messages subject:deleted | notmuch_search_sanitize)\r
92 +test_expect_equal "$output" "id:$not_deleted_id\r
93 +id:$deleted_id"\r
94 +\r
95  test_begin_subtest "Exclude \"deleted\" messages from search, overridden"\r
96  output=$(notmuch search subject:deleted and tag:deleted | notmuch_search_sanitize)\r
97  test_expect_equal "$output" "thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; Deleted (deleted inbox unread)"\r
98 -- \r
99 1.7.9.1\r
100 \r