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 A3105431FBD for ; Mon, 13 May 2013 11:27:27 -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 GhIpbMG3ge7k for ; Mon, 13 May 2013 11:27:23 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com [209.85.215.46]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 9D140431FCB for ; Mon, 13 May 2013 11:27:18 -0700 (PDT) Received: by mail-la0-f46.google.com with SMTP id fk20so6369627lab.5 for ; Mon, 13 May 2013 11:27:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references:x-gm-message-state; bh=b7qFPTVmDcYsc5kFkj73erswYlfyc2vtX4m1bFU8D1c=; b=QCwN0YuWSaqIsjTkLINLXaNP+nmQUg5FLGz12NTwt3RLyfAIUHlw4W73ZQSo/2AlV/ rBCjpM8QZbGkVtcVIbom60No/vC57OS2ma4/kz9xbaiaLcXrveZuoh3V9S1zRjYw5xGC uy0BsUUwsmrCrEsTI9ACxOhCUfTbZ6Gmou6pHmTs9efQpJvVcU8In5rPLftogXOYF9w2 sKMExko9yGQNLKJX7gjnkdPlXA1i/Vlo1LfnjKDcCZerQB2MDAdOJ70tARNJFN+DBPQp TqX5zov3HTVHUrvp0L9el2+0SwPyJaF8wTQXEgqi8fDWTxF+rHirEwgQIII/cKDwid20 u9/g== X-Received: by 10.112.157.129 with SMTP id wm1mr13561014lbb.69.1368469637144; Mon, 13 May 2013 11:27:17 -0700 (PDT) Received: from localhost (dsl-hkibrasgw2-58c376-211.dhcp.inet.fi. [88.195.118.211]) by mx.google.com with ESMTPSA id lb9sm6237507lab.9.2013.05.13.11.27.15 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 13 May 2013 11:27:16 -0700 (PDT) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH 5/6] test: test notmuch count --output=files Date: Mon, 13 May 2013 21:27:00 +0300 Message-Id: X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQliRewJIsNIQTFjTnbaTDOQ53juUVHRl4sFOt8bYZzod9tLXvXwBF24dSQ2qgo6ID+WkC/j 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: Mon, 13 May 2013 18:27:28 -0000 --- 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