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 33909429E3C
\r
6 for <notmuch@notmuchmail.org>; Tue, 1 Nov 2011 12:50:48 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 t-OE9UmVmltz for <notmuch@notmuchmail.org>;
\r
16 Tue, 1 Nov 2011 12:50:47 -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 A9C46429E3F for <notmuch@notmuchmail.org>; Tue, 1 Nov 2011 12:50:29 -0700
\r
22 Received: by wwe6 with SMTP id 6so2305952wwe.2
\r
23 for <notmuch@notmuchmail.org>; Tue, 01 Nov 2011 12:50:28 -0700 (PDT)
\r
24 Received: by 10.227.204.204 with SMTP id fn12mr1190351wbb.21.1320177028246;
\r
25 Tue, 01 Nov 2011 12:50:28 -0700 (PDT)
\r
26 Received: from localhost ([109.131.187.47])
\r
27 by mx.google.com with ESMTPS id en13sm13686wbb.22.2011.11.01.12.50.27
\r
28 (version=TLSv1/SSLv3 cipher=OTHER);
\r
29 Tue, 01 Nov 2011 12:50:27 -0700 (PDT)
\r
30 From: Pieter Praet <pieter@praet.org>
\r
31 To: 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: Tue, 1 Nov 2011 20:49:14 +0100
\r
35 Message-Id: <1320176954-4897-5-git-send-email-pieter@praet.org>
\r
36 X-Mailer: git-send-email 1.7.7.1
\r
37 In-Reply-To: <1320176954-4897-1-git-send-email-pieter@praet.org>
\r
38 References: <1320176954-4897-1-git-send-email-pieter@praet.org>
\r
39 X-BeenThere: notmuch@notmuchmail.org
\r
40 X-Mailman-Version: 2.1.13
\r
42 List-Id: "Use and development of the notmuch mail system."
\r
43 <notmuch.notmuchmail.org>
\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
45 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
47 List-Post: <mailto:notmuch@notmuchmail.org>
\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
50 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
51 X-List-Received-Date: Tue, 01 Nov 2011 19:50:48 -0000
\r
53 Adds a new test that checks for the presence of 'emacs',
\r
54 and adds that test as a prereq to all subsequent tests
\r
57 This causes tests with unmet dependencies to be skipped.
\r
60 test/emacs-large-search-buffer | 9 +++++++--
\r
61 1 files changed, 7 insertions(+), 2 deletions(-)
\r
63 diff --git a/test/emacs-large-search-buffer b/test/emacs-large-search-buffer
\r
64 index 6095e9d..5757380 100755
\r
65 --- a/test/emacs-large-search-buffer
\r
66 +++ b/test/emacs-large-search-buffer
\r
68 test_description="Emacs with large search results buffer"
\r
71 +# Emacs is a prereq.
\r
72 +test_expect_success "prereq: Emacs is present" "which emacs" \
\r
73 + && test_set_prereq EMACS
\r
77 x=$x$x$x$x$x$x$x$x$x$x # 100
\r
78 x=$x$x$x$x$x$x$x$x$x # 900
\r
79 @@ -27,7 +32,7 @@ test_emacs '(notmuch-search "*")
\r
82 sed -i -e s', *, ,g' -e 's/xxx*/[BLOB]/g' OUTPUT
\r
83 -test_expect_equal_file OUTPUT EXPEXTED
\r
84 +test_expect_equal_file EMACS OUTPUT EXPEXTED
\r
86 test_begin_subtest "Ensure that emacs doesn't drop error messages"
\r
87 test_emacs '(notmuch-search "--this-option-does-not-exist")
\r
88 @@ -38,6 +43,6 @@ Error: Unexpected output from notmuch search:
\r
89 Unrecognized option: --this-option-does-not-exist
\r
90 End of search results. (process returned 1)
\r
92 -test_expect_equal_file OUTPUT EXPEXTED
\r
93 +test_expect_equal_file EMACS OUTPUT EXPEXTED
\r