From: Dmitry Kurochkin Date: Mon, 30 Jan 2012 02:26:14 +0000 (+0400) Subject: [PATCH v2 05/13] test: fix emacs tests after tagging operations changes X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=2862bc878051ad5488a2f25e703ef45bdbff1c3b;p=notmuch-archives.git [PATCH v2 05/13] test: fix emacs tests after tagging operations changes --- diff --git a/00/9d49fdb7a57e27645b844f7b76efd812b09fd2 b/00/9d49fdb7a57e27645b844f7b76efd812b09fd2 new file mode 100644 index 000000000..1be0b7023 --- /dev/null +++ b/00/9d49fdb7a57e27645b844f7b76efd812b09fd2 @@ -0,0 +1,126 @@ +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 B36BA431FBC + for ; Sun, 29 Jan 2012 18:27:48 -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 0TFx5EeZCTUh for ; + Sun, 29 Jan 2012 18:27:47 -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 8408B429E3E + for ; Sun, 29 Jan 2012 18:27:45 -0800 (PST) +Received: by mail-bk0-f53.google.com with SMTP id 11so960274bke.26 + for ; Sun, 29 Jan 2012 18:27:45 -0800 (PST) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; + h=from:to:subject:date:message-id:x-mailer:in-reply-to:references; + bh=S9ZZJ8HkmcVceIZY41Z7DYkAuQcPrhWDkTitJy8lCuI=; + b=F2HOnvaXYjmpPjQX52YVBvQsBXvv5GnNn2Xr7d5Ak83PHT7uzZ5uSdzp9zS6PCwphe + RfWqlYaFTt0IcrZCiy84xaYfiS/wRDTSlbeSyZv4XDX6BdcasrukNZWzv2P0Rj91QZoZ + LkCySFNFi2S1Dj1A1o+9WcjRM81fL/HlkyT2w= +Received: by 10.204.133.212 with SMTP id g20mr7798303bkt.82.1327890465231; + Sun, 29 Jan 2012 18:27:45 -0800 (PST) +Received: from localhost ([91.144.186.21]) + by mx.google.com with ESMTPS id t17sm34283242bke.6.2012.01.29.18.27.44 + (version=TLSv1/SSLv3 cipher=OTHER); + Sun, 29 Jan 2012 18:27:44 -0800 (PST) +From: Dmitry Kurochkin +To: notmuch@notmuchmail.org +Subject: [PATCH v2 05/13] test: fix emacs tests after tagging operations + changes +Date: Mon, 30 Jan 2012 06:26:14 +0400 +Message-Id: <1327890382-548-6-git-send-email-dmitry.kurochkin@gmail.com> +X-Mailer: git-send-email 1.7.8.3 +In-Reply-To: <1327890382-548-1-git-send-email-dmitry.kurochkin@gmail.com> +References: <1327725684-5887-1-git-send-email-dmitry.kurochkin@gmail.com> + <1327890382-548-1-git-send-email-dmitry.kurochkin@gmail.com> +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, 30 Jan 2012 02:27:48 -0000 + +After the recent tagging operations changes, functions bound to "+" +and "-" in notmuch-search and notmuch-show views always read input +from the minibuffer. Use kbd macros instead of calling them directly. +--- + test/emacs | 20 ++++++++++---------- + 1 files changed, 10 insertions(+), 10 deletions(-) + +diff --git a/test/emacs b/test/emacs +index 8ca4c8a..b9c0e02 100755 +--- a/test/emacs ++++ b/test/emacs +@@ -101,26 +101,26 @@ test_begin_subtest "Add tag from search view" + os_x_darwin_thread=$(notmuch search --output=threads id:ddd65cda0911171950o4eea4389v86de9525e46052d3@mail.gmail.com) + test_emacs "(notmuch-search \"$os_x_darwin_thread\") + (notmuch-test-wait) +- (notmuch-search-add-tag \"tag-from-search-view\")" ++ (execute-kbd-macro \"+tag-from-search-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-search-view unread)" + + test_begin_subtest "Remove tag from search view" + test_emacs "(notmuch-search \"$os_x_darwin_thread\") + (notmuch-test-wait) +- (notmuch-search-remove-tag \"tag-from-search-view\")" ++ (execute-kbd-macro \"-tag-from-search-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 "Add tag from notmuch-show view" + test_emacs "(notmuch-show \"$os_x_darwin_thread\") +- (notmuch-show-add-tag \"tag-from-show-view\")" ++ (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_emacs "(notmuch-show \"$os_x_darwin_thread\") +- (notmuch-show-remove-tag \"tag-from-show-view\")" ++ (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)" + +@@ -128,14 +128,14 @@ 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\"") + (notmuch-test-wait) +- (notmuch-search-add-tag "search-add") +- (notmuch-search-add-tag "search-remove") +- (notmuch-search-remove-tag "search-remove") ++ (execute-kbd-macro "+search-add") ++ (execute-kbd-macro "+search-remove") ++ (execute-kbd-macro "-search-remove") + (notmuch-show "id:\"123..456@example\"") + (notmuch-test-wait) +- (notmuch-show-add-tag "show-add") +- (notmuch-show-add-tag "show-remove") +- (notmuch-show-remove-tag "show-remove")' ++ (execute-kbd-macro "+show-add") ++ (execute-kbd-macro "+show-remove") ++ (execute-kbd-macro "-show-remove")' + output=$(notmuch search 'id:"123..456@example"' | notmuch_search_sanitize) + test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Message with .. in Message-Id (inbox search-add show-add)" + +-- +1.7.8.3 +