Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 78E72429E21 for ; Sun, 3 Jul 2011 23:53:00 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GoS-8S8NYFSp for ; Sun, 3 Jul 2011 23:52:59 -0700 (PDT) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 2A4FB431FD0 for ; Sun, 3 Jul 2011 23:52:59 -0700 (PDT) Received: by mail-wy0-f181.google.com with SMTP id 22so3733696wyh.26 for ; Sun, 03 Jul 2011 23:52:58 -0700 (PDT) Received: by 10.227.2.199 with SMTP id 7mr5089237wbk.88.1309762378520; Sun, 03 Jul 2011 23:52:58 -0700 (PDT) Received: from localhost ([109.131.160.67]) by mx.google.com with ESMTPS id fu18sm4227280wbb.27.2011.07.03.23.52.57 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 03 Jul 2011 23:52:57 -0700 (PDT) From: Pieter Praet To: Austin Clements Subject: [PATCH 4/5] test: emacs: add/remove tags from all matching messages with `notmuch-search-operate-all' Date: Mon, 4 Jul 2011 08:51:57 +0200 Message-Id: <1309762318-4530-5-git-send-email-pieter@praet.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1309762318-4530-1-git-send-email-pieter@praet.org> References: <20110703171743.GL15901@mit.edu> <1309762318-4530-1-git-send-email-pieter@praet.org> Cc: Notmuch Mail X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2011 06:53:00 -0000 Signed-off-by: Pieter Praet --- test/emacs-search-operate-all | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) create mode 100755 test/emacs-search-operate-all diff --git a/test/emacs-search-operate-all b/test/emacs-search-operate-all new file mode 100755 index 0000000..ff3e701 --- /dev/null +++ b/test/emacs-search-operate-all @@ -0,0 +1,29 @@ +#!/usr/bin/env bash + +test_description="emacs interface" +. test-lib.sh + +EXPECTED=$TEST_DIRECTORY/emacs.expected-output + +add_email_corpus + +test_begin_subtest "Add/remove tags from all matching messages." +test_emacs '(notmuch-search "tag:inbox AND tags") + (notmuch-test-wait) + (notmuch-search-operate-all "+matching -inbox") + (notmuch-search "tag:matching") + (notmuch-test-wait) + (test-output)' +cat <EXPECTED + 2009-11-18 [3/3] Adrian Perez de Castro, Keith Packard, Carl Worth [notmuch] Introducing myself (matching signed unread) + 2009-11-18 [1/3] Carl Worth, Israel Herraiz, Keith Packard [notmuch] New to the list (inbox matching unread) + 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) + 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) + 2009-11-18 [1/1] Jan Janak [notmuch] [PATCH] notmuch new: Support for conversion of spool subdirectories into tags (matching unread) + 2009-11-18 [1/1] Stewart Smith [notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++ libs. (matching unread) + 2009-11-17 [1/2] Ingmar Vanhassel, Carl Worth [notmuch] [PATCH] Typsos (inbox matching unread) +End of search results. +EOF +test_expect_equal_file OUTPUT EXPECTED + +test_done -- 1.7.5.4