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 95794431FBC
\r
6 for <notmuch@notmuchmail.org>; Thu, 23 Feb 2012 15:11:37 -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 CVct4dtTqUhA for <notmuch@notmuchmail.org>;
\r
16 Thu, 23 Feb 2012 15:11:37 -0800 (PST)
\r
17 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com
\r
18 [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id E9A41431FAE
\r
21 for <notmuch@notmuchmail.org>; Thu, 23 Feb 2012 15:11:36 -0800 (PST)
\r
22 Received: by wibhi8 with SMTP id hi8so1241599wib.26
\r
23 for <notmuch@notmuchmail.org>; Thu, 23 Feb 2012 15:11:35 -0800 (PST)
\r
24 Received-SPF: pass (google.com: domain of pieter@praet.org designates
\r
25 10.216.138.234 as permitted sender) client-ip=10.216.138.234;
\r
26 Authentication-Results: mr.google.com;
\r
27 spf=pass (google.com: domain of pieter@praet.org
\r
28 designates 10.216.138.234 as permitted sender)
\r
29 smtp.mail=pieter@praet.org
\r
30 Received: from mr.google.com ([10.216.138.234])
\r
31 by 10.216.138.234 with SMTP id a84mr201699wej.40.1330038695763
\r
32 (num_hops = 1); Thu, 23 Feb 2012 15:11:35 -0800 (PST)
\r
33 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
34 d=google.com; s=gamma;
\r
35 h=mime-version:from:to:cc:subject:date:message-id:x-mailer
\r
36 :in-reply-to:references:x-gm-message-state;
\r
37 bh=wLiRVK3ZEs3S55xcrN62K8Rx1lZ03LDzVa8PldNlMGE=;
\r
38 b=KtRAKe1IFGbCSjLyfJTXlxSKzXNTOlMMEwJWgETUpcllZLbrTS1KrILwHvxszlKRsN
\r
39 qIeCygSGxPYJw+20LjeGVgq0QUJbmPvUxt8MNYNeaeCz6KQ2uM6MZ8hjmdcIMS2uJXVB
\r
40 Qm8Ni7L/bHS9Erl3kcFb9HO/eJXooo/Li88d0=
\r
42 Received: by 10.216.138.234 with SMTP id a84mr161993wej.40.1330038695612;
\r
43 Thu, 23 Feb 2012 15:11:35 -0800 (PST)
\r
44 Received: from localhost ([109.131.181.26])
\r
45 by mx.google.com with ESMTPS id n5sm13262711wiw.7.2012.02.23.15.11.34
\r
46 (version=TLSv1/SSLv3 cipher=OTHER);
\r
47 Thu, 23 Feb 2012 15:11:35 -0800 (PST)
\r
48 From: Pieter Praet <pieter@praet.org>
\r
49 To: David Bremner <david@tethera.net>,
\r
50 Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
\r
51 Subject: [PATCH 1/6] test: emacs: new tests "notmuch-show: {add,
\r
52 remove} multiple tags {to, from} single message"
\r
53 Date: Fri, 24 Feb 2012 00:09:09 +0100
\r
54 Message-Id: <1330038554-10347-1-git-send-email-pieter@praet.org>
\r
55 X-Mailer: git-send-email 1.7.8.1
\r
56 In-Reply-To: <878vjtqhcg.fsf@praet.org>
\r
57 References: <878vjtqhcg.fsf@praet.org>
\r
59 ALoCoQk6fCfgbsCMsYWwgtUEQHrbk/5hI1tqVE1CPEqmpISka6BdsZ0wLybUX+pp/Bqup1/PLvKk
\r
60 Cc: Notmuch Mail <notmuch@notmuchmail.org>
\r
61 X-BeenThere: notmuch@notmuchmail.org
\r
62 X-Mailman-Version: 2.1.13
\r
64 List-Id: "Use and development of the notmuch mail system."
\r
65 <notmuch.notmuchmail.org>
\r
66 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
67 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
68 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
69 List-Post: <mailto:notmuch@notmuchmail.org>
\r
70 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
71 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
72 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
73 X-List-Received-Date: Thu, 23 Feb 2012 23:11:37 -0000
\r
77 - Rename subtests "{Add,Remove} tag from notmuch-show view" to
\r
78 "notmuch-show: {add,remove} single tag {to,from} single message"
\r
79 to be consistent with the following tests.
\r
81 - New subtest "notmuch-show: add multiple tags to single message":
\r
82 `notmuch-show-add-tag' ("+") can add multiple tags to a message.
\r
84 - New subtest "notmuch-show: remove multiple tags from single message":
\r
85 `notmuch-show-remove-tag' ("-") can remove multiple tags from a message.
\r
87 test/emacs | 16 ++++++++++++++--
\r
88 1 files changed, 14 insertions(+), 2 deletions(-)
\r
90 diff --git a/test/emacs b/test/emacs
\r
91 index b74cfa9..ec1dbb0 100755
\r
94 @@ -112,18 +112,30 @@ test_emacs "(notmuch-search \"$os_x_darwin_thread\")
\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 unread)"
\r
98 -test_begin_subtest "Add tag from notmuch-show view"
\r
99 +test_begin_subtest "notmuch-show: add single tag to 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 tag-from-show-view unread)"
\r
105 -test_begin_subtest "Remove tag from notmuch-show view"
\r
106 +test_begin_subtest "notmuch-show: remove single tag from single message"
\r
107 test_emacs "(notmuch-show \"$os_x_darwin_thread\")
\r
108 (execute-kbd-macro \"-tag-from-show-view\")"
\r
109 output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize)
\r
110 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
112 +test_begin_subtest "notmuch-show: add multiple tags to single message"
\r
113 +test_emacs "(notmuch-show \"$os_x_darwin_thread\")
\r
114 + (execute-kbd-macro \"+tag1-from-show-view +tag2-from-show-view\")"
\r
115 +output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize)
\r
116 +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
118 +test_begin_subtest "notmuch-show: remove multiple tags from single message"
\r
119 +test_emacs "(notmuch-show \"$os_x_darwin_thread\")
\r
120 + (execute-kbd-macro \"-tag1-from-show-view -tag2-from-show-view\")"
\r
121 +output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize)
\r
122 +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
124 test_begin_subtest "Message with .. in Message-Id:"
\r
125 add_message [id]=123..456@example '[subject]="Message with .. in Message-Id"'
\r
126 test_emacs '(notmuch-search "id:\"123..456@example\"")
\r