Re: [Apache-dispatch-devel] Fwd: SF.net SVN: apache-dispatch: [50] trunk
Brought to you by:
geoffrey_young,
phred_moyer
|
From: Fred M. <fr...@ta...> - 2006-08-07 18:24:24
|
On Tue, 1 Aug 2006, Fred Moyer wrote: > I think that I've got the last bug fixed, it's skipping the tests properly when Apache::Test is not installed. Drats - I found a bug last night. This incarnation skips the tests just fine, but doesn't run them. It comes down to when I call GET_OK, but I didn't 'use Apache::TestRequest' in the test script, I used the eval ... code snippet borrowed from WebService::CaptchaDotNet, so I get the error "can't call method GET_OK without package name". I called Apache::TestRequest->import(qw(GET_OK)) in my eval call, but the import only seems to work if I 'use Apache::TestRequest'. But that makes it hard to load the package conditionally like WS::CDN does. I could get rid of the GET_OK call for now - I banged my head on this for a couple hours and have a deeper understanding of Apache::Test but still no guess as how to require Apache::TestRequest and import GET_OK. I'll try to wrap up a skeleton snippet which reproduces this issue and submit it to the Apache::Test list. > > > All tests passing for me on mp1 and mp2. I put a new dist up at http://www.redhotpenguin.com/Apache-Dispatch-0.10.tar.gz > > fred@harpua ~/dev/apache-dispatch/trunk $ perl -MApache::Test -e 0 > Can't locate Apache/Test.pm in @INC (@INC contains: /home/fred/dev/perl/lib/5.8.6/i686-linux /home/fred/dev/perl/lib/5.8.6 /home/fred/dev/perl/lib/site_perl/5.8.6/i686-linux /home/fred/dev/perl/lib/site_perl/5.8.6 /home/fred/dev/perl/lib/site_perl .). > BEGIN failed--compilation aborted. > > fred@harpua ~/dev/apache-dispatch/trunk $ perl Makefile.PL > Using mod_perl/2.000003 > > Warning: prerequisite Apache::Test 1.23 not found. > Writing Makefile for Apache2::Dispatch > fred@harpua ~/dev/apache-dispatch/trunk $ make > Manifying blib/man3/Apache2::Dispatch.3 > Manifying blib/man3/Apache::Dispatch.3 > Manifying blib/man3/Apache::Dispatch::Util.3 > /home/fred/dev/perl/bin/perl "-Iblib/arch" "-Iblib/lib" set_pureperl.PL set_pureperl > fred@harpua ~/dev/apache-dispatch/trunk $ make test > Skip blib/lib/Apache2/Dispatch.pm (unchanged) > Skip blib/lib/Apache/Dispatch.pm (unchanged) > Skip blib/lib/Apache/Dispatch/Util.pm (unchanged) > Skip blib/lib/Apache/Dispatch/TestConfig.pm (unchanged) > PERL_DL_NONLAZY=1 /home/fred/dev/perl/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > t/01plain.....skipped > all skipped: Apache::Test not configured > t/02extras....skipped > all skipped: Apache::Test not configured > t/03filter....skipped > all skipped: Apache::Test not configured > t/04oo........skipped > all skipped: Apache::Test not configured > All tests successful, 4 tests skipped. > Files=4, Tests=0, 0 wallclock secs ( 0.11 cusr + 0.01 csys = 0.12 CPU) > PERL_DL_NONLAZY=1 /home/fred/dev/perl/bin/perl "-Iblib/lib" "-Iblib/arch" test.plyou must have Apache-Test to run the test suite... > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Apache-dispatch-devel mailing list > Apa...@li... > https://lists.sourceforge.net/lists/listinfo/apache-dispatch-devel > |