[notmuch] [PATCH] notmuch-test: add tests for counting within absolute time ranges and 'today'
Sebastian Spaeth
Sebastian at SSpaeth.de
Mon Feb 8 04:57:19 PST 2010
Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>
---
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 <<EOF
Notmuch test suite complete.
--
1.6.3.3
More information about the notmuch
mailing list