Permalink
Browse files

Add separate option to enable the live jigsaw tests

The jigsaw server is somwhat unreliable causing spurious test failures.
Invoke 'perl Makefile.PL --jigsaw-tests' to enable them.
  • Loading branch information...
1 parent 2342653 commit 012aa3fc507520113b1fcfba04819aacecc2ad74 @gisle gisle committed Feb 18, 2012
View
@@ -5,5 +5,6 @@ pm_to_blib
SSL
t/CAN_TALK_TO_OURSELF
t/live/ENABLED
+t/live/jigsaw/ENABLED
*.tar.gz
xx*
View
@@ -40,14 +40,14 @@ t/base/protocols.t Test protocol methods of LWP::UserAgent
t/base/ua.t Basic LWP::UserAgent tests
t/live/apache-http10.t
t/live/online.t
-t/live/jigsaw-auth-b.t
-t/live/jigsaw-auth-d.t
-t/live/jigsaw-chunk.t
-t/live/jigsaw-md5-get.t
-t/live/jigsaw-md5.t
-t/live/jigsaw-neg-get.t
-t/live/jigsaw-neg.t
-t/live/jigsaw-te.t
+t/live/jigsaw/auth-b.t
+t/live/jigsaw/auth-d.t
+t/live/jigsaw/chunk.t
+t/live/jigsaw/md5-get.t
+t/live/jigsaw/md5.t
+t/live/jigsaw/neg-get.t
+t/live/jigsaw/neg.t
+t/live/jigsaw/te.t
t/local/autoload-get.t
t/local/autoload.t Test autoloading of LWP::Protocol modules
t/local/get.t Try to get a local file
View
@@ -9,8 +9,9 @@ GetOptions(\my %opt,
'aliases',
'no-programs|n',
'live-tests',
+ 'jigsaw-tests',
) or do {
- die "Usage: $0 [--aliases] [--no-programs] [--live-tests]\n";
+ die "Usage: $0 [--aliases] [--no-programs] [--live-tests] [--jigsaw-tests]\n";
};
my @prog;
@@ -29,6 +30,7 @@ if ($opt{'aliases'} && grep(/lwp-request/, @prog)) {
system($^X, "talk-to-ourself");
flag_file("t/CAN_TALK_TO_OURSELF", $? == 0);
flag_file("t/live/ENABLED", $opt{'live-tests'});
+flag_file("t/live/jigsaw/ENABLED", $opt{'jigsaw-tests'});
WriteMakefile(
NAME => 'LWP',
View
@@ -38,6 +38,7 @@ if (@ARGV) {
else {
@tests = (<base/*.t>, <html/*.t>, <robot/*.t>, <local/*.t>);
push(@tests, <live/*.t>) if -f "live/ENABLED";
+ push(@tests, <live/jigsaw/*.t>) if -f "live/jigsaw/ENABLED";
push(@tests, <net/*.t>) if -f "net/config.pl";
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 012aa3f

Please sign in to comment.