From b3f2f4645b1d849817d7b38d64db45cd640c9a94 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Wed, 2 Oct 2019 21:36:38 +0000 Subject: tests: recommend running create-certs.pl with $^X This is better than recommending running the script directly because it will ensure the correct version of perl is used. --- t/httpd-https.t | 2 +- t/nntpd-tls.t | 2 +- t/nntpd-validate.t | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/t/httpd-https.t b/t/httpd-https.t index 410ae658..22c62bf4 100644 --- a/t/httpd-https.t +++ b/t/httpd-https.t @@ -14,7 +14,7 @@ my $cert = 'certs/server-cert.pem'; my $key = 'certs/server-key.pem'; unless (-r $key && -r $cert) { plan skip_all => - "certs/ missing for $0, run ./create-certs.perl in certs/"; + "certs/ missing for $0, run $^X ./create-certs.perl in certs/"; } use_ok 'PublicInbox::TLS'; use_ok 'IO::Socket::SSL'; diff --git a/t/nntpd-tls.t b/t/nntpd-tls.t index e961965b..1a74924c 100644 --- a/t/nntpd-tls.t +++ b/t/nntpd-tls.t @@ -20,7 +20,7 @@ my $cert = 'certs/server-cert.pem'; my $key = 'certs/server-key.pem'; unless (-r $key && -r $cert) { plan skip_all => - "certs/ missing for $0, run ./create-certs.perl in certs/"; + "certs/ missing for $0, run $^X ./create-certs.perl in certs/"; } use_ok 'PublicInbox::TLS'; diff --git a/t/nntpd-validate.t b/t/nntpd-validate.t index 532ef729..87829b03 100644 --- a/t/nntpd-validate.t +++ b/t/nntpd-validate.t @@ -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}; -- cgit v1.2.3-24-ge0c7