]> sjero.net Git - wget/blobdiff - tests/run-px
Fixes to make tests work when building outside the sources directory.
[wget] / tests / run-px
index 92e9061e0694645e3e3474dfbe07e80fff19647d..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;
@@ -12,6 +12,8 @@ my $top_srcdir = shift @ARGV;
 
 my @tests = (
     'Test-auth-basic.px',
+    'Test-auth-no-challenge.px',
+    'Test-auth-no-challenge-url.px',
     'Test-proxy-auth-basic.px',
     'Test-proxied-https-auth.px',
     'Test-N-HTTP-Content-Disposition.px',
@@ -57,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 => $? };
 }