Whatever the executable is named at the top level, it's always symlinked
as ./perl in t, so there's no need to set an environment variable to
override the expected name.
_test:
echo >&2 The _test target is deprecated. Please upgrade your smoker
- PERL=./perl $(RUN_TESTS) choose
+ $(RUN_TESTS) choose
# Cannot delegate rebuilding of t/perl to make
# to allow interlaced test and minitest
TESTFILE=TEST
fi
-if test X"\$PERL" = X; then
- PERL=./perl$_exe
- export PERL
-fi
-
cd t
# The second branch is for testing without a tty or controlling terminal,
# see t/op/stat.t
if test \$tty = Y; then
- \$PERL \$TESTFILE \$TEST_ARGS \$TEST_FILES </dev/tty
+ ./perl$_exe \$TESTFILE \$TEST_ARGS \$TEST_FILES </dev/tty
else
- PERL_SKIP_TTY_TEST=1 \$PERL \$TESTFILE \$TEST_ARGS \$TEST_FILES
+ PERL_SKIP_TTY_TEST=1 ./perl$_exe \$TESTFILE \$TEST_ARGS \$TEST_FILES
fi
echo "Ran tests" > rantests
$Is_os2 = $^O eq 'os2';
$Is_Cygwin = $^O eq 'cygwin';
-$PERL = $ENV{PERL} ||
+$PERL =
($Is_NetWare ? 'perl' :
$Is_VMS ? $^X :
$Is_MSWin32 ? '.\perl' :
my $STDOUT = tempfile();
my $STDERR = tempfile();
-my $PERL = $ENV{PERL} || './perl';
+my $PERL = './perl';
my $FAILURE_CODE = 119;
delete $ENV{PERLLIB};
plan tests => $::tests;
-my $PERL = $ENV{PERL} || '.\perl';
+my $PERL = '.\perl';
my $NL = $/;
delete $ENV{PERLLIB};