[PATCH 5/7] py3k: the basestring and unicode types are removed in python 3
[notmuch-archives.git] / 4c / e2b57466156f3dc77d76e840b1ac0dd2d2c556
1 Return-Path: <schnouki@schnouki.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 69FB3421164\r
6         for <notmuch@notmuchmail.org>; Wed, 16 Nov 2011 06:34:52 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.1\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1]\r
13         autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id 5azIkialImgM for <notmuch@notmuchmail.org>;\r
17         Wed, 16 Nov 2011 06:34:51 -0800 (PST)\r
18 Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222])\r
19         by olra.theworths.org (Postfix) with ESMTP id 26339429E5C\r
20         for <notmuch@notmuchmail.org>; Wed, 16 Nov 2011 06:34:26 -0800 (PST)\r
21 Received: from thor.loria.fr (thor.loria.fr [152.81.12.250])\r
22         by ks3536.kimsufi.com (Postfix) with ESMTPSA id 459086A002E;\r
23         Wed, 16 Nov 2011 15:34:25 +0100 (CET)\r
24 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net;\r
25         s=key-schnouki; t=1321454065;\r
26         bh=vFvZwQthgW+blb1XqSciYBYtBSLaljS5SRSRfSgoCw4=;\r
27         h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References;\r
28         b=P8p0pjuIlCEcCQ9TVlqLHoUyO+bR/nh5/Uo7g0qLbZKByuXSnrkFMyOdj1pDOOzP1\r
29         8pdATgyGUO8NlbBMSkOjScvkcSDe36IojJZDGujDt/MOQxDtgfpXVi110GSmpI3kT6\r
30         FrDqRms7tVp/VP6gVlfVpxOcolHwi3I9pvb9jyIk=\r
31 From: Thomas Jost <schnouki@schnouki.net>\r
32 To: notmuch@notmuchmail.org\r
33 Subject: [PATCH 6/6] test: add 'Emacs' prereq to dependent\r
34         'emacs-large-search-buffer' tests\r
35 Date: Wed, 16 Nov 2011 15:33:55 +0100\r
36 Message-Id: <1321454035-22023-7-git-send-email-schnouki@schnouki.net>\r
37 X-Mailer: git-send-email 1.7.7.3\r
38 In-Reply-To: <1321454035-22023-1-git-send-email-schnouki@schnouki.net>\r
39 References: <1320176954-4897-1-git-send-email-pieter@praet.org>\r
40         <1321454035-22023-1-git-send-email-schnouki@schnouki.net>\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: Wed, 16 Nov 2011 14:34:53 -0000\r
54 \r
55 From: Pieter Praet <pieter@praet.org>\r
56 \r
57 Adds a new test that checks for the presence of 'emacs',\r
58 and adds that test as a prereq to all subsequent tests\r
59 that rely on Emacs.\r
60 \r
61 This causes tests with unmet dependencies to be skipped.\r
62 \r
63 Signed-off-by: Pieter Praet <pieter@praet.org>\r
64 ---\r
65  test/emacs-large-search-buffer |    9 +++++++--\r
66  1 files changed, 7 insertions(+), 2 deletions(-)\r
67 \r
68 diff --git a/test/emacs-large-search-buffer b/test/emacs-large-search-buffer\r
69 index 6095e9d..63eb87c 100755\r
70 --- a/test/emacs-large-search-buffer\r
71 +++ b/test/emacs-large-search-buffer\r
72 @@ -2,6 +2,11 @@\r
73  test_description="Emacs with large search results buffer"\r
74  . test-lib.sh\r
75  \r
76 +# Emacs is a prereq.\r
77 +test_set_bin_prereq dtach "dtach" DTACH\r
78 +test_have_prereq DTACH && test_set_bin_prereq emacs "Emacs" EMACS\r
79 +\r
80 +\r
81  x=xxxxxxxxxx # 10\r
82  x=$x$x$x$x$x$x$x$x$x$x # 100\r
83  x=$x$x$x$x$x$x$x$x$x # 900\r
84 @@ -27,7 +32,7 @@ test_emacs '(notmuch-search "*")\r
85             (notmuch-test-wait)\r
86             (test-output)'\r
87  sed -i -e s',  *, ,g' -e 's/xxx*/[BLOB]/g' OUTPUT\r
88 -test_expect_equal_file OUTPUT EXPEXTED\r
89 +test_expect_equal_file EMACS OUTPUT EXPEXTED\r
90  \r
91  test_begin_subtest "Ensure that emacs doesn't drop error messages"\r
92  test_emacs '(notmuch-search "--this-option-does-not-exist")\r
93 @@ -38,6 +43,6 @@ Error: Unexpected output from notmuch search:\r
94  Unrecognized option: --this-option-does-not-exist\r
95  End of search results. (process returned 1)\r
96  EOF\r
97 -test_expect_equal_file OUTPUT EXPEXTED\r
98 +test_expect_equal_file EMACS OUTPUT EXPEXTED\r
99  \r
100  test_done\r
101 -- \r
102 1.7.7.3\r
103 \r