--- /dev/null
+Return-Path: <jani@nikula.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id A3105431FBD\r
+ for <notmuch@notmuchmail.org>; Mon, 13 May 2013 11:27:27 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id GhIpbMG3ge7k for <notmuch@notmuchmail.org>;\r
+ Mon, 13 May 2013 11:27:23 -0700 (PDT)\r
+Received: from mail-la0-f46.google.com (mail-la0-f46.google.com\r
+ [209.85.215.46]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 9D140431FCB\r
+ for <notmuch@notmuchmail.org>; Mon, 13 May 2013 11:27:18 -0700 (PDT)\r
+Received: by mail-la0-f46.google.com with SMTP id fk20so6369627lab.5\r
+ for <notmuch@notmuchmail.org>; Mon, 13 May 2013 11:27:17 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=google.com; s=20120113;\r
+ h=x-received:from:to:subject:date:message-id:x-mailer:in-reply-to\r
+ :references:in-reply-to:references:x-gm-message-state;\r
+ bh=b7qFPTVmDcYsc5kFkj73erswYlfyc2vtX4m1bFU8D1c=;\r
+ b=QCwN0YuWSaqIsjTkLINLXaNP+nmQUg5FLGz12NTwt3RLyfAIUHlw4W73ZQSo/2AlV/\r
+ rBCjpM8QZbGkVtcVIbom60No/vC57OS2ma4/kz9xbaiaLcXrveZuoh3V9S1zRjYw5xGC\r
+ uy0BsUUwsmrCrEsTI9ACxOhCUfTbZ6Gmou6pHmTs9efQpJvVcU8In5rPLftogXOYF9w2\r
+ sKMExko9yGQNLKJX7gjnkdPlXA1i/Vlo1LfnjKDcCZerQB2MDAdOJ70tARNJFN+DBPQp\r
+ TqX5zov3HTVHUrvp0L9el2+0SwPyJaF8wTQXEgqi8fDWTxF+rHirEwgQIII/cKDwid20\r
+ u9/g==\r
+X-Received: by 10.112.157.129 with SMTP id wm1mr13561014lbb.69.1368469637144; \r
+ Mon, 13 May 2013 11:27:17 -0700 (PDT)\r
+Received: from localhost (dsl-hkibrasgw2-58c376-211.dhcp.inet.fi.\r
+ [88.195.118.211])\r
+ by mx.google.com with ESMTPSA id lb9sm6237507lab.9.2013.05.13.11.27.15\r
+ for <notmuch@notmuchmail.org>\r
+ (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+ Mon, 13 May 2013 11:27:16 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 5/6] test: test notmuch count --output=files\r
+Date: Mon, 13 May 2013 21:27:00 +0300\r
+Message-Id:\r
+ <a6eb465c15105dd25c0e7300a75bcd250d2bc6b5.1368467532.git.jani@nikula.org>\r
+X-Mailer: git-send-email 1.7.10.4\r
+In-Reply-To: <cover.1368467532.git.jani@nikula.org>\r
+References: <cover.1368467532.git.jani@nikula.org>\r
+In-Reply-To: <cover.1368467532.git.jani@nikula.org>\r
+References: <cover.1368467532.git.jani@nikula.org>\r
+X-Gm-Message-State:\r
+ ALoCoQliRewJIsNIQTFjTnbaTDOQ53juUVHRl4sFOt8bYZzod9tLXvXwBF24dSQ2qgo6ID+WkC/j\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 13 May 2013 18:27:28 -0000\r
+\r
+---\r
+ test/count | 10 ++++++++++\r
+ 1 file changed, 10 insertions(+)\r
+\r
+diff --git a/test/count b/test/count\r
+index 05713fd..da86c8c 100755\r
+--- a/test/count\r
++++ b/test/count\r
+@@ -28,6 +28,16 @@ test_expect_equal \\r
+ "$((`notmuch search '*' | wc -l`))" \\r
+ "`notmuch count --output=threads '*'`"\r
+ \r
++test_begin_subtest "files count"\r
++test_expect_equal \\r
++ "$((`notmuch search --output=files '*' | wc -l`))" \\r
++ "`notmuch count --output=files '*'`"\r
++\r
++test_begin_subtest "files count for a duplicate message-id"\r
++test_expect_equal \\r
++ "2" \\r
++ "`notmuch count --output=files id:20091117232137.GA7669@griffis1.net`"\r
++\r
+ test_begin_subtest "count with no matching messages"\r
+ test_expect_equal \\r
+ "0" \\r
+-- \r
+1.7.10.4\r
+\r