summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Rühsen <tim.ruehsen@gmx.de>2019-11-21 11:24:48 +0100
committerTim Rühsen <tim.ruehsen@gmx.de>2019-11-21 11:24:48 +0100
commit0751d053f52f0fea81fbcabce2cffe56beac2847 (patch)
treee7b9f27e0730e299ff8adbbaceb1a0451e3f9a78 /tests
parent4cdda68752a7e16e4206b868bfa7e3e4c01bd4e2 (diff)
downloadwget-0751d053f52f0fea81fbcabce2cffe56beac2847.tar.gz
* tests/WgetTests.pm: Support to set the wget executable for testing
Diffstat (limited to 'tests')
-rw-r--r--tests/WgetTests.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/WgetTests.pm b/tests/WgetTests.pm
index 9207b4a5..92bab4ef 100644
--- a/tests/WgetTests.pm
+++ b/tests/WgetTests.pm
@@ -13,7 +13,13 @@ use IO::Handle;
use POSIX qw(locale_h);
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();
if (defined $ENV{'srcdir'}) {
$VALGRIND_SUPP_FILE = $VALGRIND_SUPP_FILE