mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Perl script to manage running of .px tests.
This commit is contained in:
parent
e416bb27cb
commit
9561f6bd2b
@ -46,46 +46,7 @@ run-unit-tests: unit-tests$(EXEEXT)
|
|||||||
./unit-tests$(EXEEXT)
|
./unit-tests$(EXEEXT)
|
||||||
|
|
||||||
run-px-tests: WgetTest.pm
|
run-px-tests: WgetTest.pm
|
||||||
$(PERLRUN) $(srcdir)/Test-proxied-https-auth.px && echo && echo
|
./run-px $(top_srcdir)
|
||||||
$(PERLRUN) $(srcdir)/Test-proxy-auth-basic.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-auth-basic.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-c-full.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-c-partial.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-c.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-E-k-K.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-E-k.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-ftp.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-HTTP-Content-Disposition-1.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-HTTP-Content-Disposition-2.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-HTTP-Content-Disposition.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-N-current-HTTP-CD.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-N-current.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-N-HTTP-Content-Disposition.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-N--no-content-disposition.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-N--no-content-disposition-trivial.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test--no-content-disposition.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test--no-content-disposition-trivial.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-N-old.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-nonexisting-quiet.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-noop.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-np.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-N.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-O-HTTP-Content-Disposition.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-O--no-content-disposition.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-O--no-content-disposition-trivial.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-O-nonexisting.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-O.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-Restrict-Lowercase.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test-Restrict-Uppercase.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test--spider-fail.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test--spider-HTTP-Content-Disposition.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test--spider--no-content-disposition.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test--spider--no-content-disposition-trivial.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test--spider.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test--spider-r-HTTP-Content-Disposition.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test--spider-r--no-content-disposition.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test--spider-r--no-content-disposition-trivial.px && echo && echo
|
|
||||||
$(PERLRUN) $(srcdir)/Test--spider-r.px && echo && echo
|
|
||||||
|
|
||||||
EXTRA_DIST = FTPServer.pm FTPTest.pm HTTPServer.pm HTTPTest.pm \
|
EXTRA_DIST = FTPServer.pm FTPTest.pm HTTPServer.pm HTTPTest.pm \
|
||||||
Test-auth-basic.px Test-c-full.px Test-c-partial.px \
|
Test-auth-basic.px Test-c-full.px Test-c-partial.px \
|
||||||
|
65
tests/run-px
Executable file
65
tests/run-px
Executable file
@ -0,0 +1,65 @@
|
|||||||
|
#!/usr/bin/env perl
|
||||||
|
use warnings;
|
||||||
|
|
||||||
|
die "Please specify the top source directory.\n" if (!@ARGV);
|
||||||
|
my $top_srcdir = shift @ARGV;
|
||||||
|
|
||||||
|
my @tests = (
|
||||||
|
'Test-proxied-https-auth.px',
|
||||||
|
'Test-proxy-auth-basic.px',
|
||||||
|
'Test-auth-basic.px',
|
||||||
|
'Test-c-full.px',
|
||||||
|
'Test-c-partial.px',
|
||||||
|
'Test-c.px',
|
||||||
|
'Test-E-k-K.px',
|
||||||
|
'Test-E-k.px',
|
||||||
|
'Test-ftp.px',
|
||||||
|
'Test-HTTP-Content-Disposition-1.px',
|
||||||
|
'Test-HTTP-Content-Disposition-2.px',
|
||||||
|
'Test-HTTP-Content-Disposition.px',
|
||||||
|
'Test-N-current-HTTP-CD.px',
|
||||||
|
'Test-N-current.px',
|
||||||
|
'Test-N-HTTP-Content-Disposition.px',
|
||||||
|
'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',
|
||||||
|
'Test-Restrict-Lowercase.px',
|
||||||
|
'Test-Restrict-Uppercase.px',
|
||||||
|
'Test--spider-fail.px',
|
||||||
|
'Test--spider-HTTP-Content-Disposition.px',
|
||||||
|
'Test--spider--no-content-disposition.px',
|
||||||
|
'Test--spider--no-content-disposition-trivial.px',
|
||||||
|
'Test--spider.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";
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user