1 Return-Path: <Sebastian@SSpaeth.de>
\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 D6083431FBC
\r
6 for <notmuch@notmuchmail.org>; Mon, 8 Feb 2010 04:57:31 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.604 tagged_above=-999 required=5
\r
12 tests=[AWL=-0.605, BAYES_50=0.001] autolearn=ham
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id wH-0ix1xjwaN for <notmuch@notmuchmail.org>;
\r
16 Mon, 8 Feb 2010 04:57:31 -0800 (PST)
\r
17 Received: from homiemail-a22.g.dreamhost.com (caiajhbdcahe.dreamhost.com
\r
19 by olra.theworths.org (Postfix) with ESMTP id 05210431FAE
\r
20 for <notmuch@notmuchmail.org>; Mon, 8 Feb 2010 04:57:30 -0800 (PST)
\r
21 Received: from localhost.localdomain (mtec-hg-docking-1-dhcp-204.ethz.ch
\r
23 by homiemail-a22.g.dreamhost.com (Postfix) with ESMTPA id D0F121A8069;
\r
24 Mon, 8 Feb 2010 04:57:29 -0800 (PST)
\r
25 From: Sebastian Spaeth <Sebastian@SSpaeth.de>
\r
26 To: notmuch@notmuchmail.org
\r
27 Date: Mon, 8 Feb 2010 13:57:19 +0100
\r
28 Message-Id: <1265633839-31510-1-git-send-email-Sebastian@SSpaeth.de>
\r
29 X-Mailer: git-send-email 1.6.3.3
\r
30 In-Reply-To: <1265627652-25912-4-git-send-email-Sebastian@SSpaeth.de>
\r
31 References: <1265627652-25912-4-git-send-email-Sebastian@SSpaeth.de>
\r
32 Subject: [notmuch] [PATCH] notmuch-test: add tests for counting within
\r
33 absolute time ranges and 'today'
\r
34 X-BeenThere: notmuch@notmuchmail.org
\r
35 X-Mailman-Version: 2.1.13
\r
37 List-Id: "Use and development of the notmuch mail system."
\r
38 <notmuch.notmuchmail.org>
\r
39 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
40 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
41 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
42 List-Post: <mailto:notmuch@notmuchmail.org>
\r
43 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
44 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
45 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
46 X-List-Received-Date: Mon, 08 Feb 2010 12:57:32 -0000
\r
48 Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
\r
50 test/notmuch-test | 13 +++++++++++++
\r
51 1 files changed, 13 insertions(+), 0 deletions(-)
\r
53 diff --git a/test/notmuch-test b/test/notmuch-test
\r
54 index 2e5eb24..adc9f24 100755
\r
55 --- a/test/notmuch-test
\r
56 +++ b/test/notmuch-test
\r
57 @@ -534,6 +534,19 @@ printf " Restore with nothing to do...\t"
\r
58 $NOTMUCH restore dump.expected
\r
61 +# Test daterange with absolute month---------------------------------------
\r
62 +printf "\nTesting \"notmuch count\" in several variations:\n"
\r
63 +printf " absolute date range..."
\r
64 +#Find all messages from January 2010
\r
65 +execute_expecting "count date:2010-01..01" "8"
\r
67 +# Test daterange with today keyword-----------------------------------------
\r
68 +printf " 'today' date range..."
\r
70 +add_message '[date]="${TODAY}"'
\r
71 +execute_expecting "count date:today..today" "1"
\r
72 +# End Test daterange parser-------------------------------------------------
\r
75 Notmuch test suite complete.
\r