From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id A7BA3409F04 for ; Fri, 24 Feb 2012 14:33:31 -0800 (PST) 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 miTAkaRFzJ5W for ; Fri, 24 Feb 2012 14:33:30 -0800 (PST) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 140D6415E50 for ; Fri, 24 Feb 2012 14:33:28 -0800 (PST) Received: by mail-wi0-f181.google.com with SMTP id hi8so2008573wib.26 for ; Fri, 24 Feb 2012 14:33:28 -0800 (PST) Received-SPF: pass (google.com: domain of pieter@praet.org designates 10.180.92.71 as permitted sender) client-ip=10.180.92.71; Authentication-Results: mr.google.com; spf=pass (google.com: domain of pieter@praet.org designates 10.180.92.71 as permitted sender) smtp.mail=pieter@praet.org Received: from mr.google.com ([10.180.92.71]) by 10.180.92.71 with SMTP id ck7mr10958312wib.3.1330122808808 (num_hops = 1); Fri, 24 Feb 2012 14:33:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.180.92.71 with SMTP id ck7mr8861235wib.3.1330122807602; Fri, 24 Feb 2012 14:33:27 -0800 (PST) Received: from localhost ([109.131.181.26]) by mx.google.com with ESMTPS id by4sm399414wib.3.2012.02.24.14.33.26 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 24 Feb 2012 14:33:27 -0800 (PST) From: Pieter Praet To: David Bremner , Dmitry Kurochkin Subject: [PATCH v2 3/6] test: emacs: `notmuch-show-tag-all' with prefix arg should only tag open messages Date: Fri, 24 Feb 2012 23:30:37 +0100 Message-Id: <1330122640-18895-4-git-send-email-pieter@praet.org> X-Mailer: git-send-email 1.7.8.1 In-Reply-To: <1330122640-18895-1-git-send-email-pieter@praet.org> References: <87wr7xqpuf.fsf@rocinante.cs.unb.ca> <1330122640-18895-1-git-send-email-pieter@praet.org> X-Gm-Message-State: ALoCoQmq/sCumg/zM3Fp2o1tjEj8bn5lS6M+qmfohU9cq0UsWcyOOcU+HfQaqsejcTVlNbXz+l3l 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: Fri, 24 Feb 2012 22:33:32 -0000 * test/emacs: - New subtest "notmuch-show: change tags of open messages in current buffer": When called with a prefix arg, `notmuch-show-tag-all' ("*") should only change the tags of *open* messages. Currently broken, fix follows later. --- test/emacs | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/test/emacs b/test/emacs index d2dbafc..9088ced 100755 --- a/test/emacs +++ b/test/emacs @@ -151,6 +151,22 @@ count_changed=$(notmuch count -- "$query" AND tag:"$add_tag" AND NOT tag:"$del_t notmuch tag +"$del_tag" -"$add_tag" -- "$query" # revert tag changes test_expect_equal "$count_changed" "$count_total" # assert that CHANGED == TOTAL +test_begin_subtest "notmuch-show: change tags of open messages in current buffer" +test_subtest_known_broken +query="$os_x_darwin_thread" +filter="from:Jiang" +add_tag="notmuch-show-tag-all" +del_tag="inbox" +count_total=$(notmuch count -- "$query") # = 4 +count_match=$(notmuch count -- "$query" AND "$filter") # = 2 +test_emacs "(notmuch-search \"$query AND $filter\") + (notmuch-test-wait) + (notmuch-search-show-thread) + (execute-kbd-macro \"*+$add_tag -$del_tag\")" +count_changed=$(notmuch count -- "$query" AND tag:"$add_tag" AND NOT tag:"$del_tag") +notmuch tag +"$del_tag" -"$add_tag" -- "$query" # revert tag changes +test_expect_equal "$count_changed" "$count_match" # assert that CHANGED == MATCHING + test_begin_subtest "Message with .. in Message-Id:" add_message [id]=123..456@example '[subject]="Message with .. in Message-Id"' test_emacs '(notmuch-search "id:\"123..456@example\"") -- 1.7.8.1