blob 18a47b114fa992abf91a296f835672f19ae27ef5 1293 bytes (raw)
name: test/T500-search-date.sh # note: path name is non-authoritative(*)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| | #!/usr/bin/env bash
test_description="date:since..until queries"
. ./test-lib.sh
add_email_corpus
test_begin_subtest "Absolute date range"
output=$(notmuch search date:2010-12-16..12/16/2010 | notmuch_search_sanitize)
test_expect_equal "$output" "thread:XXX 2010-12-16 [1/1] Olivier Berger; Essai accentué (inbox unread)"
test_begin_subtest "Absolute date range with 'same' operator"
output=$(notmuch search date:2010-12-16..! | notmuch_search_sanitize)
test_expect_equal "$output" "thread:XXX 2010-12-16 [1/1] Olivier Berger; Essai accentué (inbox unread)"
test_begin_subtest "Absolute time range with TZ"
notmuch search date:18-Nov-2009_02:19:26-0800..2009-11-18_04:49:52-06:00 | notmuch_search_sanitize > OUTPUT
cat <<EOF >EXPECTED
thread:XXX 2009-11-18 [1/3] Carl Worth| Jan Janak; [notmuch] What a great idea! (inbox unread)
thread:XXX 2009-11-18 [1/2] Carl Worth| Jan Janak; [notmuch] [PATCH] Older versions of install do not support -C. (inbox unread)
thread:XXX 2009-11-18 [1/3] Carl Worth| Aron Griffis, Keith Packard; [notmuch] archive (inbox unread)
thread:XXX 2009-11-18 [1/2] Carl Worth| Keith Packard; [notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags (inbox unread)
EOF
test_expect_equal_file OUTPUT EXPECTED
test_done
|
debug log:
solving 18a47b114fa9 ...
found 18a47b114fa9 in https://yhetil.org/notmuch/1425732959-2282-1-git-send-email-jani@nikula.org/
found 70bcf344b4f7 in https://yhetil.org/notmuch.git/
preparing index
index prepared:
100755 70bcf344b4f76db35d9c1ccc13177018eb6b0287 test/T500-search-date.sh
applying [1/1] https://yhetil.org/notmuch/1425732959-2282-1-git-send-email-jani@nikula.org/
diff --git a/test/T500-search-date.sh b/test/T500-search-date.sh
index 70bcf344b4f7..18a47b114fa9 100755
Checking patch test/T500-search-date.sh...
Applied patch test/T500-search-date.sh cleanly.
index at:
100755 18a47b114fa992abf91a296f835672f19ae27ef5 test/T500-search-date.sh
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).