X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fextsearch.t;fp=t%2Fextsearch.t;h=1f62e80c8c1a2e7adcbcbbc3ff71d7506f5dee2d;hb=7a85c3cd6c7c0257a04343ca345cf0f23d71729c;hp=46a6f2ec5eb80b1f81a911486839c42cc5b0a654;hpb=cef5cda178a0e57c69ba19b6aed6b7eba1ee7594;p=public-inbox.git diff --git a/t/extsearch.t b/t/extsearch.t index 46a6f2ec..1f62e80c 100644 --- a/t/extsearch.t +++ b/t/extsearch.t @@ -411,4 +411,15 @@ if ('dedupe + dry-run') { '--dry-run alone fails'); } +for my $j (1, 3, 6) { + my $o = { 2 => \(my $err = '') }; + my $d = "$home/extindex-j$j"; + ok(run_script(['-extindex', "-j$j", '--all', $d], undef, $o), + "init with -j$j"); + my $max = $j - 2; + $max = 0 if $max < 0; + my @dirs = glob("$d/ei*/?"); + like($dirs[-1], qr!/ei[0-9]+/$max\z!, '-j works'); +} + done_testing;