[PATCH] test: add simple tests for online help
authorDavid Bremner <david@tethera.net>
Fri, 25 Nov 2011 18:36:26 +0000 (13:36 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:40:24 +0000 (09:40 -0800)
57/5d2995627f2bbc2514d95c0444816a5b52c8ec [new file with mode: 0644]

diff --git a/57/5d2995627f2bbc2514d95c0444816a5b52c8ec b/57/5d2995627f2bbc2514d95c0444816a5b52c8ec
new file mode 100644 (file)
index 0000000..8e9f0e6
--- /dev/null
@@ -0,0 +1,95 @@
+Return-Path: <bremner@unb.ca>\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 E14FF431FD0\r
+       for <notmuch@notmuchmail.org>; Fri, 25 Nov 2011 10:36:47 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.3\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3] 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 LIP60FSJcVJu for <notmuch@notmuchmail.org>;\r
+       Fri, 25 Nov 2011 10:36:47 -0800 (PST)\r
+Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 29235431FB6\r
+       for <notmuch@notmuchmail.org>; Fri, 25 Nov 2011 10:36:47 -0800 (PST)\r
+Received: from rocinante.cs.unb.ca ([74.198.164.201]) (authenticated bits=0)\r
+       by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id pAPIaXgj004926\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
+       Fri, 25 Nov 2011 14:36:40 -0400\r
+Received: from bremner by rocinante.cs.unb.ca with local (Exim 4.76)\r
+       (envelope-from <bremner@tesseract.cs.unb.ca>)\r
+       id 1RU0dT-0002SY-JR; Fri, 25 Nov 2011 13:36:31 -0500\r
+From: David Bremner <david@tethera.net>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] test: add simple tests for online help\r
+Date: Fri, 25 Nov 2011 13:36:26 -0500\r
+Message-Id: <1322246186-9080-1-git-send-email-david@tethera.net>\r
+X-Mailer: git-send-email 1.7.5.4\r
+In-Reply-To: <1322164961-18523-1-git-send-email-david@tethera.net>\r
+References: <1322164961-18523-1-git-send-email-david@tethera.net>\r
+Cc: David Bremner <bremner@debian.org>\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, 25 Nov 2011 18:36:48 -0000\r
+\r
+From: David Bremner <bremner@debian.org>\r
+\r
+Nothing fancy, but we can at least detect segmentation faults.\r
+---\r
+I think Jani was just making fun of me when he suggested tests for notmuch --help, but I thought, why not.\r
+\r
+ test/help-test    |   12 ++++++++++++\r
+ test/notmuch-test |    1 +\r
+ 2 files changed, 13 insertions(+), 0 deletions(-)\r
+ create mode 100755 test/help-test\r
+\r
+diff --git a/test/help-test b/test/help-test\r
+new file mode 100755\r
+index 0000000..9f4b9c7\r
+--- /dev/null\r
++++ b/test/help-test\r
+@@ -0,0 +1,12 @@\r
++#!/usr/bin/env bash\r
++\r
++test_description="online help"\r
++. test-lib.sh\r
++\r
++test_expect_success 'notmuch --help' 'notmuch --help'\r
++test_expect_success 'notmuch --help tag' 'notmuch --help tag'\r
++test_expect_success 'notmuch help' 'notmuch help'\r
++test_expect_success 'notmuch help tag' 'notmuch help tag'\r
++test_expect_success 'notmuch --version' 'notmuch --version'\r
++\r
++test_done\r
+diff --git a/test/notmuch-test b/test/notmuch-test\r
+index adfd589..5aced5c 100755\r
+--- a/test/notmuch-test\r
++++ b/test/notmuch-test\r
+@@ -18,6 +18,7 @@ cd $(dirname "$0")\r
\r
+ TESTS="\r
+   basic\r
++  help-test\r
+   new\r
+   count\r
+   search\r
+-- \r
+1.7.5.4\r
+\r