Subject: | Test-suite not run in Windows |
Hi,
I just installed WWW::Mechanize-0.58 on windows and found that the test-suite is not run (and gives an error, so CPAN won't install)
Attached is a patch to Makefile.PL which makes the tests available for windows with stock ActivePerl 5.8.0 (build 806)
hth && good luck
Abe
--- Makefile.PL.orig 2003-08-21 20:02:59.000000000 +0200
+++ Makefile.PL 2003-08-21 20:06:27.000000000 +0200
@@ -28,8 +28,11 @@
}
} # failed connect
-my $tests = 't/*.t';
-$tests .= ' t/live/*.t' unless $skiplive;
+sub is_win32() { $^O eq 'MSWin32' }
+
+my $tests = is_win32 ? join " ", glob( 't/*.t' ) : 't/*.t';
+$tests .= is_win32 ? join " ", glob( 't/live/*.t' ) : ' t/live/*.t'
+ unless $skiplive;
my $parms = {
'NAME' => 'WWW::Mechanize',