test: add regression test for large number of deletions

Prior to 9ad19e4454 there was an unhandled Xapian exception when
reindexing after a large number of deletes.  This test was used for
bisection, and will subsequently serve as a regression test.
This commit is contained in:
David Bremner 2021-04-24 20:02:43 -03:00
parent 8cb30b08d8
commit f44c83c083

View file

@ -83,4 +83,11 @@ notmuch reindex '*'
notmuch search '*' | notmuch_search_sanitize > OUTPUT
test_expect_equal_file EXPECTED OUTPUT
test_begin_subtest "reindex after removing corpus"
tar cf backup.tar mail/cur
find mail/cur -type f -delete
test_expect_success "notmuch reindex '*'"
tar xf backup.tar
test_done