From 8d61f0e61cef0f1e215afa833aabf4124bf30a2c Mon Sep 17 00:00:00 2001 From: Dmitry Kurochkin Date: Fri, 24 Feb 2012 14:35:22 +0400 Subject: [PATCH] Re: [PATCH 1/6] test: emacs: new tests "notmuch-show: {add, remove} multiple tags {to, from} single message" --- 56/e060f4ae3464ac4e8c9dc236bb50168b76ffcc | 138 ++++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 56/e060f4ae3464ac4e8c9dc236bb50168b76ffcc diff --git a/56/e060f4ae3464ac4e8c9dc236bb50168b76ffcc b/56/e060f4ae3464ac4e8c9dc236bb50168b76ffcc new file mode 100644 index 000000000..6d2d64728 --- /dev/null +++ b/56/e060f4ae3464ac4e8c9dc236bb50168b76ffcc @@ -0,0 +1,138 @@ +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 2EC78429E31 + for ; Fri, 24 Feb 2012 02:36:49 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.799 +X-Spam-Level: +X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_FROM=0.001, 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 67JHEw88DDhM for ; + Fri, 24 Feb 2012 02:36:48 -0800 (PST) +Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com + [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 52887431FAE + for ; Fri, 24 Feb 2012 02:36:48 -0800 (PST) +Received: by bkcit16 with SMTP id it16so2017827bkc.26 + for ; Fri, 24 Feb 2012 02:36:46 -0800 (PST) +Received-SPF: pass (google.com: domain of dmitry.kurochkin@gmail.com + designates 10.204.154.92 as permitted sender) + client-ip=10.204.154.92; +Authentication-Results: mr.google.com; spf=pass (google.com: domain of + dmitry.kurochkin@gmail.com designates 10.204.154.92 as + permitted sender) smtp.mail=dmitry.kurochkin@gmail.com; + dkim=pass header.i=dmitry.kurochkin@gmail.com +Received: from mr.google.com ([10.204.154.92]) + by 10.204.154.92 with SMTP id n28mr824328bkw.30.1330079806951 (num_hops + = 1); Fri, 24 Feb 2012 02:36:46 -0800 (PST) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; + h=from:to:cc:subject:in-reply-to:references:user-agent:date + :message-id:mime-version:content-type; + bh=NEIqWNR6KhnixmrGSYlIp3FnV5+24IULIQudAflDXw4=; + b=WodIJ3U2mmaxIk2YRiH0AyekMJoukl+cbm7iLPs8y3rsg1s2iVVCzWXc6p5EWAhYcF + N0OxHVpsteqNHnRrfqUPBpacaWP7TLY8KSfuVDedeQUhf8q08qYV2BXcXgcJ4Ec3yZ/o + q/4B5AxUs85SygiahbcnwqsjCMXofKwnsSqAg= +Received: by 10.204.154.92 with SMTP id n28mr682075bkw.30.1330079806890; + Fri, 24 Feb 2012 02:36:46 -0800 (PST) +Received: from localhost ([91.144.186.21]) + by mx.google.com with ESMTPS id jd17sm7851956bkb.4.2012.02.24.02.36.45 + (version=TLSv1/SSLv3 cipher=OTHER); + Fri, 24 Feb 2012 02:36:46 -0800 (PST) +From: Dmitry Kurochkin +To: Pieter Praet , David Bremner +Subject: Re: [PATCH 1/6] test: emacs: new tests "notmuch-show: {add, + remove} multiple tags {to, from} single message" +In-Reply-To: <1330038554-10347-1-git-send-email-pieter@praet.org> +References: <878vjtqhcg.fsf@praet.org> + <1330038554-10347-1-git-send-email-pieter@praet.org> +User-Agent: Notmuch/0.11.1+188~ga5674c2 (http://notmuchmail.org) Emacs/23.3.1 + (x86_64-pc-linux-gnu) +Date: Fri, 24 Feb 2012 14:35:22 +0400 +Message-ID: <87ipiwjz85.fsf@gmail.com> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +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 10:36:49 -0000 + +On Fri, 24 Feb 2012 00:09:09 +0100, Pieter Praet wrote: +> * test/emacs: +> +> - Rename subtests "{Add,Remove} tag from notmuch-show view" to +> "notmuch-show: {add,remove} single tag {to,from} single message" +> to be consistent with the following tests. +> +> - New subtest "notmuch-show: add multiple tags to single message": +> `notmuch-show-add-tag' ("+") can add multiple tags to a message. +> +> - New subtest "notmuch-show: remove multiple tags from single message": +> `notmuch-show-remove-tag' ("-") can remove multiple tags from a message. +> --- + +Would be nice to have another patch that moves notmuch-show tests to +emacs-show file. + +Regards, + Dmitry + +> test/emacs | 16 ++++++++++++++-- +> 1 files changed, 14 insertions(+), 2 deletions(-) +> +> diff --git a/test/emacs b/test/emacs +> index b74cfa9..ec1dbb0 100755 +> --- a/test/emacs +> +++ b/test/emacs +> @@ -112,18 +112,30 @@ test_emacs "(notmuch-search \"$os_x_darwin_thread\") +> output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize) +> 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)" +> +> -test_begin_subtest "Add tag from notmuch-show view" +> +test_begin_subtest "notmuch-show: add single tag to single message" +> test_emacs "(notmuch-show \"$os_x_darwin_thread\") +> (execute-kbd-macro \"+tag-from-show-view\")" +> output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize) +> 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)" +> +> -test_begin_subtest "Remove tag from notmuch-show view" +> +test_begin_subtest "notmuch-show: remove single tag from single message" +> test_emacs "(notmuch-show \"$os_x_darwin_thread\") +> (execute-kbd-macro \"-tag-from-show-view\")" +> output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize) +> 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)" +> +> +test_begin_subtest "notmuch-show: add multiple tags to single message" +> +test_emacs "(notmuch-show \"$os_x_darwin_thread\") +> + (execute-kbd-macro \"+tag1-from-show-view +tag2-from-show-view\")" +> +output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize) +> +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)" +> + +> +test_begin_subtest "notmuch-show: remove multiple tags from single message" +> +test_emacs "(notmuch-show \"$os_x_darwin_thread\") +> + (execute-kbd-macro \"-tag1-from-show-view -tag2-from-show-view\")" +> +output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize) +> +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)" +> + +> 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 +> -- 2.26.2