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 8E23D429E41
\r
6 for <notmuch@notmuchmail.org>; Sun, 10 Jul 2011 08:56:34 -0700 (PDT)
\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 l55v4YtXobo7 for <notmuch@notmuchmail.org>;
\r
16 Sun, 10 Jul 2011 08:56:33 -0700 (PDT)
\r
17 Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com
\r
18 [74.125.82.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 224F1429E4A
\r
21 for <notmuch@notmuchmail.org>; Sun, 10 Jul 2011 08:56:33 -0700 (PDT)
\r
22 Received: by wyh22 with SMTP id 22so2426125wyh.26
\r
23 for <notmuch@notmuchmail.org>; Sun, 10 Jul 2011 08:56:31 -0700 (PDT)
\r
24 Received: by 10.227.195.209 with SMTP id ed17mr3549424wbb.13.1310313391907;
\r
25 Sun, 10 Jul 2011 08:56:31 -0700 (PDT)
\r
26 Received: from localhost ([109.131.150.231])
\r
27 by mx.google.com with ESMTPS id p14sm5055675wbh.30.2011.07.10.08.56.30
\r
28 (version=TLSv1/SSLv3 cipher=OTHER);
\r
29 Sun, 10 Jul 2011 08:56:31 -0700 (PDT)
\r
30 From: Pieter Praet <pieter@praet.org>
\r
31 To: Notmuch Mail <notmuch@notmuchmail.org>
\r
32 Subject: [PATCH 4/6] test: emacs: add test for `notmuch-search-operate-all'
\r
33 Date: Sun, 10 Jul 2011 17:55:33 +0200
\r
34 Message-Id: <1310313335-4159-5-git-send-email-pieter@praet.org>
\r
35 X-Mailer: git-send-email 1.7.5.4
\r
36 In-Reply-To: <1310313335-4159-1-git-send-email-pieter@praet.org>
\r
37 References: <1310313335-4159-1-git-send-email-pieter@praet.org>
\r
38 X-BeenThere: notmuch@notmuchmail.org
\r
39 X-Mailman-Version: 2.1.13
\r
41 List-Id: "Use and development of the notmuch mail system."
\r
42 <notmuch.notmuchmail.org>
\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
44 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
46 List-Post: <mailto:notmuch@notmuchmail.org>
\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
50 X-List-Received-Date: Sun, 10 Jul 2011 15:56:34 -0000
\r
52 `notmuch-search-operate-all' (bound to "*") adds and removes tags
\r
53 to/from all messages which match the query used to populate the
\r
54 current search buffer.
\r
56 Signed-off-by: Pieter Praet <pieter@praet.org>
\r
58 test/emacs-search-operate-all | 29 +++++++++++++++++++++++++++++
\r
59 test/notmuch-test | 1 +
\r
60 2 files changed, 30 insertions(+), 0 deletions(-)
\r
61 create mode 100755 test/emacs-search-operate-all
\r
63 diff --git a/test/emacs-search-operate-all b/test/emacs-search-operate-all
\r
64 new file mode 100755
\r
65 index 0000000..2bd50ba
\r
67 +++ b/test/emacs-search-operate-all
\r
69 +#!/usr/bin/env bash
\r
71 +test_description="emacs interface"
\r
74 +EXPECTED=$TEST_DIRECTORY/emacs.expected-output
\r
78 +test_begin_subtest "Add/remove tags to/from all matching messages."
\r
79 +test_emacs '(notmuch-search "tag:inbox AND tags")
\r
80 + (notmuch-test-wait)
\r
81 + (notmuch-search-operate-all "+matching -inbox")
\r
82 + (notmuch-search "tag:matching AND NOT tag:inbox")
\r
83 + (notmuch-test-wait)
\r
85 +cat <<EOF >EXPECTED
\r
86 + 2009-11-18 [3/3] Adrian Perez de Castro, Keith Packard, Carl Worth [notmuch] Introducing myself (matching signed unread)
\r
87 + 2009-11-18 [1/3] Carl Worth, Israel Herraiz, Keith Packard [notmuch] New to the list (inbox matching unread)
\r
88 + 2009-11-18 [2/2] Keith Packard, Carl Worth [notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags (matching unread)
\r
89 + 2009-11-18 [1/2] Keith Packard, Alexander Botero-Lowry [notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap (inbox matching unread)
\r
90 + 2009-11-18 [1/1] Jan Janak [notmuch] [PATCH] notmuch new: Support for conversion of spool subdirectories into tags (matching unread)
\r
91 + 2009-11-18 [1/1] Stewart Smith [notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++ libs. (matching unread)
\r
92 + 2009-11-17 [1/2] Ingmar Vanhassel, Carl Worth [notmuch] [PATCH] Typsos (inbox matching unread)
\r
93 +End of search results.
\r
95 +test_expect_equal_file OUTPUT EXPECTED
\r
98 diff --git a/test/notmuch-test b/test/notmuch-test
\r
99 index 79e6267..bafbcb1 100755
\r
100 --- a/test/notmuch-test
\r
101 +++ b/test/notmuch-test
\r
102 @@ -38,6 +38,7 @@ TESTS="
\r
105 emacs-large-search-buffer
\r
106 + emacs-search-operate-all
\r