[PATCH 4/4] test: add 'Emacs' prereq to 'emacs-large-search-buffer' tests
authorPieter Praet <pieter@praet.org>
Fri, 13 May 2011 08:17:16 +0000 (10:17 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:15 +0000 (09:38 -0800)
5f/01c8c57a47d061b966afe599ea60f9920aa251 [new file with mode: 0644]

diff --git a/5f/01c8c57a47d061b966afe599ea60f9920aa251 b/5f/01c8c57a47d061b966afe599ea60f9920aa251
new file mode 100644 (file)
index 0000000..97587c0
--- /dev/null
@@ -0,0 +1,92 @@
+Return-Path: <pieter@praet.org>\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 C0409429E33\r
+       for <notmuch@notmuchmail.org>; Fri, 13 May 2011 01:18:08 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[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 Akzis7NRvILm for <notmuch@notmuchmail.org>;\r
+       Fri, 13 May 2011 01:18:07 -0700 (PDT)\r
+Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com\r
+       [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 95A7A431FD0\r
+       for <notmuch@notmuchmail.org>; Fri, 13 May 2011 01:18:05 -0700 (PDT)\r
+Received: by mail-wy0-f181.google.com with SMTP id 11so1911216wyi.26\r
+       for <notmuch@notmuchmail.org>; Fri, 13 May 2011 01:18:05 -0700 (PDT)\r
+Received: by 10.216.62.195 with SMTP id y45mr1252528wec.15.1305274685197;\r
+       Fri, 13 May 2011 01:18:05 -0700 (PDT)\r
+Received: from localhost (54.209-242-81.adsl-dyn.isp.belgacom.be\r
+       [81.242.209.54])\r
+       by mx.google.com with ESMTPS id h39sm1001346wes.29.2011.05.13.01.18.03\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Fri, 13 May 2011 01:18:04 -0700 (PDT)\r
+From: Pieter Praet <pieter@praet.org>\r
+To: Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: [PATCH 4/4] test: add 'Emacs' prereq to 'emacs-large-search-buffer'\r
+       tests\r
+Date: Fri, 13 May 2011 10:17:16 +0200\r
+Message-Id: <1305274636-19975-5-git-send-email-pieter@praet.org>\r
+X-Mailer: git-send-email 1.7.4.1\r
+In-Reply-To: <1305274636-19975-1-git-send-email-pieter@praet.org>\r
+References: <1305274636-19975-1-git-send-email-pieter@praet.org>\r
+Cc: Austin Clements <amdragon@mit.edu>\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: Fri, 13 May 2011 08:18:09 -0000\r
+\r
+Signed-off-by: Pieter Praet <pieter@praet.org>\r
+---\r
+ test/emacs-large-search-buffer |    9 +++++++--\r
+ 1 files changed, 7 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/test/emacs-large-search-buffer b/test/emacs-large-search-buffer\r
+index 2751a32..54b1827 100755\r
+--- a/test/emacs-large-search-buffer\r
++++ b/test/emacs-large-search-buffer\r
+@@ -2,6 +2,11 @@\r
+ test_description="Emacs with large search results buffer"\r
+ . test-lib.sh\r
\r
++# Emacs is a prereq.\r
++if test_expect_success "prereq: Emacs is present" "which emacs"; then\r
++    test_set_prereq EMACS\r
++fi\r
++\r
+ x=xxxxxxxxxx # 10\r
+ x=$x$x$x$x$x$x$x$x$x$x # 100\r
+ x=$x$x$x$x$x$x$x$x$x # 900\r
+@@ -23,11 +28,11 @@ expected="$(notmuch search '*' | sed -e 's/^thread:[0-9a-f]*  //' -e 's/;//' -e\r
+ End of search results."\r
\r
+ output=$(test_emacs '(notmuch-search "*") (notmuch-test-wait) (princ (buffer-string))' | sed -e s',  *, ,g' -e 's/xxx*/[BLOB]/g')\r
+-test_expect_equal "$output" "$expected"\r
++test_expect_equal EMACS "$output" "$expected"\r
\r
+ test_begin_subtest "Ensure that emacs doesn't drop error messages"\r
+ output=$(test_emacs '(notmuch-search "--this-option-does-not-exist") (notmuch-test-wait) (princ (buffer-string))')\r
+-test_expect_equal "$output" "Error: Unexpected output from notmuch search:\r
++test_expect_equal EMACS "$output" "Error: Unexpected output from notmuch search:\r
+ Unrecognized option: --this-option-does-not-exist\r
+ End of search results. (process returned 1)"\r
\r
+-- \r
+1.7.4.1\r
+\r