[PATCH 1/9] lib: read "property" terms from messages.
[notmuch-archives.git] / 95 / 38f660b571f8e0997e3dc7c5d69ca57149e5f6
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 6B7A2429E2D\r
6         for <notmuch@notmuchmail.org>; Thu,  2 Jun 2011 05:04:39 -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 k8mo4JqbxzYf for <notmuch@notmuchmail.org>;\r
16         Thu,  2 Jun 2011 05:04:38 -0700 (PDT)\r
17 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com\r
18  [74.125.82.45])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
19  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
20  B2468429E3C    for <notmuch@notmuchmail.org>; Thu,  2 Jun 2011 05:04:29 -0700\r
21  (PDT)\r
22 Received: by mail-ww0-f45.google.com with SMTP id 36so679052wwi.2\r
23         for <notmuch@notmuchmail.org>; Thu, 02 Jun 2011 05:04:29 -0700 (PDT)\r
24 Received: by 10.217.5.143 with SMTP id w15mr346136wes.74.1307016269394;\r
25         Thu, 02 Jun 2011 05:04:29 -0700 (PDT)\r
26 Received: from localhost ([109.131.21.86])\r
27         by mx.google.com with ESMTPS id o38sm354118wba.3.2011.06.02.05.04.27\r
28         (version=TLSv1/SSLv3 cipher=OTHER);\r
29         Thu, 02 Jun 2011 05:04:28 -0700 (PDT)\r
30 From: Pieter Praet <pieter@praet.org>\r
31 To: Notmuch Mail <notmuch@notmuchmail.org>\r
32 Subject: [PATCH 4/4] test: add 'Emacs' prereq to dependent\r
33         'emacs-large-search-buffer' tests\r
34 Date: Thu,  2 Jun 2011 14:03:40 +0200\r
35 Message-Id: <1307016220-17509-5-git-send-email-pieter@praet.org>\r
36 X-Mailer: git-send-email 1.7.4.1\r
37 In-Reply-To: <1307016220-17509-1-git-send-email-pieter@praet.org>\r
38 References: <1307016220-17509-1-git-send-email-pieter@praet.org>\r
39 Cc: Austin Clements <amdragon@mit.edu>\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.13\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44         <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Thu, 02 Jun 2011 12:04:39 -0000\r
53 \r
54 Adds a new test that checks for the presence of 'emacs',\r
55 and adds that test as a prereq to all subsequent tests\r
56 that rely on Emacs.\r
57 \r
58 This causes tests with unmet dependencies to be skipped.\r
59 \r
60 Signed-off-by: Pieter Praet <pieter@praet.org>\r
61 ---\r
62  test/emacs-large-search-buffer |    9 +++++++--\r
63  1 files changed, 7 insertions(+), 2 deletions(-)\r
64 \r
65 diff --git a/test/emacs-large-search-buffer b/test/emacs-large-search-buffer\r
66 index c78ce33..063f121 100755\r
67 --- a/test/emacs-large-search-buffer\r
68 +++ b/test/emacs-large-search-buffer\r
69 @@ -2,6 +2,11 @@\r
70  test_description="Emacs with large search results buffer"\r
71  . test-lib.sh\r
72  \r
73 +# Emacs is a prereq.\r
74 +test_expect_success "prereq: Emacs is present" "which emacs" \\r
75 +    && test_set_prereq EMACS\r
76 +\r
77 +\r
78  x=xxxxxxxxxx # 10\r
79  x=$x$x$x$x$x$x$x$x$x$x # 100\r
80  x=$x$x$x$x$x$x$x$x$x # 900\r
81 @@ -23,11 +28,11 @@ expected="$(notmuch search '*' | sed -e 's/^thread:[0-9a-f]*  //' -e 's/;//' -e\r
82  End of search results."\r
83  \r
84  output=$(test_emacs '(notmuch-search "*") (notmuch-test-wait) (princ (buffer-string))' | sed -e s',  *, ,g' -e 's/xxx*/[BLOB]/g')\r
85 -test_expect_equal "$output" "$expected"\r
86 +test_expect_equal EMACS "$output" "$expected"\r
87  \r
88  test_begin_subtest "Ensure that emacs doesn't drop error messages"\r
89  output=$(test_emacs '(notmuch-search "--this-option-does-not-exist") (notmuch-test-wait) (princ (buffer-string))')\r
90 -test_expect_equal "$output" "Error: Unexpected output from notmuch search:\r
91 +test_expect_equal EMACS "$output" "Error: Unexpected output from notmuch search:\r
92  Unrecognized option: --this-option-does-not-exist\r
93  End of search results. (process returned 1)"\r
94  \r
95 -- \r
96 1.7.4.1\r
97 \r