1 Return-Path: <jani@nikula.org>
\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 31E17421160
\r
6 for <notmuch@notmuchmail.org>; Sat, 17 Aug 2013 05:12:15 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"
\r
12 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
13 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id KQcn--1cIs2b for <notmuch@notmuchmail.org>;
\r
17 Sat, 17 Aug 2013 05:12:11 -0700 (PDT)
\r
18 Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com
\r
19 [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id EB617421162
\r
22 for <notmuch@notmuchmail.org>; Sat, 17 Aug 2013 05:11:47 -0700 (PDT)
\r
23 Received: by mail-bk0-f53.google.com with SMTP id d7so913680bkh.26
\r
24 for <notmuch@notmuchmail.org>; Sat, 17 Aug 2013 05:11:46 -0700 (PDT)
\r
25 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
26 d=google.com; s=20120113;
\r
27 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
\r
28 :references:in-reply-to:references;
\r
29 bh=Gyg9hUDzJEeykqW75EYZOBbST5BF8uVuoSznHbgA+XA=;
\r
30 b=BnGXVuXU9PmkPQyHLjuw9aMYEBXGloAj5llWh1A4eczVYNsJHmU2jsrFs/peadT+7S
\r
31 bUUb/S1FYhkCSihbRpS70F6dT7nIjPeHuz/JRvEGJDo3qPeNEH/XslxLO4BI+fAXEi0C
\r
32 0skyfjMQBNRY+GQkkjmesE/cOOUWloyWWqMTtTVLxl2uZEZG/Q6DiV8GMVg9IIlCgrU9
\r
33 tV4kFgLGWn0IDyb30skIS3V46zxgYAxmNOSojMWdGVU5/nRhfdDF0JqPlFjcIUvP2s3l
\r
34 avn4JQ85UyVGGwkIyhv3C9CudUs3BZWfnF5dUIVut81SC7tAtPiYi43JgCo+VaP5/Yi8
\r
37 ALoCoQnr0jqXy5B1lmXVoIYxIhq7N3kFPYe3i7IVO3rgwsj0uDsDx1n+cPwtC6u1nkwb0pFPTBj/
\r
38 X-Received: by 10.205.10.200 with SMTP id pb8mr1676169bkb.16.1376741506698;
\r
39 Sat, 17 Aug 2013 05:11:46 -0700 (PDT)
\r
40 Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi.
\r
42 by mx.google.com with ESMTPSA id oe7sm252298bkb.5.1969.12.31.16.00.00
\r
43 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
\r
44 Sat, 17 Aug 2013 05:11:45 -0700 (PDT)
\r
45 From: Jani Nikula <jani@nikula.org>
\r
46 To: notmuch@notmuchmail.org
\r
47 Subject: [PATCH v3 5/8] test: test notmuch count --output=files
\r
48 Date: Sat, 17 Aug 2013 15:11:30 +0300
\r
50 <2576b5139263680f32ef3a090095bf0a9820c317.1376741447.git.jani@nikula.org>
\r
51 X-Mailer: git-send-email 1.7.10.4
\r
52 In-Reply-To: <cover.1376741447.git.jani@nikula.org>
\r
53 References: <cover.1376741447.git.jani@nikula.org>
\r
54 In-Reply-To: <cover.1376741447.git.jani@nikula.org>
\r
55 References: <cover.1376741447.git.jani@nikula.org>
\r
56 X-BeenThere: notmuch@notmuchmail.org
\r
57 X-Mailman-Version: 2.1.13
\r
59 List-Id: "Use and development of the notmuch mail system."
\r
60 <notmuch.notmuchmail.org>
\r
61 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
62 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
63 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
64 List-Post: <mailto:notmuch@notmuchmail.org>
\r
65 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
66 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
67 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
68 X-List-Received-Date: Sat, 17 Aug 2013 12:12:15 -0000
\r
70 Add tests for notmuch count --output=files option.
\r
72 test/count | 10 ++++++++++
\r
73 1 file changed, 10 insertions(+)
\r
75 diff --git a/test/count b/test/count
\r
76 index 05713fd..da86c8c 100755
\r
79 @@ -28,6 +28,16 @@ test_expect_equal \
\r
80 "$((`notmuch search '*' | wc -l`))" \
\r
81 "`notmuch count --output=threads '*'`"
\r
83 +test_begin_subtest "files count"
\r
84 +test_expect_equal \
\r
85 + "$((`notmuch search --output=files '*' | wc -l`))" \
\r
86 + "`notmuch count --output=files '*'`"
\r
88 +test_begin_subtest "files count for a duplicate message-id"
\r
89 +test_expect_equal \
\r
91 + "`notmuch count --output=files id:20091117232137.GA7669@griffis1.net`"
\r
93 test_begin_subtest "count with no matching messages"
\r