2008-05-23 02:14:05 -04:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
use warnings;
|
|
|
|
|
|
|
|
die "Please specify the top source directory.\n" if (!@ARGV);
|
|
|
|
my $top_srcdir = shift @ARGV;
|
|
|
|
|
|
|
|
my @tests = (
|
|
|
|
'Test-auth-basic.px',
|
2008-05-23 02:59:28 -04:00
|
|
|
'Test-proxy-auth-basic.px',
|
|
|
|
'Test-proxied-https-auth.px',
|
|
|
|
'Test-N-HTTP-Content-Disposition.px',
|
2008-05-23 03:04:09 -04:00
|
|
|
'Test--spider.px',
|
2008-05-23 02:14:05 -04:00
|
|
|
'Test-c-full.px',
|
|
|
|
'Test-c-partial.px',
|
2008-08-22 20:39:47 -04:00
|
|
|
'Test-c-shorter.px',
|
2008-05-23 02:14:05 -04:00
|
|
|
'Test-c.px',
|
|
|
|
'Test-E-k-K.px',
|
|
|
|
'Test-E-k.px',
|
|
|
|
'Test-ftp.px',
|
2008-08-02 07:47:10 -04:00
|
|
|
'Test-ftp-iri.px',
|
|
|
|
'Test-ftp-iri-fallback.px',
|
|
|
|
'Test-ftp-iri-disabled.px',
|
2008-05-23 02:14:05 -04:00
|
|
|
'Test-HTTP-Content-Disposition-1.px',
|
|
|
|
'Test-HTTP-Content-Disposition-2.px',
|
|
|
|
'Test-HTTP-Content-Disposition.px',
|
2008-08-28 05:45:29 -04:00
|
|
|
'Test-idn-headers.px',
|
2008-08-28 15:47:17 -04:00
|
|
|
'Test-idn-meta.px',
|
2008-09-10 00:55:02 -04:00
|
|
|
'Test-idn-cmd.px',
|
2008-08-02 06:17:03 -04:00
|
|
|
'Test-iri.px',
|
|
|
|
'Test-iri-disabled.px',
|
|
|
|
'Test-iri-forced-remote.px',
|
2008-08-14 12:26:53 -04:00
|
|
|
'Test-iri-list.px',
|
2008-05-23 02:14:05 -04:00
|
|
|
'Test-N-current.px',
|
2008-05-31 16:22:15 -04:00
|
|
|
'Test-N-smaller.px',
|
2008-05-31 16:31:05 -04:00
|
|
|
'Test-N-no-info.px',
|
2008-05-23 02:14:05 -04:00
|
|
|
'Test-N--no-content-disposition.px',
|
|
|
|
'Test-N--no-content-disposition-trivial.px',
|
|
|
|
'Test--no-content-disposition.px',
|
|
|
|
'Test--no-content-disposition-trivial.px',
|
|
|
|
'Test-N-old.px',
|
|
|
|
'Test-nonexisting-quiet.px',
|
|
|
|
'Test-noop.px',
|
|
|
|
'Test-np.px',
|
|
|
|
'Test-N.px',
|
|
|
|
'Test-O-HTTP-Content-Disposition.px',
|
|
|
|
'Test-O--no-content-disposition.px',
|
|
|
|
'Test-O--no-content-disposition-trivial.px',
|
|
|
|
'Test-O-nonexisting.px',
|
|
|
|
'Test-O.px',
|
2008-08-22 19:56:18 -04:00
|
|
|
'Test-O-nc.px',
|
2008-05-23 02:14:05 -04:00
|
|
|
'Test-Restrict-Lowercase.px',
|
|
|
|
'Test-Restrict-Uppercase.px',
|
|
|
|
'Test--spider-fail.px',
|
|
|
|
'Test--spider-r-HTTP-Content-Disposition.px',
|
|
|
|
'Test--spider-r--no-content-disposition.px',
|
|
|
|
'Test--spider-r--no-content-disposition-trivial.px',
|
|
|
|
'Test--spider-r.px',
|
|
|
|
);
|
|
|
|
|
|
|
|
my @results;
|
|
|
|
|
|
|
|
for my $test (@tests) {
|
|
|
|
print "Running $test\n\n";
|
|
|
|
system("$top_srcdir/tests/$test");
|
|
|
|
push @results, $?;
|
|
|
|
}
|
|
|
|
|
|
|
|
for (my $i=0; $i != @tests; ++$i) {
|
|
|
|
if ($results[$i] == 0) {
|
|
|
|
print "pass: ";
|
|
|
|
} else {
|
|
|
|
print "FAIL: ";
|
|
|
|
}
|
|
|
|
print "$tests[$i]\n";
|
|
|
|
}
|
2008-06-12 18:21:32 -04:00
|
|
|
|
|
|
|
print "\n";
|
|
|
|
print scalar(@results) . " tests were run\n";
|
|
|
|
print scalar(grep $_ == 0, @results) . " PASS\n";
|
|
|
|
print scalar(grep $_ != 0, @results) . " FAIL\n";
|
|
|
|
|
|
|
|
exit scalar (grep $_ != 0, @results);
|