Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 70 / 2c390d6b24d89c6244326a1bc5b963cd451da7
1 Return-Path: <bremner@tethera.net>\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 E67E6431FDA\r
6         for <notmuch@notmuchmail.org>; Tue, 11 Mar 2014 16:02:25 -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\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id qFP34oXATC5U for <notmuch@notmuchmail.org>;\r
16         Tue, 11 Mar 2014 16:02:23 -0700 (PDT)\r
17 Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])\r
18         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 52401431FBF\r
21         for <notmuch@notmuchmail.org>; Tue, 11 Mar 2014 16:02:04 -0700 (PDT)\r
22 Received: from remotemail by yantan.tethera.net with local (Exim 4.80)\r
23         (envelope-from <bremner@tethera.net>)\r
24         id 1WNVgR-0001uh-O2; Tue, 11 Mar 2014 20:02:03 -0300\r
25 Received: (nullmailer pid 25855 invoked by uid 1000); Tue, 11 Mar 2014\r
26         23:01:46 -0000\r
27 From: David Bremner <david@tethera.net>\r
28 To: notmuch@notmuchmail.org\r
29 Subject: [Patch v6 08/14] test: add tests for the new boolean folder: and\r
30         path: prefixes\r
31 Date: Tue, 11 Mar 2014 20:01:34 -0300\r
32 Message-Id: <1394578900-25618-9-git-send-email-david@tethera.net>\r
33 X-Mailer: git-send-email 1.8.5.3\r
34 In-Reply-To: <1394578900-25618-1-git-send-email-david@tethera.net>\r
35 References: <1394578900-25618-1-git-send-email-david@tethera.net>\r
36 X-BeenThere: notmuch@notmuchmail.org\r
37 X-Mailman-Version: 2.1.13\r
38 Precedence: list\r
39 List-Id: "Use and development of the notmuch mail system."\r
40         <notmuch.notmuchmail.org>\r
41 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
42         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
43 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
44 List-Post: <mailto:notmuch@notmuchmail.org>\r
45 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
46 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
48 X-List-Received-Date: Tue, 11 Mar 2014 23:02:26 -0000\r
49 \r
50 From: Jani Nikula <jani@nikula.org>\r
51 \r
52 Additional tests for the boolean folder: and path: prefixes using the\r
53 full corpus.\r
54 ---\r
55  test/T100-search-by-folder.sh | 93 ++++++++++++++++++++++++++++++++++++++++++-\r
56  1 file changed, 92 insertions(+), 1 deletion(-)\r
57 \r
58 diff --git a/test/T100-search-by-folder.sh b/test/T100-search-by-folder.sh\r
59 index a7f63dd..583bdf5 100755\r
60 --- a/test/T100-search-by-folder.sh\r
61 +++ b/test/T100-search-by-folder.sh\r
62 @@ -1,5 +1,5 @@\r
63  #!/usr/bin/env bash\r
64 -test_description='"notmuch search" by folder: (with variations)'\r
65 +test_description='"notmuch search" by folder: and path: (with variations)'\r
66  . ./test-lib.sh\r
67  \r
68  add_message '[dir]=bad' '[subject]="To the bone"'\r
69 @@ -55,4 +55,95 @@ test_begin_subtest "After rename, new path returns result"\r
70  output=$(notmuch search folder:duplicate/bad/olds | notmuch_search_sanitize)\r
71  test_expect_equal "$output" "thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; Bears (inbox unread)"\r
72  \r
73 +# folder: and path: searches with full corpus\r
74 +rm -rf $MAIL_DIR\r
75 +add_email_corpus\r
76 +\r
77 +# add some more dupes\r
78 +cp $MAIL_DIR/foo/new/03:2, $MAIL_DIR/new\r
79 +cp $MAIL_DIR/bar/baz/05:2, $MAIL_DIR/foo\r
80 +notmuch new >/dev/null\r
81 +\r
82 +test_begin_subtest "folder: search"\r
83 +output=$(notmuch search --output=files folder:foo | notmuch_search_files_sanitize | sort)\r
84 +# bar/baz/05:2, is a duplicate of foo/05:2,\r
85 +# new/03:2, is a duplicate of foo/new/03:2,\r
86 +test_expect_equal "$output" "MAIL_DIR/bar/baz/05:2,\r
87 +MAIL_DIR/foo/05:2,\r
88 +MAIL_DIR/foo/06:2,\r
89 +MAIL_DIR/foo/cur/07:2,\r
90 +MAIL_DIR/foo/cur/08:2,\r
91 +MAIL_DIR/foo/new/03:2,\r
92 +MAIL_DIR/foo/new/09:2,\r
93 +MAIL_DIR/foo/new/10:2,\r
94 +MAIL_DIR/new/03:2,"\r
95 +\r
96 +test_begin_subtest "top level folder: search"\r
97 +output=$(notmuch search --output=files folder:'""' | notmuch_search_files_sanitize | sort)\r
98 +# bar/18:2, is a duplicate of cur/51:2,\r
99 +# foo/new/03:2, is a duplicate of new/03:2,\r
100 +test_expect_equal "$output" "MAIL_DIR/01:2,\r
101 +MAIL_DIR/02:2,\r
102 +MAIL_DIR/bar/18:2,\r
103 +MAIL_DIR/cur/29:2,\r
104 +MAIL_DIR/cur/30:2,\r
105 +MAIL_DIR/cur/31:2,\r
106 +MAIL_DIR/cur/32:2,\r
107 +MAIL_DIR/cur/33:2,\r
108 +MAIL_DIR/cur/34:2,\r
109 +MAIL_DIR/cur/35:2,\r
110 +MAIL_DIR/cur/36:2,\r
111 +MAIL_DIR/cur/37:2,\r
112 +MAIL_DIR/cur/38:2,\r
113 +MAIL_DIR/cur/39:2,\r
114 +MAIL_DIR/cur/40:2,\r
115 +MAIL_DIR/cur/41:2,\r
116 +MAIL_DIR/cur/42:2,\r
117 +MAIL_DIR/cur/43:2,\r
118 +MAIL_DIR/cur/44:2,\r
119 +MAIL_DIR/cur/45:2,\r
120 +MAIL_DIR/cur/46:2,\r
121 +MAIL_DIR/cur/47:2,\r
122 +MAIL_DIR/cur/48:2,\r
123 +MAIL_DIR/cur/49:2,\r
124 +MAIL_DIR/cur/50:2,\r
125 +MAIL_DIR/cur/51:2,\r
126 +MAIL_DIR/cur/52:2,\r
127 +MAIL_DIR/cur/53:2,\r
128 +MAIL_DIR/foo/new/03:2,\r
129 +MAIL_DIR/new/03:2,\r
130 +MAIL_DIR/new/04:2,"\r
131 +\r
132 +test_begin_subtest "path: search"\r
133 +output=$(notmuch search --output=files path:"bar" | notmuch_search_files_sanitize | sort)\r
134 +# cur/51:2, is a duplicate of bar/18:2,\r
135 +test_expect_equal "$output" "MAIL_DIR/bar/17:2,\r
136 +MAIL_DIR/bar/18:2,\r
137 +MAIL_DIR/cur/51:2,"\r
138 +\r
139 +test_begin_subtest "top level path: search"\r
140 +output=$(notmuch search --output=files path:'""' | notmuch_search_files_sanitize | sort)\r
141 +test_expect_equal "$output" "MAIL_DIR/01:2,\r
142 +MAIL_DIR/02:2,"\r
143 +\r
144 +test_begin_subtest "recursive path: search"\r
145 +output=$(notmuch search --output=files path:"bar/**" | notmuch_search_files_sanitize | sort)\r
146 +# cur/51:2, is a duplicate of bar/18:2,\r
147 +# foo/05:2, is a duplicate of bar/baz/05:2,\r
148 +test_expect_equal "$output" "MAIL_DIR/bar/17:2,\r
149 +MAIL_DIR/bar/18:2,\r
150 +MAIL_DIR/bar/baz/05:2,\r
151 +MAIL_DIR/bar/baz/23:2,\r
152 +MAIL_DIR/bar/baz/24:2,\r
153 +MAIL_DIR/bar/baz/cur/25:2,\r
154 +MAIL_DIR/bar/baz/cur/26:2,\r
155 +MAIL_DIR/bar/baz/new/27:2,\r
156 +MAIL_DIR/bar/baz/new/28:2,\r
157 +MAIL_DIR/bar/cur/19:2,\r
158 +MAIL_DIR/bar/cur/20:2,\r
159 +MAIL_DIR/bar/new/21:2,\r
160 +MAIL_DIR/bar/new/22:2,\r
161 +MAIL_DIR/cur/51:2,\r
162 +MAIL_DIR/foo/05:2,"\r
163 +\r
164  test_done\r
165 -- \r
166 1.8.5.3\r
167 \r