From d48bc327fcc36e918227b11b43b8b019db2e5350 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Wed, 5 Dec 2012 23:23:22 +0200 Subject: [PATCH] Re: [PATCH 1/3] test: fix count test --- a4/def79e937ca2967a6d1d798456ddce7b12122c | 100 ++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 a4/def79e937ca2967a6d1d798456ddce7b12122c diff --git a/a4/def79e937ca2967a6d1d798456ddce7b12122c b/a4/def79e937ca2967a6d1d798456ddce7b12122c new file mode 100644 index 000000000..2daf4b36b --- /dev/null +++ b/a4/def79e937ca2967a6d1d798456ddce7b12122c @@ -0,0 +1,100 @@ +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 0410C431FB6 + for ; Wed, 5 Dec 2012 13:23:31 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +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 yfQReYUDb7La for ; + Wed, 5 Dec 2012 13:23:30 -0800 (PST) +Received: from mail-la0-f53.google.com (mail-la0-f53.google.com + [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 47244431FAE + for ; Wed, 5 Dec 2012 13:23:30 -0800 (PST) +Received: by mail-la0-f53.google.com with SMTP id w12so4837195lag.26 + for ; Wed, 05 Dec 2012 13:23:27 -0800 (PST) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=google.com; s=20120113; + h=from:to:subject:in-reply-to:references:user-agent:date:message-id + :mime-version:content-type:x-gm-message-state; + bh=UkPpx8G9qOddLZ3p1IsJ6Mg8HpGwzSiIeqd8GJ8x29s=; + b=TjUjJqwfZUKcQfbeeccIGctjvxayGhsueh+Gvd0dTrhaDjiBNMGkTRjmIC0ZBXO1Lr + Ny7BEPImiWf+fUB8IU0XgoWSnjxiJYZw3yeO1Gif0unHhgvhyo7w2LwrbxgGp9l2fg37 + g37HJ2+Z5MXNd0688YpueKYDdINZ14hgQi87gL6gMLZhYnqQIUrkbtTv+jjHdWKT+nEw + iAfuequYOw6Km+UtKxCZQaoUXxjaJ6cZI5c6hWC+aGvZKJWQJKYdeDDnjxf9kO8GP2bC + b4TbsV/0wEE0rk9QkdRkaHSI3Fitv1LWcYeHXGnieXaeWBlws2N5/wcUt1ZvdaWVCCSz + ycYA== +Received: by 10.112.39.73 with SMTP id n9mr8215085lbk.114.1354742605935; + Wed, 05 Dec 2012 13:23:25 -0800 (PST) +Received: from localhost (dsl-hkibrasgw4-fe51df00-27.dhcp.inet.fi. + [80.223.81.27]) + by mx.google.com with ESMTPS id oz12sm2603563lab.17.2012.12.05.13.23.23 + (version=SSLv3 cipher=OTHER); Wed, 05 Dec 2012 13:23:24 -0800 (PST) +From: Jani Nikula +To: Michal Nazarewicz , notmuch@notmuchmail.org +Subject: Re: [PATCH 1/3] test: fix count test +In-Reply-To: +References: + <0ca075ab5fb0d886d0235c1f0549db8b0b14c9b5.1354656085.git.jani@nikula.org> + <877gowudoz.fsf@nikula.org> + +User-Agent: Notmuch/0.14+140~gbe5119e (http://notmuchmail.org) Emacs/23.4.1 + (i686-pc-linux-gnu) +Date: Wed, 05 Dec 2012 23:23:22 +0200 +Message-ID: <87r4n4chx1.fsf@nikula.org> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +X-Gm-Message-State: + ALoCoQkxGNzjKf0F++wXuwvrt5tgC/Goh+tny3mpez9Pc16gA5nqAlvKEyPP3mr4ABR9cIFAMASE +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: Wed, 05 Dec 2012 21:23:31 -0000 + +On Wed, 05 Dec 2012, Michal Nazarewicz wrote: +> Hmm, I thought I've already replied to this email, but it still sticks +> as unread. In case I did, sorry for duplicate. +> +> On Wed, Dec 05 2012, Jani Nikula wrote: +>> Please try this patch, which should pass if everything were all right: +>> +>> diff --git a/test/count b/test/count +>> index 300b171..ecae40e 100755 +>> --- a/test/count +>> +++ b/test/count +>> @@ -6,6 +6,11 @@ add_email_corpus +>> +>> SEARCH="\"*\"" +>> +>> +test_begin_subtest "check the query" +>> +test_expect_equal \ +>> + "`notmuch count ${SEARCH}`" \ +>> + "`notmuch count '*'`" +>> + +>> test_begin_subtest "message count is the default for notmuch count" +>> test_expect_equal \ +>> "`notmuch search --output=messages ${SEARCH} | wc -l`" \ +> +> Yeah, you're right, sorry for the commotion. + +No worries. I wrote the test originally, and I thought it was all right +too... + +Jani. -- 2.26.2