From 53d346a7fdacd60818d563cda503a1e75f76b012 Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Tue, 28 May 2013 21:38:53 +0300 Subject: [PATCH] [PATCH v3 2/4] test: added --stderr=FILE tests --- 92/c433f98eba1d3c3112f1fb4adf921fc56af20f | 72 +++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 92/c433f98eba1d3c3112f1fb4adf921fc56af20f diff --git a/92/c433f98eba1d3c3112f1fb4adf921fc56af20f b/92/c433f98eba1d3c3112f1fb4adf921fc56af20f new file mode 100644 index 000000000..9f579c952 --- /dev/null +++ b/92/c433f98eba1d3c3112f1fb4adf921fc56af20f @@ -0,0 +1,72 @@ +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 14BDF431FC3 + for ; Tue, 28 May 2013 11:39:08 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + 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 hG6oXlRFGZ3w for ; + Tue, 28 May 2013 11:39:02 -0700 (PDT) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by olra.theworths.org (Postfix) with ESMTP id 08151431FAE + for ; Tue, 28 May 2013 11:39:02 -0700 (PDT) +Received: by guru.guru-group.fi (Postfix, from userid 501) + id 2862D1001EE; Tue, 28 May 2013 21:39:01 +0300 (EEST) +From: Tomi Ollila +To: notmuch@notmuchmail.org +Subject: [PATCH v3 2/4] test: added --stderr=FILE tests +Date: Tue, 28 May 2013 21:38:53 +0300 +Message-Id: <1369766335-26733-3-git-send-email-tomi.ollila@iki.fi> +X-Mailer: git-send-email 1.8.0 +In-Reply-To: <1369766335-26733-1-git-send-email-tomi.ollila@iki.fi> +References: <1369766335-26733-1-git-send-email-tomi.ollila@iki.fi> +Cc: tomi.ollila@iki.fi +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: Tue, 28 May 2013 18:39:08 -0000 + +--stderr=FILE tests were added to test/help-test as it is the one +doing most global option testing. Also, it was simplest to test +this new option using `notmuch help` command. +--- + test/help-test | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/test/help-test b/test/help-test +index f7df725..bd0111c 100755 +--- a/test/help-test ++++ b/test/help-test +@@ -9,4 +9,13 @@ test_expect_success 'notmuch help' 'notmuch help' + test_expect_success 'notmuch help tag' 'notmuch help tag' + test_expect_success 'notmuch --version' 'notmuch --version' + ++test_begin_subtest "notmuch --stderr=stderr help %" ++notmuch --stderr=stderr help % ++test_expect_equal "$(cat stderr)" " ++Sorry, % is not a known command. There's not much I can do to help." ++ ++test_begin_subtest "notmuch --stderr=- help %" ++test_expect_equal "$(notmuch --stderr=- help %)" " ++Sorry, % is not a known command. There's not much I can do to help." ++ + test_done +-- +1.8.1.4 + -- 2.26.2