use strict;
use warnings;
-use Path::Tiny qw/ path tempdir tempfile cwd /;
-use File::Path qw/mkpath rmtree/;
+use Path::Tiny qw/ cwd /;
+use File::Path qw/ mkpath rmtree /;
my $IS_WIN = ( $^O eq "MSWin32" );
-my $SEP = $IS_WIN ? "\\" : '/';
my $MAKE = $IS_WIN ? 'gmake' : 'make';
sub do_system
]
}
);
- do_system( { cmd => [$MAKE] } );
do_system( { cmd => [ $MAKE, 'install', ] } );
chdir($cwd);
{
my $inst_dir = FortTestInst::install("fortune-m");
- my $IS_WIN = ( $^O eq "MSWin32" );
my @cmd = ( $inst_dir->child( 'games', 'fortune' ), '-m', 'giants' );
print "Running [@cmd]\n";
{
my $inst_dir = FortTestInst::install("fortune-m");
- my $IS_WIN = ( $^O eq "MSWin32" );
my @cmd = ( $inst_dir->child( 'games', 'fortune' ), '-m', '"wet paint"' );
print "Running [@cmd]\n";