]> git.notmuchmail.org Git - notmuch/commitdiff
test: add regression test for large number of deletions
authorDavid Bremner <david@tethera.net>
Sat, 24 Apr 2021 23:02:43 +0000 (20:02 -0300)
committerDavid Bremner <david@tethera.net>
Sun, 23 May 2021 11:31:36 +0000 (08:31 -0300)
Prior to 9ad19e4454f 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.

test/T700-reindex.sh

index 52bba4d318df1fc4816f262d40ffba0ead779a96..bac43dc5e16df214dafb1d3a3698d0033bab741c 100755 (executable)
@@ -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