[PATCH v3 5/8] test: test notmuch count --output=files
authorJani Nikula <jani@nikula.org>
Sat, 17 Aug 2013 12:11:30 +0000 (15:11 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:56:22 +0000 (09:56 -0800)
ee/90e27ee97a38241872f292a121985e33477246 [new file with mode: 0644]

diff --git a/ee/90e27ee97a38241872f292a121985e33477246 b/ee/90e27ee97a38241872f292a121985e33477246
new file mode 100644 (file)
index 0000000..9aedb92
--- /dev/null
@@ -0,0 +1,98 @@
+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 31E17421160\r
+       for <notmuch@notmuchmail.org>; Sat, 17 Aug 2013 05:12:15 -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 KQcn--1cIs2b for <notmuch@notmuchmail.org>;\r
+       Sat, 17 Aug 2013 05:12:11 -0700 (PDT)\r
+Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com\r
+       [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id EB617421162\r
+       for <notmuch@notmuchmail.org>; Sat, 17 Aug 2013 05:11:47 -0700 (PDT)\r
+Received: by mail-bk0-f53.google.com with SMTP id d7so913680bkh.26\r
+       for <notmuch@notmuchmail.org>; Sat, 17 Aug 2013 05:11:46 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=google.com; s=20120113;\r
+       h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\r
+       :references:in-reply-to:references;\r
+       bh=Gyg9hUDzJEeykqW75EYZOBbST5BF8uVuoSznHbgA+XA=;\r
+       b=BnGXVuXU9PmkPQyHLjuw9aMYEBXGloAj5llWh1A4eczVYNsJHmU2jsrFs/peadT+7S\r
+       bUUb/S1FYhkCSihbRpS70F6dT7nIjPeHuz/JRvEGJDo3qPeNEH/XslxLO4BI+fAXEi0C\r
+       0skyfjMQBNRY+GQkkjmesE/cOOUWloyWWqMTtTVLxl2uZEZG/Q6DiV8GMVg9IIlCgrU9\r
+       tV4kFgLGWn0IDyb30skIS3V46zxgYAxmNOSojMWdGVU5/nRhfdDF0JqPlFjcIUvP2s3l\r
+       avn4JQ85UyVGGwkIyhv3C9CudUs3BZWfnF5dUIVut81SC7tAtPiYi43JgCo+VaP5/Yi8\r
+       fhoA==\r
+X-Gm-Message-State:\r
+ ALoCoQnr0jqXy5B1lmXVoIYxIhq7N3kFPYe3i7IVO3rgwsj0uDsDx1n+cPwtC6u1nkwb0pFPTBj/\r
+X-Received: by 10.205.10.200 with SMTP id pb8mr1676169bkb.16.1376741506698;\r
+       Sat, 17 Aug 2013 05:11:46 -0700 (PDT)\r
+Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi.\r
+       [88.195.111.91])\r
+       by mx.google.com with ESMTPSA id oe7sm252298bkb.5.1969.12.31.16.00.00\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Sat, 17 Aug 2013 05:11:45 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v3 5/8] test: test notmuch count --output=files\r
+Date: Sat, 17 Aug 2013 15:11:30 +0300\r
+Message-Id:\r
+ <2576b5139263680f32ef3a090095bf0a9820c317.1376741447.git.jani@nikula.org>\r
+X-Mailer: git-send-email 1.7.10.4\r
+In-Reply-To: <cover.1376741447.git.jani@nikula.org>\r
+References: <cover.1376741447.git.jani@nikula.org>\r
+In-Reply-To: <cover.1376741447.git.jani@nikula.org>\r
+References: <cover.1376741447.git.jani@nikula.org>\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: Sat, 17 Aug 2013 12:12:15 -0000\r
+\r
+Add tests for notmuch count --output=files option.\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