From: David Bremner Date: Sun, 30 Sep 2018 16:27:54 +0000 (-0300) Subject: test: add two known broken tests searching for xapian keywords X-Git-Tag: archive/debian/0.29_rc0-1~120 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=168211c5632189c53415d25530b759ad3678c92c test: add two known broken tests searching for xapian keywords Thanks to plujon for pointing out this problem on IRC. The underlying issue is that the quotes are stripped before the field processors get the query string, and the heuristic for putting them back is not quite right. --- diff --git a/test/T650-regexp-query.sh b/test/T650-regexp-query.sh index 31b3d036..e792decf 100755 --- a/test/T650-regexp-query.sh +++ b/test/T650-regexp-query.sh @@ -77,6 +77,19 @@ test_expect_equal_file cworth.msg-ids OUTPUT test_begin_subtest "xapian wildcard search for subject:" test_expect_equal $(notmuch count 'subject:count*') 1 +add_message '[from]="and"' '[subject]="and-and-and"' +printf "id:$gen_msg_id\n" > EXPECTED + +test_begin_subtest "quoted xapian keyword search for from:" +test_subtest_known_broken +notmuch search --output=messages 'from:"and"' > OUTPUT +test_expect_equal_file EXPECTED OUTPUT + +test_begin_subtest "quoted xapian keyword search for subject:" +test_subtest_known_broken +notmuch search --output=messages 'subject:"and-and-and"' > OUTPUT +test_expect_equal_file EXPECTED OUTPUT + test_begin_subtest "regexp from search, case sensitive" notmuch search --output=messages from:/carl/ > OUTPUT test_expect_equal_file /dev/null OUTPUT