[PATCH v4 2/4] test: add test for `notmuch-hello-mode-hook'
authorDmitry Kurochkin <dmitry.kurochkin@gmail.com>
Sun, 18 Dec 2011 00:21:19 +0000 (04:21 +0400)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:41:00 +0000 (09:41 -0800)
b6/f5df81ec176d012bf2ab8ac04211e1ff53f006 [new file with mode: 0644]

diff --git a/b6/f5df81ec176d012bf2ab8ac04211e1ff53f006 b/b6/f5df81ec176d012bf2ab8ac04211e1ff53f006
new file mode 100644 (file)
index 0000000..90621a0
--- /dev/null
@@ -0,0 +1,86 @@
+Return-Path: <dmitry.kurochkin@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 1993D429E34\r
+       for <notmuch@notmuchmail.org>; Sat, 17 Dec 2011 16:22:12 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 8EEzZItJqko4 for <notmuch@notmuchmail.org>;\r
+       Sat, 17 Dec 2011 16:22:11 -0800 (PST)\r
+Received: from mail-ww0-f41.google.com (mail-ww0-f41.google.com\r
+ [74.125.82.41])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ 1A2FD429E31   for <notmuch@notmuchmail.org>; Sat, 17 Dec 2011 16:22:08 -0800\r
+ (PST)\r
+Received: by wgbdt12 with SMTP id dt12so4921505wgb.2\r
+       for <notmuch@notmuchmail.org>; Sat, 17 Dec 2011 16:22:08 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=from:to:subject:date:message-id:x-mailer:in-reply-to:references;\r
+       bh=85A3jP9We8emThvSQ9Ivoxkcg6+hII7rvC9ncICzo2k=;\r
+       b=ulFT1OUe5mbQv0/71LprWEYl32CqW7UN4g6aoBO6/T13mbSKR6lAzEk/7KHmCgjuQn\r
+       gjf3O7NCxTxSChKFMO1zPReZ2vhj03bPC8ALMOEEI3iBSwUrC7qp1LrgV7vmGKz5/r33\r
+       s0bb31z6pM6cnlKP1NH0LaeK5pjRZd3+mccrw=\r
+Received: by 10.180.104.2 with SMTP id ga2mr24014813wib.33.1324167727986;\r
+       Sat, 17 Dec 2011 16:22:07 -0800 (PST)\r
+Received: from localhost ([91.144.186.21])\r
+       by mx.google.com with ESMTPS id n9sm20066232wbo.16.2011.12.17.16.22.06\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Sat, 17 Dec 2011 16:22:07 -0800 (PST)\r
+From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v4 2/4] test: add test for `notmuch-hello-mode-hook'\r
+Date: Sun, 18 Dec 2011 04:21:19 +0400\r
+Message-Id: <1324167681-26984-3-git-send-email-dmitry.kurochkin@gmail.com>\r
+X-Mailer: git-send-email 1.7.7.3\r
+In-Reply-To: <1324167681-26984-1-git-send-email-dmitry.kurochkin@gmail.com>\r
+References: <1324095619-10870-1-git-send-email-dmitry.kurochkin@gmail.com>\r
+       <1324167681-26984-1-git-send-email-dmitry.kurochkin@gmail.com>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 18 Dec 2011 00:22:12 -0000\r
+\r
+Test that `notmuch-hello-mode-hook' is called once when\r
+`notmuch-hello' function is called.\r
+---\r
+ test/emacs |    9 +++++++++\r
+ 1 files changed, 9 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/test/emacs b/test/emacs\r
+index 6e922de..a864ffa 100755\r
+--- a/test/emacs\r
++++ b/test/emacs\r
+@@ -476,4 +476,13 @@ test_emacs "(let ((notmuch-command \"$notmuch_counter_command\"))\r
+             (notmuch-show \"id:$id\"))"\r
+ test_expect_equal $(notmuch_counter_value) 1\r
\r
++test_begin_subtest "notmuch-hello-mode hook is called"\r
++counter=$(test_emacs \\r
++    '(let ((notmuch-hello-mode-hook-counter 0))\r
++       (kill-buffer "*notmuch-hello*")\r
++       (notmuch-hello)\r
++       notmuch-hello-mode-hook-counter)'\r
++)\r
++test_expect_equal "$counter" 1\r
++\r
+ test_done\r
+-- \r
+1.7.7.3\r
+\r