ODELL, TODD E (SWBT) wrote:
Stas,
I got the CVS tonight and the make was great! A new error on make test
however:
[EMAIL PROTECTED]:/store/modperl-2.0> make test

cd "src/modules/perl" && make -f Makefile.modperl

Target "all" is up to date.

        /usr/local/bin/perl -Iblib/arch/Apache2 -Iblib/lib/Apache2  t/TEST
-clean

*** setting ulimit to allow core files

ulimit -c unlimited; t/TEST -clean

Error in option spec: "verbose:1"

make: 1254-004 The error code from the last command is 255.

hmm, I've added yesterday a support for make test TEST_VERBOSE=1 TEST_FILES=...,

this is a problem with Getopt::Long, looks like you have an older version, which doesn't support this feature (it was added in 2.27). Though don't upgrade. Let's see if this can be workarounded, since many others have older version of this module. Try this patch:

Index: Apache-Test/lib/Apache/TestRun.pm
===================================================================
RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestRun.pm,v
retrieving revision 1.103
diff -u -r1.103 TestRun.pm
--- Apache-Test/lib/Apache/TestRun.pm   26 Mar 2003 07:35:33 -0000      1.103
+++ Apache-Test/lib/Apache/TestRun.pm   27 Mar 2003 06:16:47 -0000
@@ -160,6 +160,13 @@
     local *ARGV = $argv;
     my(%opts, %vopts, %conf_opts);

+    # a workaround for the unsupported "opt:number" rule in older
+    # Getopt::Long, only for fully spelled out opt -verbose=
+    if ($Getopt::Long::VERSION < 2.27) {
+        @ARGV = grep defined,
+            map {/-verbose=(\d)/ ? ($1 ? '-verbose' : undef) : $_ } @ARGV;
+    }
+
     # permute      : optional values can come before the options
     # pass_through : all unknown things are to be left in @ARGV
     Getopt::Long::Configure(qw(pass_through permute));

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



Reply via email to