]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/nntpd-validate.t
config: support "inboxdir" in addition to "mainrepo"
[public-inbox.git] / t / nntpd-validate.t
index 532ef7293320a1e86412944f31d92e2cb98d45f0..de0243946497a88976b7843476c62d28ee6d4644 100644 (file)
@@ -32,7 +32,7 @@ my $test_tls = $ENV{TEST_SKIP_TLS} ? 0 : eval { require IO::Socket::SSL };
 my $cert = 'certs/server-cert.pem';
 my $key = 'certs/server-key.pem';
 if ($test_tls && !-r $key || !-r $cert) {
-       plan skip_all => "certs/ missing for $0, run ./certs/create-certs.perl";
+       plan skip_all => "certs/ missing for $0, run $^X ./certs/create-certs.perl";
 }
 require './t/common.perl';
 my $keep_tmp = !!$ENV{TEST_KEEP_TMP};
@@ -147,7 +147,7 @@ done_testing();
 sub make_local_server {
        require PublicInbox::Inbox;
        $group = 'inbox.test.perf.nntpd';
-       my $ibx = { mainrepo => $inbox_dir, newsgroup => $group };
+       my $ibx = { inboxdir => $inbox_dir, newsgroup => $group };
        $ibx = PublicInbox::Inbox->new($ibx);
        my $nntpd = 'blib/script/public-inbox-nntpd';
        my $pi_config = "$tmpdir/config";
@@ -156,7 +156,7 @@ sub make_local_server {
                print $fh <<"" or die "print $pi_config: $!";
 [publicinbox "test"]
        newsgroup = $group
-       mainrepo = $inbox_dir
+       inboxdir = $inbox_dir
        address = test\@example.com
 
                close $fh or die "close($pi_config): $!";