You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Dale Bewley <dl...@ucdavis.edu> on 2002/10/22 01:58:21 UTC

make test can't resolve modules to test with

Trying to build mod_perl-1.99_07 on Solaris 8 with perl 5.8.0 and apache
2.0.43. make test completely fails. It seems like it isn't using @INC.
Because even though the dir containing a package is listed in @INC the
test can't resolve the module.


Here's output from an individual test.

[root@host t]#./TEST -verbose apache/cgihandler.t
/usr/local/apache/bin/httpd  -d
/opt/software/bld/mod_perl-root/tmp/mod_perl-1.99_07/t -f
/opt/software/bld/mod_perl-root/tmp/mod_perl-1.99_07/t/conf/httpd.conf
-DAPACHE2 -DPERL_USEITHREADS
using Apache/2.0.43 (prefork MPM)
waiting for server to start: 00:04[Mon Oct 21 16:52:08 2002] [info] 21
Apache::
modules loaded
[Mon Oct 21 16:52:08 2002] [info] 5 APR:: modules loaded
[Mon Oct 21 16:52:08 2002] [info] base server + 5 vhosts ready to run
tests
waiting for server to start: 00:08[Mon Oct 21 16:52:12 2002] [info] 20
Apache::
modules loaded
[Mon Oct 21 16:52:12 2002] [info] 5 APR:: modules loaded
[Mon Oct 21 16:52:12 2002] [info] base server + 5 vhosts ready to run
tests
waiting for server to start: ok (waited 18 secs)
server localhost:8529 started
server localhost:8530 listening (TestDirective::perlmodule)
server localhost:8531 listening (TestDirective::perlrequire)
server localhost:8532 listening (TestProtocol::echo_filter)
server localhost:8533 listening (TestProtocol::echo)
server localhost:8534 listening (TestFilter::input_msg)
apache/cgihandler....1..2
# Failed test 1 in apache/cgihandler.t at line 16
not ok 1
# Failed test 2 in apache/cgihandler.t at line 20
not ok 2
FAILED tests 1-2
        Failed 2/2 tests, 0.00% okay
Failed Test         Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
apache/cgihandler.t                2    2 100.00%  1-2
server localhost:8529 shutdown
error running tests (please examine t/logs/error_log)



And if I look in t/logs/error_log I see:


[Mon Oct 21 16:52:23 2002] [error] failed to resolve handler
`TestHooks::trans'
[Mon Oct 21 16:52:23 2002] [error] [client 127.0.0.1] Can't locate
TestHooks/trans.pm in @INC (@INC contains:
/opt/software/bld/mod_perl-root/tmp/mod_perl-1.99_07/blib/lib/Apache2
/opt/software/bld/mod_perl-root/tmp/mod_perl-1.99_07/Apache-Test/lib
/opt/software/bld/mod_perl-root/tmp/mod_perl-1.99_07/lib
/opt/software/bld/mod_perl-root/tmp/mod_perl-1.99_07/blib/lib
/opt/software/bld/mod_perl-root/tmp/mod_perl-1.99_07/blib/arch
/opt/software/bld/mod_perl-root/tmp/mod_perl-1.99_07/t/response
/opt/software/bld/mod_perl-root/tmp/mod_perl-1.99_07/t/protocol
/opt/software/bld/mod_perl-root/tmp/mod_perl-1.99_07/t/hooks
/opt/software/bld/mod_perl-root/tmp/mod_perl-1.99_07/t/filter
/opt/software/bld/mod_perl-root/tmp/mod_perl-1.99_07/t
/opt/software/bld/mod_perl-root/tmp/mod_perl-1.99_07/t/htdocs/testdirective/perlmodule-vh
/opt/software/bld/mod_perl-root/tmp/mod_perl-1.99_07/t/htdocs/testdirective/main
/usr/local/lib/perl5/5.8.0/sun4-solaris-thread-multi
/usr/local/lib/perl5/5.8.0
/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris-thread-multi
/usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl)
at (eval 15) line 3.

[root@host t]#pwd
/opt/software/bld/mod_perl-root/tmp/mod_perl-1.99_07/t
[root@host t]#find . -name trans.pm
./hooks/TestHooks/trans.pm

So, obviously the module is there. Any ideas?

--
Dale Bewley
Unix Server Administrator / Digital Library Consultant