Re: Avoiding the "huge INBOX of death"
[notmuch-archives.git] / 57 / 5d2995627f2bbc2514d95c0444816a5b52c8ec
1 Return-Path: <bremner@unb.ca>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id E14FF431FD0\r
6         for <notmuch@notmuchmail.org>; Fri, 25 Nov 2011 10:36:47 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id LIP60FSJcVJu for <notmuch@notmuchmail.org>;\r
16         Fri, 25 Nov 2011 10:36:47 -0800 (PST)\r
17 Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 29235431FB6\r
21         for <notmuch@notmuchmail.org>; Fri, 25 Nov 2011 10:36:47 -0800 (PST)\r
22 Received: from rocinante.cs.unb.ca ([74.198.164.201]) (authenticated bits=0)\r
23         by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id pAPIaXgj004926\r
24         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
25         Fri, 25 Nov 2011 14:36:40 -0400\r
26 Received: from bremner by rocinante.cs.unb.ca with local (Exim 4.76)\r
27         (envelope-from <bremner@tesseract.cs.unb.ca>)\r
28         id 1RU0dT-0002SY-JR; Fri, 25 Nov 2011 13:36:31 -0500\r
29 From: David Bremner <david@tethera.net>\r
30 To: notmuch@notmuchmail.org\r
31 Subject: [PATCH] test: add simple tests for online help\r
32 Date: Fri, 25 Nov 2011 13:36:26 -0500\r
33 Message-Id: <1322246186-9080-1-git-send-email-david@tethera.net>\r
34 X-Mailer: git-send-email 1.7.5.4\r
35 In-Reply-To: <1322164961-18523-1-git-send-email-david@tethera.net>\r
36 References: <1322164961-18523-1-git-send-email-david@tethera.net>\r
37 Cc: David Bremner <bremner@debian.org>\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.13\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42         <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Fri, 25 Nov 2011 18:36:48 -0000\r
51 \r
52 From: David Bremner <bremner@debian.org>\r
53 \r
54 Nothing fancy, but we can at least detect segmentation faults.\r
55 ---\r
56 I think Jani was just making fun of me when he suggested tests for notmuch --help, but I thought, why not.\r
57 \r
58  test/help-test    |   12 ++++++++++++\r
59  test/notmuch-test |    1 +\r
60  2 files changed, 13 insertions(+), 0 deletions(-)\r
61  create mode 100755 test/help-test\r
62 \r
63 diff --git a/test/help-test b/test/help-test\r
64 new file mode 100755\r
65 index 0000000..9f4b9c7\r
66 --- /dev/null\r
67 +++ b/test/help-test\r
68 @@ -0,0 +1,12 @@\r
69 +#!/usr/bin/env bash\r
70 +\r
71 +test_description="online help"\r
72 +. test-lib.sh\r
73 +\r
74 +test_expect_success 'notmuch --help' 'notmuch --help'\r
75 +test_expect_success 'notmuch --help tag' 'notmuch --help tag'\r
76 +test_expect_success 'notmuch help' 'notmuch help'\r
77 +test_expect_success 'notmuch help tag' 'notmuch help tag'\r
78 +test_expect_success 'notmuch --version' 'notmuch --version'\r
79 +\r
80 +test_done\r
81 diff --git a/test/notmuch-test b/test/notmuch-test\r
82 index adfd589..5aced5c 100755\r
83 --- a/test/notmuch-test\r
84 +++ b/test/notmuch-test\r
85 @@ -18,6 +18,7 @@ cd $(dirname "$0")\r
86  \r
87  TESTS="\r
88    basic\r
89 +  help-test\r
90    new\r
91    count\r
92    search\r
93 -- \r
94 1.7.5.4\r
95 \r