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 0DF69415E51
\r
6 for <notmuch@notmuchmail.org>; Fri, 24 Feb 2012 14:33:30 -0800 (PST)
\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 9anqWY6GFT18 for <notmuch@notmuchmail.org>;
\r
16 Fri, 24 Feb 2012 14:33:29 -0800 (PST)
\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 30CC641601B for <notmuch@notmuchmail.org>; Fri, 24 Feb 2012 14:33:26 -0800
\r
22 Received: by wgbdt12 with SMTP id dt12so2226566wgb.2
\r
23 for <notmuch@notmuchmail.org>; Fri, 24 Feb 2012 14:33:25 -0800 (PST)
\r
24 Received-SPF: pass (google.com: domain of pieter@praet.org designates
\r
25 10.180.97.196 as permitted sender) client-ip=10.180.97.196;
\r
26 Authentication-Results: mr.google.com;
\r
27 spf=pass (google.com: domain of pieter@praet.org
\r
28 designates 10.180.97.196 as permitted sender)
\r
29 smtp.mail=pieter@praet.org
\r
30 Received: from mr.google.com ([10.180.97.196])
\r
31 by 10.180.97.196 with SMTP id ec4mr8913069wib.11.1330122805099
\r
32 (num_hops = 1); Fri, 24 Feb 2012 14:33:25 -0800 (PST)
\r
34 Received: by 10.180.97.196 with SMTP id ec4mr7177056wib.11.1330122804994;
\r
35 Fri, 24 Feb 2012 14:33:24 -0800 (PST)
\r
36 Received: from localhost ([109.131.181.26])
\r
37 by mx.google.com with ESMTPS id dr5sm14780088wib.0.2012.02.24.14.33.24
\r
38 (version=TLSv1/SSLv3 cipher=OTHER);
\r
39 Fri, 24 Feb 2012 14:33:24 -0800 (PST)
\r
40 From: Pieter Praet <pieter@praet.org>
\r
41 To: David Bremner <david@tethera.net>,
\r
42 Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
\r
43 Subject: [PATCH v2 1/6] test: emacs: new tests "notmuch-show: {add,
\r
44 remove} multiple tags {to, from} single message"
\r
45 Date: Fri, 24 Feb 2012 23:30:35 +0100
\r
46 Message-Id: <1330122640-18895-2-git-send-email-pieter@praet.org>
\r
47 X-Mailer: git-send-email 1.7.8.1
\r
48 In-Reply-To: <1330122640-18895-1-git-send-email-pieter@praet.org>
\r
49 References: <87wr7xqpuf.fsf@rocinante.cs.unb.ca>
\r
50 <1330122640-18895-1-git-send-email-pieter@praet.org>
\r
52 ALoCoQkM7v5PvZo2A8IvkWYWnXHZev0iGVA2VONtMizkRcduvJob8CGhkc8UkUn5+RUIjq7cBjNM
\r
53 Cc: Notmuch Mail <notmuch@notmuchmail.org>
\r
54 X-BeenThere: notmuch@notmuchmail.org
\r
55 X-Mailman-Version: 2.1.13
\r
57 List-Id: "Use and development of the notmuch mail system."
\r
58 <notmuch.notmuchmail.org>
\r
59 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
61 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
62 List-Post: <mailto:notmuch@notmuchmail.org>
\r
63 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
64 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
65 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
66 X-List-Received-Date: Fri, 24 Feb 2012 22:33:30 -0000
\r
70 - Rename subtests "{Add,Remove} tag from notmuch-show view" to
\r
71 "notmuch-show: {add,remove} single tag {to,from} single message"
\r
72 to be consistent with the following tests.
\r
74 - New subtest "notmuch-show: add multiple tags to single message":
\r
75 `notmuch-show-add-tag' ("+") can add multiple tags to a message.
\r
77 - New subtest "notmuch-show: remove multiple tags from single message":
\r
78 `notmuch-show-remove-tag' ("-") can remove multiple tags from a message.
\r
80 test/emacs | 16 ++++++++++++++--
\r
81 1 files changed, 14 insertions(+), 2 deletions(-)
\r
83 diff --git a/test/emacs b/test/emacs
\r
84 index b74cfa9..ec1dbb0 100755
\r
87 @@ -112,18 +112,30 @@ test_emacs "(notmuch-search \"$os_x_darwin_thread\")
\r
88 output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize)
\r
89 test_expect_equal "$output" "thread:XXX 2009-11-18 [4/4] Jjgod Jiang, Alexander Botero-Lowry; [notmuch] Mac OS X/Darwin compatibility issues (inbox unread)"
\r
91 -test_begin_subtest "Add tag from notmuch-show view"
\r
92 +test_begin_subtest "notmuch-show: add single tag to single message"
\r
93 test_emacs "(notmuch-show \"$os_x_darwin_thread\")
\r
94 (execute-kbd-macro \"+tag-from-show-view\")"
\r
95 output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize)
\r
96 test_expect_equal "$output" "thread:XXX 2009-11-18 [4/4] Jjgod Jiang, Alexander Botero-Lowry; [notmuch] Mac OS X/Darwin compatibility issues (inbox tag-from-show-view unread)"
\r
98 -test_begin_subtest "Remove tag from notmuch-show view"
\r
99 +test_begin_subtest "notmuch-show: remove single tag from single message"
\r
100 test_emacs "(notmuch-show \"$os_x_darwin_thread\")
\r
101 (execute-kbd-macro \"-tag-from-show-view\")"
\r
102 output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize)
\r
103 test_expect_equal "$output" "thread:XXX 2009-11-18 [4/4] Jjgod Jiang, Alexander Botero-Lowry; [notmuch] Mac OS X/Darwin compatibility issues (inbox unread)"
\r
105 +test_begin_subtest "notmuch-show: add multiple tags to single message"
\r
106 +test_emacs "(notmuch-show \"$os_x_darwin_thread\")
\r
107 + (execute-kbd-macro \"+tag1-from-show-view +tag2-from-show-view\")"
\r
108 +output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize)
\r
109 +test_expect_equal "$output" "thread:XXX 2009-11-18 [4/4] Jjgod Jiang, Alexander Botero-Lowry; [notmuch] Mac OS X/Darwin compatibility issues (inbox tag1-from-show-view tag2-from-show-view unread)"
\r
111 +test_begin_subtest "notmuch-show: remove multiple tags from single message"
\r
112 +test_emacs "(notmuch-show \"$os_x_darwin_thread\")
\r
113 + (execute-kbd-macro \"-tag1-from-show-view -tag2-from-show-view\")"
\r
114 +output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize)
\r
115 +test_expect_equal "$output" "thread:XXX 2009-11-18 [4/4] Jjgod Jiang, Alexander Botero-Lowry; [notmuch] Mac OS X/Darwin compatibility issues (inbox unread)"
\r
117 test_begin_subtest "Message with .. in Message-Id:"
\r
118 add_message [id]=123..456@example '[subject]="Message with .. in Message-Id"'
\r
119 test_emacs '(notmuch-search "id:\"123..456@example\"")
\r