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 59CC1431FBF
\r
6 for <notmuch@notmuchmail.org>; Sun, 26 May 2013 01:46:15 -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 mng60l1XBbln for <notmuch@notmuchmail.org>;
\r
16 Sun, 26 May 2013 01:46:10 -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 822D4431FD2
\r
19 for <notmuch@notmuchmail.org>; Sun, 26 May 2013 01:46:01 -0700 (PDT)
\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)
\r
21 id DF00C1001EE; Sun, 26 May 2013 11:45:58 +0300 (EEST)
\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
23 To: notmuch@notmuchmail.org
\r
24 Subject: [PATCH v2 2/4] test: added --stderr=FILE tests
\r
25 Date: Sun, 26 May 2013 11:45:52 +0300
\r
26 Message-Id: <1369557954-13439-3-git-send-email-tomi.ollila@iki.fi>
\r
27 X-Mailer: git-send-email 1.8.0
\r
28 In-Reply-To: <1369557954-13439-1-git-send-email-tomi.ollila@iki.fi>
\r
29 References: <1369557954-13439-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: Sun, 26 May 2013 08:46:16 -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
49 test/help-test | 9 +++++++++
\r
50 1 file changed, 9 insertions(+)
\r
52 diff --git a/test/help-test b/test/help-test
\r
53 index f7df725..bd0111c 100755
\r
54 --- a/test/help-test
\r
55 +++ b/test/help-test
\r
56 @@ -9,4 +9,13 @@ test_expect_success 'notmuch help' 'notmuch help'
\r
57 test_expect_success 'notmuch help tag' 'notmuch help tag'
\r
58 test_expect_success 'notmuch --version' 'notmuch --version'
\r
60 +test_begin_subtest "notmuch --stderr=stderr help %"
\r
61 +notmuch --stderr=stderr help %
\r
62 +test_expect_equal "$(cat stderr)" "
\r
63 +Sorry, % is not a known command. There's not much I can do to help."
\r
65 +test_begin_subtest "notmuch --stderr=- help %"
\r
66 +test_expect_equal "$(notmuch --stderr=- help %)" "
\r
67 +Sorry, % is not a known command. There's not much I can do to help."
\r