From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 31E17421160 for ; Sat, 17 Aug 2013 05:12:15 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" 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 KQcn--1cIs2b for ; Sat, 17 Aug 2013 05:12:11 -0700 (PDT) Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id EB617421162 for ; Sat, 17 Aug 2013 05:11:47 -0700 (PDT) Received: by mail-bk0-f53.google.com with SMTP id d7so913680bkh.26 for ; Sat, 17 Aug 2013 05:11:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=Gyg9hUDzJEeykqW75EYZOBbST5BF8uVuoSznHbgA+XA=; b=BnGXVuXU9PmkPQyHLjuw9aMYEBXGloAj5llWh1A4eczVYNsJHmU2jsrFs/peadT+7S bUUb/S1FYhkCSihbRpS70F6dT7nIjPeHuz/JRvEGJDo3qPeNEH/XslxLO4BI+fAXEi0C 0skyfjMQBNRY+GQkkjmesE/cOOUWloyWWqMTtTVLxl2uZEZG/Q6DiV8GMVg9IIlCgrU9 tV4kFgLGWn0IDyb30skIS3V46zxgYAxmNOSojMWdGVU5/nRhfdDF0JqPlFjcIUvP2s3l avn4JQ85UyVGGwkIyhv3C9CudUs3BZWfnF5dUIVut81SC7tAtPiYi43JgCo+VaP5/Yi8 fhoA== X-Gm-Message-State: ALoCoQnr0jqXy5B1lmXVoIYxIhq7N3kFPYe3i7IVO3rgwsj0uDsDx1n+cPwtC6u1nkwb0pFPTBj/ X-Received: by 10.205.10.200 with SMTP id pb8mr1676169bkb.16.1376741506698; Sat, 17 Aug 2013 05:11:46 -0700 (PDT) Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi. [88.195.111.91]) by mx.google.com with ESMTPSA id oe7sm252298bkb.5.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 17 Aug 2013 05:11:45 -0700 (PDT) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH v3 5/8] test: test notmuch count --output=files Date: Sat, 17 Aug 2013 15:11:30 +0300 Message-Id: <2576b5139263680f32ef3a090095bf0a9820c317.1376741447.git.jani@nikula.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: In-Reply-To: References: 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: Sat, 17 Aug 2013 12:12:15 -0000 Add tests for notmuch count --output=files option. --- test/count | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/count b/test/count index 05713fd..da86c8c 100755 --- a/test/count +++ b/test/count @@ -28,6 +28,16 @@ test_expect_equal \ "$((`notmuch search '*' | wc -l`))" \ "`notmuch count --output=threads '*'`" +test_begin_subtest "files count" +test_expect_equal \ + "$((`notmuch search --output=files '*' | wc -l`))" \ + "`notmuch count --output=files '*'`" + +test_begin_subtest "files count for a duplicate message-id" +test_expect_equal \ + "2" \ + "`notmuch count --output=files id:20091117232137.GA7669@griffis1.net`" + test_begin_subtest "count with no matching messages" test_expect_equal \ "0" \ -- 1.7.10.4