* tests/WgetTests.pm: Support to set the wget executable for testing

This commit is contained in:
Tim Rühsen 2019-11-21 11:24:48 +01:00
parent 4cdda68752
commit 0751d053f5

View File

@ -13,7 +13,13 @@ use IO::Handle;
use POSIX qw(locale_h); use POSIX qw(locale_h);
use locale; use locale;
our $WGETPATH = '../src/wget -d --no-config'; if (defined $ENV{'WGET_PATH'}) {
our $WGETPATH = $ENV{'WGET_PATH'} . ' -d --no-config';
} else {
our $WGETPATH = '../src/wget -d --no-config';
}
our $VALGRIND_SUPP_FILE = Cwd::getcwd(); our $VALGRIND_SUPP_FILE = Cwd::getcwd();
if (defined $ENV{'srcdir'}) { if (defined $ENV{'srcdir'}) {
$VALGRIND_SUPP_FILE = $VALGRIND_SUPP_FILE $VALGRIND_SUPP_FILE = $VALGRIND_SUPP_FILE