Tracy12 wrote:
Error I am getting while executing make test is
        all skipped: Test::Pod 1.14 required for testing POD
Failed Test Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/00.load.t    1   256     1    1 100.00%  1
2 tests skipped.
Failed 1/3 test scripts, 66.67% okay. 1/1 subtests failed, 0.00% okay.
make: *** [test_dynamic] Error 255

This is not the actual error. Perl's test harness hides the output of STDERR. You need to run the failing test file individually in order to see the real error.

the 00.load.t looks as follows

use Test::More tests => 1;

BEGIN {
use_ok( 'AuthCAS' );
}

That test won't work. Your module uses some of the Apache2:: modules and they can't be loaded from a command-line script. If you want to make a test that works, you should look at the Apache::Test framework. There are examples in the mod_perl distribution and lots of good documentation.

In order to get everything working I had to comment use strict as well.

Don't do that.  Fix the problems.

Otherwise it gives me the following.
This is inside a new added function(hence I used Apache2::Const::OK) in side
the old code base.

failed to resolve handler `AuthCAS->authen_handler': Bareword
"Apache2::Const::OK" not allowed while "strict subs" in use at
/usr/lib/perl5/site_perl/5.8.8/AuthCAS.pm line 530.\nCompilation failed in
require at (eval 2) line 3.\n

It's telling you that you need to load Apache2::Const::OK. I think that loading Apache2::compat will do this for you.

- Perrin

Reply via email to