Skip to content

Commit

Permalink
Use Test::Needs to load Test::Script
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Sep 25, 2024
1 parent 35022f0 commit 7befdb7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ if(!-w $tmpdir) {
exit(0);
}

my $distargs = {
my $dist = {
COMPRESS => 'gzip -9f',
SUFFIX => 'gz'
};

if($^O eq 'darwin') {
$distargs->{'TAR'} = 'gtar';
$dist->{'TAR'} = 'gtar';
}

WriteMakefile(
Expand Down Expand Up @@ -67,7 +67,7 @@ WriteMakefile(
'Class::Autouse' => 0,
'namespace::clean' => 0,
'Sys::Path' => 0,
}, dist => $distargs,
}, dist => $dist,
clean => { FILES => 'CGI-Info-*' },
# META_ADD => {
# provides => {}
Expand Down
4 changes: 3 additions & 1 deletion t/bin.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
use strict;

use Test::Most tests => 13;
use Test::Script 1.12;
use Test::Needs { 'Test::Script' => '1.12' };

Test::Script->import();

script_compiles('bin/info.pl');
script_runs(['bin/info.pl', 'foo=bar']);
Expand Down

0 comments on commit 7befdb7

Please sign in to comment.