+
+ $res = $cb->(GET('/all/_/text/config/'));
+ is($res->code, 200, '/text/config HTML');
+ $res = $cb->(GET('/all/_/text/config/raw'));
+ is($res->code, 200, '/text/config raw');
+ my $f = "$tmpdir/extindex.config";
+ open my $fh, '>', $f or xbail $!;
+ print $fh $res->content or xbail $!;
+ close $fh or xbail $!;
+ my $cfg = PublicInbox::Config->git_config_dump($f);
+ is($?, 0, 'no errors from git-config parsing');
+ ok($cfg->{'extindex.all.topdir'}, 'extindex.topdir defined');
+
+ $res = $cb->(GET('/all/all.mbox.gz'));
+ is($res->code, 200, 'all.mbox.gz');
+
+ $res = $cb->(GET('/'));
+ like($res->content, qr!\Qhttp://bogus.example.com/all\E!,
+ '/all listed');
+ $res = $cb->(GET('/?q='));
+ is($res->code, 200, 'no query means all inboxes');
+ $res = $cb->(GET('/?q=nonexistent'));
+ is($res->code, 404, 'no inboxes matched');
+ unlike($res->content, qr!no inboxes, yet!,
+ 'we have inboxes, just no matches');
+
+ my $m = {};
+ for my $pfx (qw(/t1 /t2), '') {
+ $res = $cb->(GET($pfx.'/manifest.js.gz'));
+ gunzip(\($res->content) => \(my $js));
+ $m->{$pfx} = json_utf8->decode($js);
+ }
+ is_deeply([sort keys %{$m->{''}}],
+ [ sort(keys %{$m->{'/t1'}}, keys %{$m->{'/t2'}}) ],
+ 't1 + t2 = all');
+ is_deeply([ sort keys %{$m->{'/t2'}} ], [ '/t2/git/0.git' ],
+ 't2 manifest');
+ is_deeply([ sort keys %{$m->{'/t1'}} ], [ '/t1' ],
+ 't2 manifest');