From: Jani Nikula Date: Sun, 9 Jun 2013 11:03:11 +0000 (+0300) Subject: [PATCH v2 5/7] test: test notmuch count --output=files X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6b72705a0b6127393bb9325ce3c1c982f3c27937;p=notmuch-archives.git [PATCH v2 5/7] test: test notmuch count --output=files --- diff --git a/57/bfdb83e7675f428f63f018f7b4122e0b90443e b/57/bfdb83e7675f428f63f018f7b4122e0b90443e new file mode 100644 index 000000000..da1da036d --- /dev/null +++ b/57/bfdb83e7675f428f63f018f7b4122e0b90443e @@ -0,0 +1,98 @@ +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 2BC2B429E28 + for ; Sun, 9 Jun 2013 04:04:09 -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 kt2teqWouZMv for ; + Sun, 9 Jun 2013 04:04:01 -0700 (PDT) +Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com + [209.85.217.177]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 24325431FAE + for ; Sun, 9 Jun 2013 04:03:40 -0700 (PDT) +Received: by mail-lb0-f177.google.com with SMTP id 10so4963573lbf.8 + for ; Sun, 09 Jun 2013 04:03:38 -0700 (PDT) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=google.com; s=20120113; + h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references + :in-reply-to:references:x-gm-message-state; + bh=b7qFPTVmDcYsc5kFkj73erswYlfyc2vtX4m1bFU8D1c=; + b=msJ/i1Max4851xVhbNt4NStNHSO30GuadSnlcPOy/E5WdXTZKW6SFVBJyCs4p6L0rL + HD95QKOwEMGAVqsnZC2F5Cypug5pmNLAmstWOxnRPmtXhHgfjdyuc7oL3KeqL4SdqfI4 + IRiUT0dJ7oMXzXmJgaxpJU2W7Rv/ANHXcbFepH9MvlTXJmrO/f1giZsW8kc3QUGbCQFK + uJAxs5VVQibPfEYx2XsbjeuCtWSlp5juhrG4SMBe7id6IvGh/6vf+xb3MFHD4ZNgr/dh + I+BOXCwTo4g4HkIKUYvMv/Igk6igKXAPK8/93OLzWRalUkQ8feHSPAAJieO+NDwTyMUX + g5SA== +X-Received: by 10.152.88.105 with SMTP id bf9mr1173817lab.38.1370775818658; + Sun, 09 Jun 2013 04:03:38 -0700 (PDT) +Received: from localhost (dsl-hkibrasgw2-58c376-211.dhcp.inet.fi. + [88.195.118.211]) + by mx.google.com with ESMTPSA id w9sm2080603lbk.7.2013.06.09.04.03.36 + for + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Sun, 09 Jun 2013 04:03:37 -0700 (PDT) +From: Jani Nikula +To: notmuch@notmuchmail.org +Subject: [PATCH v2 5/7] test: test notmuch count --output=files +Date: Sun, 9 Jun 2013 14:03:11 +0300 +Message-Id: + <9da399e33dc5cde22aabd3015dfd36dc98f67f45.1370775663.git.jani@nikula.org> +X-Mailer: git-send-email 1.7.10.4 +In-Reply-To: +References: +In-Reply-To: +References: +X-Gm-Message-State: + ALoCoQkITjr2+5swj292oezlf+pmQxbJt93bo+ri3pdd3E/4x7SQ+2d/K/PostQqK6PCULHpR4wS +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: Sun, 09 Jun 2013 11:04:09 -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 +