From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D6083431FBC for ; Mon, 8 Feb 2010 04:57:31 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.604 X-Spam-Level: X-Spam-Status: No, score=-0.604 tagged_above=-999 required=5 tests=[AWL=-0.605, BAYES_50=0.001] autolearn=ham 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 wH-0ix1xjwaN for ; Mon, 8 Feb 2010 04:57:31 -0800 (PST) Received: from homiemail-a22.g.dreamhost.com (caiajhbdcahe.dreamhost.com [208.97.132.74]) by olra.theworths.org (Postfix) with ESMTP id 05210431FAE for ; Mon, 8 Feb 2010 04:57:30 -0800 (PST) Received: from localhost.localdomain (mtec-hg-docking-1-dhcp-204.ethz.ch [129.132.133.204]) by homiemail-a22.g.dreamhost.com (Postfix) with ESMTPA id D0F121A8069; Mon, 8 Feb 2010 04:57:29 -0800 (PST) From: Sebastian Spaeth To: notmuch@notmuchmail.org Date: Mon, 8 Feb 2010 13:57:19 +0100 Message-Id: <1265633839-31510-1-git-send-email-Sebastian@SSpaeth.de> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1265627652-25912-4-git-send-email-Sebastian@SSpaeth.de> References: <1265627652-25912-4-git-send-email-Sebastian@SSpaeth.de> Subject: [PATCH] notmuch-test: add tests for counting within absolute time ranges and 'today' 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: Mon, 08 Feb 2010 12:57:32 -0000 Signed-off-by: Sebastian Spaeth --- test/notmuch-test | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/test/notmuch-test b/test/notmuch-test index 2e5eb24..adc9f24 100755 --- a/test/notmuch-test +++ b/test/notmuch-test @@ -534,6 +534,19 @@ printf " Restore with nothing to do...\t" $NOTMUCH restore dump.expected echo " PASS" +# Test daterange with absolute month--------------------------------------- +printf "\nTesting \"notmuch count\" in several variations:\n" +printf " absolute date range..." +#Find all messages from January 2010 +execute_expecting "count date:2010-01..01" "8" + +# Test daterange with today keyword----------------------------------------- +printf " 'today' date range..." +TODAY=`date -R` +add_message '[date]="${TODAY}"' +execute_expecting "count date:today..today" "1" +# End Test daterange parser------------------------------------------------- + cat <