From: Pieter Praet Date: Thu, 23 Feb 2012 23:09:09 +0000 (+0100) Subject: [PATCH 1/6] test: emacs: new tests "notmuch-show: {add, remove} multiple tags {to... X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=5821984d1a68ae8e26c4b651c1a9782fc9df2d5e;p=notmuch-archives.git [PATCH 1/6] test: emacs: new tests "notmuch-show: {add, remove} multiple tags {to, from} single message" --- diff --git a/c3/4856b291ae6b91b3272b50c69a93801d70591e b/c3/4856b291ae6b91b3272b50c69a93801d70591e new file mode 100644 index 000000000..a840a5936 --- /dev/null +++ b/c3/4856b291ae6b91b3272b50c69a93801d70591e @@ -0,0 +1,129 @@ +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 95794431FBC + for ; Thu, 23 Feb 2012 15:11:37 -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 CVct4dtTqUhA for ; + Thu, 23 Feb 2012 15:11:37 -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 E9A41431FAE + for ; Thu, 23 Feb 2012 15:11:36 -0800 (PST) +Received: by wibhi8 with SMTP id hi8so1241599wib.26 + for ; Thu, 23 Feb 2012 15:11:35 -0800 (PST) +Received-SPF: pass (google.com: domain of pieter@praet.org designates + 10.216.138.234 as permitted sender) client-ip=10.216.138.234; +Authentication-Results: mr.google.com; + spf=pass (google.com: domain of pieter@praet.org + designates 10.216.138.234 as permitted sender) + smtp.mail=pieter@praet.org +Received: from mr.google.com ([10.216.138.234]) + by 10.216.138.234 with SMTP id a84mr201699wej.40.1330038695763 + (num_hops = 1); Thu, 23 Feb 2012 15:11:35 -0800 (PST) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=google.com; s=gamma; + h=mime-version:from:to:cc:subject:date:message-id:x-mailer + :in-reply-to:references:x-gm-message-state; + bh=wLiRVK3ZEs3S55xcrN62K8Rx1lZ03LDzVa8PldNlMGE=; + b=KtRAKe1IFGbCSjLyfJTXlxSKzXNTOlMMEwJWgETUpcllZLbrTS1KrILwHvxszlKRsN + qIeCygSGxPYJw+20LjeGVgq0QUJbmPvUxt8MNYNeaeCz6KQ2uM6MZ8hjmdcIMS2uJXVB + Qm8Ni7L/bHS9Erl3kcFb9HO/eJXooo/Li88d0= +MIME-Version: 1.0 +Received: by 10.216.138.234 with SMTP id a84mr161993wej.40.1330038695612; + Thu, 23 Feb 2012 15:11:35 -0800 (PST) +Received: from localhost ([109.131.181.26]) + by mx.google.com with ESMTPS id n5sm13262711wiw.7.2012.02.23.15.11.34 + (version=TLSv1/SSLv3 cipher=OTHER); + Thu, 23 Feb 2012 15:11:35 -0800 (PST) +From: Pieter Praet +To: David Bremner , + Dmitry Kurochkin +Subject: [PATCH 1/6] test: emacs: new tests "notmuch-show: {add, + remove} multiple tags {to, from} single message" +Date: Fri, 24 Feb 2012 00:09:09 +0100 +Message-Id: <1330038554-10347-1-git-send-email-pieter@praet.org> +X-Mailer: git-send-email 1.7.8.1 +In-Reply-To: <878vjtqhcg.fsf@praet.org> +References: <878vjtqhcg.fsf@praet.org> +X-Gm-Message-State: + ALoCoQk6fCfgbsCMsYWwgtUEQHrbk/5hI1tqVE1CPEqmpISka6BdsZ0wLybUX+pp/Bqup1/PLvKk +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: Thu, 23 Feb 2012 23:11:37 -0000 + +* 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. +--- + 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 +