]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/extsearch.t
extindex: support --reindex --fast
[public-inbox.git] / t / extsearch.t
index ca586f61c29f5ecab581d56a1dc7a1bdb71e51c5..896e270414bd8eff0e909fe2fbdacf291bec33cf 100644 (file)
@@ -336,6 +336,11 @@ if ('reindex catches missed messages') {
        $es->{xdb}->reopen;
        $mset = $es->mset("mid:$new->{mid}");
        is($mset->size, 0, 'stale mid gone Xapian');
+
+       ok(run_script([qw(-extindex --reindex --all --fast), "$home/extindex"],
+                       undef, $opt), '--reindex w/ --fast');
+       ok(!run_script([qw(-extindex --all --fast), "$home/extindex"],
+                       undef, $opt), '--fast alone makes no sense');
 }
 
 if ('reindex catches content bifurcation') {