[PATCH 8/8] cli: optionally restore message properties from dump file
[notmuch-archives.git] / a5 / 0cab5134f5b9d037ea08414cbe35228ce105f5
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 5BF1E431FB6\r
6         for <notmuch@notmuchmail.org>; Mon,  3 Oct 2011 09:48:49 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
9 X-Spam-Flag: NO\r
10 X-Spam-Score: -0.1\r
11 X-Spam-Level: \r
12 X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5\r
13         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1]\r
14         autolearn=disabled\r
15 Received: from olra.theworths.org ([127.0.0.1])\r
16         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
17         with ESMTP id yNeUCMgiJYiZ for <notmuch@notmuchmail.org>;\r
18         Mon,  3 Oct 2011 09:48:48 -0700 (PDT)\r
19 Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222])\r
20         by olra.theworths.org (Postfix) with ESMTP id A028E429E28\r
21         for <notmuch@notmuchmail.org>; Mon,  3 Oct 2011 09:48:45 -0700 (PDT)\r
22 Received: from localhost.localdomain (thor.loria.fr [152.81.12.250])\r
23         by ks3536.kimsufi.com (Postfix) with ESMTPSA id 0FBB26A06B3;\r
24         Mon,  3 Oct 2011 18:48:44 +0200 (CEST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net;\r
26         s=key-schnouki; t=1317660524;\r
27         bh=62pdi0VrRmv1oCeYH7WXjrJ8X9v35BcKrXO9XEh8dt4=;\r
28         h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:\r
29         In-Reply-To:References;\r
30         b=jSsy0yRZ9yM4zWuQRr+2TbPnSfk8p5by9ROvhlGLsfwaAOFgMugdJZGGJtSavlrNb\r
31         Oup1ja2BxMW0DD/HP4zI93bdk0Ay1pTN44bEXRo38L5vbqxNeygcMcXwMpYR8mk0eS\r
32         aZLbeaKPHotbVGVnXFuXv7F8USGI1xc9rCytKI8o=\r
33 From: Thomas Jost <schnouki@schnouki.net>\r
34 To: notmuch@notmuchmail.org\r
35 Subject: [PATCH 05/13] test: add 'Emacs' prereq to dependent\r
36         'emacs-large-search-buffer' tests\r
37 Date: Mon,  3 Oct 2011 18:47:19 +0200\r
38 Message-Id: <1317660447-27520-6-git-send-email-schnouki@schnouki.net>\r
39 X-Mailer: git-send-email 1.7.6.4\r
40 In-Reply-To: <1317660447-27520-1-git-send-email-schnouki@schnouki.net>\r
41 References: <1317660447-27520-1-git-send-email-schnouki@schnouki.net>\r
42 In-Reply-To: <871uuuywtt.fsf@convex-new.cs.unb.ca>\r
43 References: <871uuuywtt.fsf@convex-new.cs.unb.ca>\r
44 X-BeenThere: notmuch@notmuchmail.org\r
45 X-Mailman-Version: 2.1.13\r
46 Precedence: list\r
47 List-Id: "Use and development of the notmuch mail system."\r
48         <notmuch.notmuchmail.org>\r
49 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
51 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
52 List-Post: <mailto:notmuch@notmuchmail.org>\r
53 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
54 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
56 X-List-Received-Date: Mon, 03 Oct 2011 16:48:49 -0000\r
57 \r
58 From: Pieter Praet <pieter@praet.org>\r
59 \r
60 Adds a new test that checks for the presence of 'emacs',\r
61 and adds that test as a prereq to all subsequent tests\r
62 that rely on Emacs.\r
63 \r
64 This causes tests with unmet dependencies to be skipped.\r
65 \r
66 Signed-off-by: Pieter Praet <pieter@praet.org>\r
67 ---\r
68  test/emacs-large-search-buffer |    9 +++++++--\r
69  1 files changed, 7 insertions(+), 2 deletions(-)\r
70 \r
71 diff --git a/test/emacs-large-search-buffer b/test/emacs-large-search-buffer\r
72 index 6095e9d..018333a 100755\r
73 --- a/test/emacs-large-search-buffer\r
74 +++ b/test/emacs-large-search-buffer\r
75 @@ -2,6 +2,11 @@\r
76  test_description="Emacs with large search results buffer"\r
77  . test-lib.sh\r
78  \r
79 +# Emacs is a prereq.\r
80 +test_set_bin_prereq screen "GNU Screen" SCREEN\r
81 +test_have_prereq SCREEN && test_set_bin_prereq emacs "Emacs" EMACS\r
82 +\r
83 +\r
84  x=xxxxxxxxxx # 10\r
85  x=$x$x$x$x$x$x$x$x$x$x # 100\r
86  x=$x$x$x$x$x$x$x$x$x # 900\r
87 @@ -27,7 +32,7 @@ test_emacs '(notmuch-search "*")\r
88             (notmuch-test-wait)\r
89             (test-output)'\r
90  sed -i -e s',  *, ,g' -e 's/xxx*/[BLOB]/g' OUTPUT\r
91 -test_expect_equal_file OUTPUT EXPEXTED\r
92 +test_expect_equal_file EMACS OUTPUT EXPEXTED\r
93  \r
94  test_begin_subtest "Ensure that emacs doesn't drop error messages"\r
95  test_emacs '(notmuch-search "--this-option-does-not-exist")\r
96 @@ -38,6 +43,6 @@ Error: Unexpected output from notmuch search:\r
97  Unrecognized option: --this-option-does-not-exist\r
98  End of search results. (process returned 1)\r
99  EOF\r
100 -test_expect_equal_file OUTPUT EXPEXTED\r
101 +test_expect_equal_file EMACS OUTPUT EXPEXTED\r
102  \r
103  test_done\r
104 -- \r
105 1.7.6.4\r
106 \r