mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
test: mark thread subqueries broken without field processors
Currently these tests just fail when notmuch is built against Xapian 1.2.x
This commit is contained in:
parent
052b4d43c0
commit
c6ba5522a5
1 changed files with 12 additions and 0 deletions
|
@ -14,6 +14,9 @@ count=$(notmuch count from:keithp and to:keithp)
|
||||||
test_expect_equal 0 "$count"
|
test_expect_equal 0 "$count"
|
||||||
|
|
||||||
test_begin_subtest "Same query against threads"
|
test_begin_subtest "Same query against threads"
|
||||||
|
if [ $NOTMUCH_HAVE_XAPIAN_FIELD_PROCESSOR -eq 0 ]; then
|
||||||
|
test_subtest_known_broken
|
||||||
|
fi
|
||||||
notmuch search thread:{from:keithp} and thread:{to:keithp} | notmuch_search_sanitize > OUTPUT
|
notmuch search thread:{from:keithp} and thread:{to:keithp} | notmuch_search_sanitize > OUTPUT
|
||||||
cat<<EOF > EXPECTED
|
cat<<EOF > EXPECTED
|
||||||
thread:XXX 2009-11-18 [7/7] Lars Kellogg-Stedman, Mikhail Gusarov, Keith Packard, Carl Worth; [notmuch] Working with Maildir storage? (inbox signed unread)
|
thread:XXX 2009-11-18 [7/7] Lars Kellogg-Stedman, Mikhail Gusarov, Keith Packard, Carl Worth; [notmuch] Working with Maildir storage? (inbox signed unread)
|
||||||
|
@ -21,6 +24,9 @@ EOF
|
||||||
test_expect_equal_file EXPECTED OUTPUT
|
test_expect_equal_file EXPECTED OUTPUT
|
||||||
|
|
||||||
test_begin_subtest "Mix thread and non-threads query"
|
test_begin_subtest "Mix thread and non-threads query"
|
||||||
|
if [ $NOTMUCH_HAVE_XAPIAN_FIELD_PROCESSOR -eq 0 ]; then
|
||||||
|
test_subtest_known_broken
|
||||||
|
fi
|
||||||
notmuch search thread:{from:keithp} and to:keithp | notmuch_search_sanitize > OUTPUT
|
notmuch search thread:{from:keithp} and to:keithp | notmuch_search_sanitize > OUTPUT
|
||||||
cat<<EOF > EXPECTED
|
cat<<EOF > EXPECTED
|
||||||
thread:XXX 2009-11-18 [1/7] Lars Kellogg-Stedman| Mikhail Gusarov, Keith Packard, Carl Worth; [notmuch] Working with Maildir storage? (inbox signed unread)
|
thread:XXX 2009-11-18 [1/7] Lars Kellogg-Stedman| Mikhail Gusarov, Keith Packard, Carl Worth; [notmuch] Working with Maildir storage? (inbox signed unread)
|
||||||
|
@ -28,6 +34,9 @@ EOF
|
||||||
test_expect_equal_file EXPECTED OUTPUT
|
test_expect_equal_file EXPECTED OUTPUT
|
||||||
|
|
||||||
test_begin_subtest "Compound subquery"
|
test_begin_subtest "Compound subquery"
|
||||||
|
if [ $NOTMUCH_HAVE_XAPIAN_FIELD_PROCESSOR -eq 0 ]; then
|
||||||
|
test_subtest_known_broken
|
||||||
|
fi
|
||||||
notmuch search 'thread:"{from:keithp and date:2009}" and thread:{to:keithp}' | notmuch_search_sanitize > OUTPUT
|
notmuch search 'thread:"{from:keithp and date:2009}" and thread:{to:keithp}' | notmuch_search_sanitize > OUTPUT
|
||||||
cat<<EOF > EXPECTED
|
cat<<EOF > EXPECTED
|
||||||
thread:XXX 2009-11-18 [7/7] Lars Kellogg-Stedman, Mikhail Gusarov, Keith Packard, Carl Worth; [notmuch] Working with Maildir storage? (inbox signed unread)
|
thread:XXX 2009-11-18 [7/7] Lars Kellogg-Stedman, Mikhail Gusarov, Keith Packard, Carl Worth; [notmuch] Working with Maildir storage? (inbox signed unread)
|
||||||
|
@ -35,6 +44,9 @@ EOF
|
||||||
test_expect_equal_file EXPECTED OUTPUT
|
test_expect_equal_file EXPECTED OUTPUT
|
||||||
|
|
||||||
test_begin_subtest "Syntax/quoting error in subquery"
|
test_begin_subtest "Syntax/quoting error in subquery"
|
||||||
|
if [ $NOTMUCH_HAVE_XAPIAN_FIELD_PROCESSOR -eq 0 ]; then
|
||||||
|
test_subtest_known_broken
|
||||||
|
fi
|
||||||
notmuch search 'thread:{from:keithp and date:2009} and thread:{to:keithp}' 1>OUTPUT 2>&1
|
notmuch search 'thread:{from:keithp and date:2009} and thread:{to:keithp}' 1>OUTPUT 2>&1
|
||||||
cat<<EOF > EXPECTED
|
cat<<EOF > EXPECTED
|
||||||
notmuch search: A Xapian exception occurred
|
notmuch search: A Xapian exception occurred
|
||||||
|
|
Loading…
Reference in a new issue