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 778E9431FAF for ; Fri, 24 May 2013 01:03:23 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 3J7QAtcEaF+o for ; Fri, 24 May 2013 01:03:15 -0700 (PDT) Received: from mail-wg0-f54.google.com (mail-wg0-f54.google.com [74.125.82.54]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id A0B8B431FAE for ; Fri, 24 May 2013 01:03:15 -0700 (PDT) Received: by mail-wg0-f54.google.com with SMTP id j13so1230382wgh.9 for ; Fri, 24 May 2013 01:03:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type:x-gm-message-state; bh=jCongD9gRLLvddv9pgUeoYYKIAwGU9NVZmV3cTsRwIc=; b=fQVoZf5WvIg23UgyQSuuFz3U6UvDXWRA6IzvxDG40N97pDzTpBQb2M8cO3XJMzQcj6 yrzkWmKuWiIkPmtYUu0eFfuDDfGMfLWP2I9HukN2VG7HE3P/FZjdpVu5besg2gCsLwno 8X2hL8tLsiqc74fJ40GjzCyuZJx5eN0KMZHRxBpibGMTPXw7cOqmyYF1wTT/XyVkh3IL Rc+MMa7Ipw/IdQa9LqWIdzoMY/T0M/atoBiLW5Gq73Fn1A87CbrLLEQNAmZysDh98QZN jrcX3vmlLikBjNhQeUJASwbAQ7ek0NLnj/0biHlDt7fFNIRXNLe06+381N/BIOi62bLz iyhg== X-Received: by 10.180.9.80 with SMTP id x16mr43663wia.63.1369382593067; Fri, 24 May 2013 01:03:13 -0700 (PDT) Received: from localhost ([2001:4b98:dc0:43:216:3eff:fe1b:25f3]) by mx.google.com with ESMTPSA id d10sm40501066wik.0.2013.05.24.01.03.11 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Fri, 24 May 2013 01:03:11 -0700 (PDT) From: Jani Nikula To: Tomi Ollila , notmuch@notmuchmail.org Subject: Re: [PATCH 2/4] test: added --stderr=FILE tests In-Reply-To: <1369332362-4719-2-git-send-email-tomi.ollila@iki.fi> References: <1369332362-4719-1-git-send-email-tomi.ollila@iki.fi> <1369332362-4719-2-git-send-email-tomi.ollila@iki.fi> User-Agent: Notmuch/0.15.2+86~g2be3ce0 (http://notmuchmail.org) Emacs/23.2.1 (x86_64-pc-linux-gnu) Date: Fri, 24 May 2013 10:03:07 +0200 Message-ID: <87k3mo3iv8.fsf@nikula.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gm-Message-State: ALoCoQkjrMDWgzhTnaxi4mFVLHcTY2aSdsRHsh0nnZIto+RoPlMcjb4qQA35MhjshlTIJeQY1O04 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: Fri, 24 May 2013 08:03:23 -0000 On Thu, 23 May 2013, Tomi Ollila wrote: > --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. > --- > > In the future this file (help-test) could be renamed and used in > more generic "global option" testing > > test/help-test | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/test/help-test b/test/help-test > index f7df725..8b77931 100755 > --- a/test/help-test > +++ b/test/help-test > @@ -9,4 +9,14 @@ 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 %" > +notmuch --stderr=stderr help % Leftover line from copy-paste? > +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 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch