#!/usr/bin/env perl
use warnings;
+use strict;
die "Please specify the top source directory.\n" if (!@ARGV);
my $top_srcdir = shift @ARGV;
'Test--spider.px',
'Test-c-full.px',
'Test-c-partial.px',
+ 'Test-c-shorter.px',
'Test-c.px',
'Test-E-k-K.px',
'Test-E-k.px',
'Test-O--no-content-disposition-trivial.px',
'Test-O-nonexisting.px',
'Test-O.px',
+ 'Test-O-nc.px',
'Test-Restrict-Lowercase.px',
'Test-Restrict-Uppercase.px',
'Test--spider-fail.px',
for my $test (@tests) {
print "Running $test\n\n";
- system("$top_srcdir/tests/$test");
+ system("$^X $top_srcdir/tests/$test");
push @results, $?;
}
}
print "$tests[$i]\n";
}
+
+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);