Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 9e / be9384319d59d47700fa3df5e3fb229182386d
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 39235429E2E\r
6         for <notmuch@notmuchmail.org>; Thu,  2 Jun 2011 05:04:25 -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 zesHKN+OpXIQ for <notmuch@notmuchmail.org>;\r
16         Thu,  2 Jun 2011 05:04:24 -0700 (PDT)\r
17 Received: from mail-ww0-f41.google.com (mail-ww0-f41.google.com\r
18  [74.125.82.41])        (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  B92D1429E27    for <notmuch@notmuchmail.org>; Thu,  2 Jun 2011 05:04:21 -0700\r
21  (PDT)\r
22 Received: by wwi18 with SMTP id 18so4282671wwi.2\r
23         for <notmuch@notmuchmail.org>; Thu, 02 Jun 2011 05:04:20 -0700 (PDT)\r
24 Received: by 10.227.159.136 with SMTP id j8mr644753wbx.99.1307016260334;\r
25         Thu, 02 Jun 2011 05:04:20 -0700 (PDT)\r
26 Received: from localhost ([109.131.21.86])\r
27         by mx.google.com with ESMTPS id o19sm354015wbh.4.2011.06.02.05.04.18\r
28         (version=TLSv1/SSLv3 cipher=OTHER);\r
29         Thu, 02 Jun 2011 05:04:19 -0700 (PDT)\r
30 From: Pieter Praet <pieter@praet.org>\r
31 To: Notmuch Mail <notmuch@notmuchmail.org>\r
32 Subject: [PATCH 2/4] test: add 'Emacs' prereq to dependent 'crypto' tests\r
33 Date: Thu,  2 Jun 2011 14:03:38 +0200\r
34 Message-Id: <1307016220-17509-3-git-send-email-pieter@praet.org>\r
35 X-Mailer: git-send-email 1.7.4.1\r
36 In-Reply-To: <1307016220-17509-1-git-send-email-pieter@praet.org>\r
37 References: <1307016220-17509-1-git-send-email-pieter@praet.org>\r
38 Cc: Austin Clements <amdragon@mit.edu>\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.13\r
41 Precedence: list\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: Thu, 02 Jun 2011 12:04:25 -0000\r
52 \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
55 that rely on Emacs.\r
56 \r
57 This causes tests with unmet dependencies to be skipped.\r
58 \r
59 Signed-off-by: Pieter Praet <pieter@praet.org>\r
60 ---\r
61  test/crypto |   17 ++++++++++++++---\r
62  1 files changed, 14 insertions(+), 3 deletions(-)\r
63 \r
64 diff --git a/test/crypto b/test/crypto\r
65 index 59f7989..c69307d 100755\r
66 --- a/test/crypto\r
67 +++ b/test/crypto\r
68 @@ -7,10 +7,21 @@\r
69  test_description='PGP/MIME signature verification and decryption'\r
70  . ./test-lib.sh\r
71  \r
72 +# Emacs is a prereq.\r
73 +test_expect_success "prereq: Emacs is present" "which emacs" \\r
74 +    && test_set_prereq EMACS\r
75 +\r
76  # GnuPG is a prereq.\r
77  test_expect_success "prereq: GnuPG is present" "which gpg" \\r
78      && test_set_prereq GPG\r
79  \r
80 +# Some tests have multiple prereqs, but the test_expect_* functions\r
81 +# accept only a single argument as prereq tag, and using test_have_prereq\r
82 +# in and around tests causes various errors for me, so a dirty workaround\r
83 +# will have to do for the time being.\r
84 +test_have_prereq EMACS && test_have_prereq GPG \\r
85 +    && test_set_prereq EMACS+GPG\r
86 +\r
87  \r
88  add_gnupg_home ()\r
89  {\r
90 @@ -36,7 +47,7 @@ FINGERPRINT=$(gpg --no-tty --list-secret-keys --with-colons --fingerprint | grep\r
91  # although I can't figure out why\r
92  add_email_corpus\r
93  \r
94 -test_expect_success GPG 'emacs delivery of signed message' \\r
95 +test_expect_success EMACS+GPG 'emacs delivery of signed message' \\r
96  'emacs_deliver_message \\r
97      "test signed message 001" \\r
98      "This is a test signed message." \\r
99 @@ -146,7 +157,7 @@ mv "${GNUPGHOME}"{.bak,}\r
100  cat <<EOF >TESTATTACHMENT\r
101  This is a test file.\r
102  EOF\r
103 -test_expect_success GPG 'emacs delivery of encrypted message with attachment' \\r
104 +test_expect_success EMACS+GPG 'emacs delivery of encrypted message with attachment' \\r
105  'emacs_deliver_message \\r
106      "test encrypted message 001" \\r
107      "This is a test encrypted message.\n" \\r
108 @@ -269,7 +280,7 @@ test_expect_equal GPG \\r
109      "$expected"\r
110  mv "${GNUPGHOME}"{.bak,}\r
111  \r
112 -test_expect_success GPG 'emacs delivery of encrypted + signed message' \\r
113 +test_expect_success EMACS+GPG 'emacs delivery of encrypted + signed message' \\r
114  'emacs_deliver_message \\r
115      "test encrypted message 002" \\r
116      "This is another test encrypted message.\n" \\r
117 -- \r
118 1.7.4.1\r
119 \r