Re: [PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / 5f / 01c8c57a47d061b966afe599ea60f9920aa251
1 Return-Path: <pieter@praet.org>\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 C0409429E33\r
6         for <notmuch@notmuchmail.org>; Fri, 13 May 2011 01:18:08 -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.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 Akzis7NRvILm for <notmuch@notmuchmail.org>;\r
16         Fri, 13 May 2011 01:18:07 -0700 (PDT)\r
17 Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com\r
18         [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 95A7A431FD0\r
21         for <notmuch@notmuchmail.org>; Fri, 13 May 2011 01:18:05 -0700 (PDT)\r
22 Received: by mail-wy0-f181.google.com with SMTP id 11so1911216wyi.26\r
23         for <notmuch@notmuchmail.org>; Fri, 13 May 2011 01:18:05 -0700 (PDT)\r
24 Received: by 10.216.62.195 with SMTP id y45mr1252528wec.15.1305274685197;\r
25         Fri, 13 May 2011 01:18:05 -0700 (PDT)\r
26 Received: from localhost (54.209-242-81.adsl-dyn.isp.belgacom.be\r
27         [81.242.209.54])\r
28         by mx.google.com with ESMTPS id h39sm1001346wes.29.2011.05.13.01.18.03\r
29         (version=TLSv1/SSLv3 cipher=OTHER);\r
30         Fri, 13 May 2011 01:18:04 -0700 (PDT)\r
31 From: Pieter Praet <pieter@praet.org>\r
32 To: Notmuch Mail <notmuch@notmuchmail.org>\r
33 Subject: [PATCH 4/4] test: add 'Emacs' prereq to 'emacs-large-search-buffer'\r
34         tests\r
35 Date: Fri, 13 May 2011 10:17:16 +0200\r
36 Message-Id: <1305274636-19975-5-git-send-email-pieter@praet.org>\r
37 X-Mailer: git-send-email 1.7.4.1\r
38 In-Reply-To: <1305274636-19975-1-git-send-email-pieter@praet.org>\r
39 References: <1305274636-19975-1-git-send-email-pieter@praet.org>\r
40 Cc: Austin Clements <amdragon@mit.edu>\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Fri, 13 May 2011 08:18:09 -0000\r
54 \r
55 Signed-off-by: Pieter Praet <pieter@praet.org>\r
56 ---\r
57  test/emacs-large-search-buffer |    9 +++++++--\r
58  1 files changed, 7 insertions(+), 2 deletions(-)\r
59 \r
60 diff --git a/test/emacs-large-search-buffer b/test/emacs-large-search-buffer\r
61 index 2751a32..54b1827 100755\r
62 --- a/test/emacs-large-search-buffer\r
63 +++ b/test/emacs-large-search-buffer\r
64 @@ -2,6 +2,11 @@\r
65  test_description="Emacs with large search results buffer"\r
66  . test-lib.sh\r
67  \r
68 +# Emacs is a prereq.\r
69 +if test_expect_success "prereq: Emacs is present" "which emacs"; then\r
70 +    test_set_prereq EMACS\r
71 +fi\r
72 +\r
73  x=xxxxxxxxxx # 10\r
74  x=$x$x$x$x$x$x$x$x$x$x # 100\r
75  x=$x$x$x$x$x$x$x$x$x # 900\r
76 @@ -23,11 +28,11 @@ expected="$(notmuch search '*' | sed -e 's/^thread:[0-9a-f]*  //' -e 's/;//' -e\r
77  End of search results."\r
78  \r
79  output=$(test_emacs '(notmuch-search "*") (notmuch-test-wait) (princ (buffer-string))' | sed -e s',  *, ,g' -e 's/xxx*/[BLOB]/g')\r
80 -test_expect_equal "$output" "$expected"\r
81 +test_expect_equal EMACS "$output" "$expected"\r
82  \r
83  test_begin_subtest "Ensure that emacs doesn't drop error messages"\r
84  output=$(test_emacs '(notmuch-search "--this-option-does-not-exist") (notmuch-test-wait) (princ (buffer-string))')\r
85 -test_expect_equal "$output" "Error: Unexpected output from notmuch search:\r
86 +test_expect_equal EMACS "$output" "Error: Unexpected output from notmuch search:\r
87  Unrecognized option: --this-option-does-not-exist\r
88  End of search results. (process returned 1)"\r
89  \r
90 -- \r
91 1.7.4.1\r
92 \r