]> sjero.net Git - wget/blob - tests/run-px
Catch failures in Test-N-current.px.
[wget] / tests / run-px
1 #!/usr/bin/env perl
2 use warnings;
3
4 die "Please specify the top source directory.\n" if (!@ARGV);
5 my $top_srcdir = shift @ARGV;
6
7 my @tests = (
8     'Test-auth-basic.px',
9     'Test-proxy-auth-basic.px',
10     'Test-proxied-https-auth.px',
11     'Test-N-HTTP-Content-Disposition.px',
12     'Test--spider.px',
13
14     'Test-c-full.px',
15     'Test-c-partial.px',
16     'Test-c.px',
17     'Test-E-k-K.px',
18     'Test-E-k.px',
19     'Test-ftp.px',
20     'Test-HTTP-Content-Disposition-1.px',
21     'Test-HTTP-Content-Disposition-2.px',
22     'Test-HTTP-Content-Disposition.px',
23     'Test-N-current.px',
24     'Test-N--no-content-disposition.px',
25     'Test-N--no-content-disposition-trivial.px',
26     'Test--no-content-disposition.px',
27     'Test--no-content-disposition-trivial.px',
28     'Test-N-old.px',
29     'Test-nonexisting-quiet.px',
30     'Test-noop.px',
31     'Test-np.px',
32     'Test-N.px',
33     'Test-O-HTTP-Content-Disposition.px',
34     'Test-O--no-content-disposition.px',
35     'Test-O--no-content-disposition-trivial.px',
36     'Test-O-nonexisting.px',
37     'Test-O.px',
38     'Test-Restrict-Lowercase.px',
39     'Test-Restrict-Uppercase.px',
40     'Test--spider-fail.px',
41     'Test--spider-r-HTTP-Content-Disposition.px',
42     'Test--spider-r--no-content-disposition.px',
43     'Test--spider-r--no-content-disposition-trivial.px',
44     'Test--spider-r.px',
45 );
46
47 my @results;
48
49 for my $test (@tests) {
50     print "Running $test\n\n";
51     system("$top_srcdir/tests/$test");
52     push @results, $?;
53 }
54
55 for (my $i=0; $i != @tests; ++$i) {
56     if ($results[$i] == 0) {
57         print "pass: ";
58     } else {
59         print "FAIL: ";
60     }
61     print "$tests[$i]\n";
62 }