database error
[notmuch-archives.git] / 1c / 1e91858cc88bb54160dd7d39a93aa125a43596
1 Return-Path: <dmitry.kurochkin@gmail.com>\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 A8D71431FB6\r
6         for <notmuch@notmuchmail.org>; Fri,  3 Feb 2012 23:38:00 -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.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 Xp-l5Rm26sme for <notmuch@notmuchmail.org>;\r
17         Fri,  3 Feb 2012 23:38:00 -0800 (PST)\r
18 Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com\r
19         [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id D524A431FAE\r
22         for <notmuch@notmuchmail.org>; Fri,  3 Feb 2012 23:37:59 -0800 (PST)\r
23 Received: by mail-bk0-f53.google.com with SMTP id 11so4129597bke.26\r
24         for <notmuch@notmuchmail.org>; Fri, 03 Feb 2012 23:37:59 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=from:to:subject:date:message-id:x-mailer:in-reply-to:references;\r
27         bh=gODIF+BxRLE1vcG3B9uNoSrXGtTBtRDbeGOgZKkJgRk=;\r
28         b=xRcw09LzQ1X/vmrrDGun4tNi8qu1WvMxyXytu6te2yV7ORESBdhZI8u7rwCpAu9ZhC\r
29         rDN8mvOiIYqFptdpwZ6P/Gc9bs03IcdtkE+/OUfW7IPEVkmdE5LkiMkRpv3e34TC4r83\r
30         Esc/0J/dhKo3gr9vrqEtqYDllsN2VY1lBh4yE=\r
31 Received: by 10.204.154.92 with SMTP id n28mr4966318bkw.30.1328341079548;\r
32         Fri, 03 Feb 2012 23:37:59 -0800 (PST)\r
33 Received: from localhost ([91.144.186.21])\r
34         by mx.google.com with ESMTPS id jd17sm23891312bkb.4.2012.02.03.23.37.58\r
35         (version=TLSv1/SSLv3 cipher=OTHER);\r
36         Fri, 03 Feb 2012 23:37:59 -0800 (PST)\r
37 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
38 To: notmuch@notmuchmail.org\r
39 Subject: [PATCH v2 1/2] test: add test for hiding Original Message region at\r
40         beginning of a message\r
41 Date: Sat,  4 Feb 2012 11:36:36 +0400\r
42 Message-Id: <1328340997-29004-2-git-send-email-dmitry.kurochkin@gmail.com>\r
43 X-Mailer: git-send-email 1.7.9\r
44 In-Reply-To: <1328340997-29004-1-git-send-email-dmitry.kurochkin@gmail.com>\r
45 References: <1327926286-16680-1-git-send-email-dmitry.kurochkin@gmail.com>\r
46         <1328340997-29004-1-git-send-email-dmitry.kurochkin@gmail.com>\r
47 X-BeenThere: notmuch@notmuchmail.org\r
48 X-Mailman-Version: 2.1.13\r
49 Precedence: list\r
50 List-Id: "Use and development of the notmuch mail system."\r
51         <notmuch.notmuchmail.org>\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
55 List-Post: <mailto:notmuch@notmuchmail.org>\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
59 X-List-Received-Date: Sat, 04 Feb 2012 07:38:00 -0000\r
60 \r
61 The test is currently broken and will be fixed by a subsequent patch.\r
62 \r
63 The patch adds a new file for tests of Emacs notmuch-show view.\r
64 \r
65 Based on patch by David Edmondson [1].\r
66 \r
67 [1] id:"1327562380-12894-4-git-send-email-dme@dme.org"\r
68 ---\r
69  test/emacs-show   |   28 ++++++++++++++++++++++++++++\r
70  test/notmuch-test |    1 +\r
71  2 files changed, 29 insertions(+), 0 deletions(-)\r
72  create mode 100755 test/emacs-show\r
73 \r
74 diff --git a/test/emacs-show b/test/emacs-show\r
75 new file mode 100755\r
76 index 0000000..9800575\r
77 --- /dev/null\r
78 +++ b/test/emacs-show\r
79 @@ -0,0 +1,28 @@\r
80 +#!/usr/bin/env bash\r
81 +\r
82 +test_description="Testing emacs notmuch-show view"\r
83 +. test-lib.sh\r
84 +\r
85 +test_begin_subtest "Hiding Original Message region at beginning of a message"\r
86 +test_subtest_known_broken\r
87 +message_id='OriginalMessageHiding.1@notmuchmail.org'\r
88 +add_message \\r
89 +    [id]="$message_id" \\r
90 +    '[subject]="Hiding Original Message region at beginning of a message"' \\r
91 +    '[body]="-----Original Message-----\r
92 +Text here."'\r
93 +\r
94 +cat <<EOF >EXPECTED\r
95 +Notmuch Test Suite <test_suite@notmuchmail.org> (2001-01-05) (inbox)\r
96 +Subject: Hiding Original Message region at beginning of a message\r
97 +To: Notmuch Test Suite <test_suite@notmuchmail.org>\r
98 +Date: Fri, 05 Jan 2001 15:43:57 +0000\r
99 +\r
100 +[ 2-line hidden original message. Click/Enter to show. ]\r
101 +EOF\r
102 +\r
103 +test_emacs "(notmuch-show \"id:$message_id\")\r
104 +           (test-visible-output)"\r
105 +test_expect_equal_file OUTPUT EXPECTED\r
106 +\r
107 +test_done\r
108 diff --git a/test/notmuch-test b/test/notmuch-test\r
109 index ced6b47..e14d34e 100755\r
110 --- a/test/notmuch-test\r
111 +++ b/test/notmuch-test\r
112 @@ -54,6 +54,7 @@ TESTS="\r
113    argument-parsing\r
114    emacs-test-functions\r
115    emacs-address-cleaning\r
116 +  emacs-show\r
117  "\r
118  TESTS=${NOTMUCH_TESTS:=$TESTS}\r
119  \r
120 -- \r
121 1.7.9\r
122 \r