]> sjero.net Git - wget/blobdiff - tests/run-px
Fixes to make tests work when building outside the sources directory.
[wget] / tests / run-px
index ef38418c510cecb0823b66892df086263fdffd36..6fe0d9fbb7532dbb06c1854788c50e9691b950ff 100755 (executable)
@@ -1,8 +1,8 @@
 #!/usr/bin/env perl
 
 use 5.006;
-use warnings;
 use strict;
+use warnings;
 
 use Term::ANSIColor ':constants';
 $Term::ANSIColor::AUTORESET = 1;
@@ -59,7 +59,7 @@ my @tested;
 
 foreach my $test (@tests) {
     print "Running $test\n\n";
-    system("$^X $top_srcdir/tests/$test");
+    system("$^X -I$top_srcdir/tests $top_srcdir/tests/$test");
     push @tested, { name => $test, result => $? };
 }