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