1 Return-Path: <too@guru-group.fi>
\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 EF977431FAF
\r
6 for <notmuch@notmuchmail.org>; Thu, 23 May 2013 11:06:17 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\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 IOBp9Q0jLh+X for <notmuch@notmuchmail.org>;
\r
16 Thu, 23 May 2013 11:06:11 -0700 (PDT)
\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 8A87F431FB6
\r
19 for <notmuch@notmuchmail.org>; Thu, 23 May 2013 11:06:11 -0700 (PDT)
\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)
\r
21 id E40E71002C5; Thu, 23 May 2013 21:06:10 +0300 (EEST)
\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
23 To: notmuch@notmuchmail.org
\r
24 Subject: [PATCH 2/4] test: added --stderr=FILE tests
\r
25 Date: Thu, 23 May 2013 21:06:00 +0300
\r
26 Message-Id: <1369332362-4719-2-git-send-email-tomi.ollila@iki.fi>
\r
27 X-Mailer: git-send-email 1.8.0
\r
28 In-Reply-To: <1369332362-4719-1-git-send-email-tomi.ollila@iki.fi>
\r
29 References: <1369332362-4719-1-git-send-email-tomi.ollila@iki.fi>
\r
30 Cc: tomi.ollila@iki.fi
\r
31 X-BeenThere: notmuch@notmuchmail.org
\r
32 X-Mailman-Version: 2.1.13
\r
34 List-Id: "Use and development of the notmuch mail system."
\r
35 <notmuch.notmuchmail.org>
\r
36 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
37 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
38 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
39 List-Post: <mailto:notmuch@notmuchmail.org>
\r
40 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
41 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
42 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
43 X-List-Received-Date: Thu, 23 May 2013 18:06:18 -0000
\r
45 --stderr=FILE tests were added to test/help-test as it is the one
\r
46 doing most global option testing. Also, it was simplest to test
\r
47 this new option using `notmuch help` command.
\r
50 In the future this file (help-test) could be renamed and used in
\r
51 more generic "global option" testing
\r
53 test/help-test | 10 ++++++++++
\r
54 1 file changed, 10 insertions(+)
\r
56 diff --git a/test/help-test b/test/help-test
\r
57 index f7df725..8b77931 100755
\r
58 --- a/test/help-test
\r
59 +++ b/test/help-test
\r
60 @@ -9,4 +9,14 @@ test_expect_success 'notmuch help' 'notmuch help'
\r
61 test_expect_success 'notmuch help tag' 'notmuch help tag'
\r
62 test_expect_success 'notmuch --version' 'notmuch --version'
\r
64 +test_begin_subtest "notmuch --stderr=stderr help %"
\r
65 +notmuch --stderr=stderr help %
\r
66 +test_expect_equal "$(cat stderr)" "
\r
67 +Sorry, % is not a known command. There's not much I can do to help."
\r
69 +test_begin_subtest "notmuch --stderr=- help %"
\r
70 +notmuch --stderr=stderr help %
\r
71 +test_expect_equal "$(notmuch --stderr=- help %)" "
\r
72 +Sorry, % is not a known command. There's not much I can do to help."
\r