Skip Menu |

This queue is for tickets about the HTTP-OAI CPAN distribution.

Report information
The Basics
Id: 102010
Status: open
Priority: 0/
Queue: HTTP-OAI

People
Owner: Nobody in particular
Requestors: nonsolosoft [...] diff.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 4.03
Fixed in: 4.03



Subject: test failures
Running make test PERL_DL_NONLAZY=1 "/home/ferz/perl5/perlbrew/perls/perl-5.18.2/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/000xml_sax.t ........... ok t/00static.t ............. ok t/01parse.t .............. ok t/02token.t .............. ok t/03badbytes.t ........... ok t/50mets.t ............... ok t/80network.t ............ ok t/error.t ................ ok Can't call method "start_element" on an undefined value at /home/ferz/.cpan/build/HTTP-OAI-4.03-PeoVKz/blib/lib/HTTP/OAI/Verb.pm line 53. # Looks like you planned 8 tests but ran 7. # Looks like your test exited with 255 just after 7. t/getrecord.t ............ Dubious, test returned 255 (wstat 65280, 0xff00) Failed 1/8 subtests t/identify.t ............. ok t/listidentifiers.t ...... ok t/listmetadataformats.t .. ok Test Summary Report ------------------- t/getrecord.t (Wstat: 65280 Tests: 7 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 8 tests but ran 7. Files=12, Tests=78, 2 wallclock secs ( 0.10 usr 0.02 sys + 1.97 cusr 0.18 csys = 2.27 CPU) Result: FAIL Failed 1/12 test programs. 0/78 subtests failed. make: *** [test_dynamic] Error 255 (/usr/bin/make test exited with 512) CPAN::Reporter: Test result is 'fail', One or more tests failed. CPAN::Reporter: preparing a CPAN Testers report for HTTP-OAI-4.03 CPAN::Reporter: sending test report with 'fail' via Metabase TIMBRODY/HTTP-OAI-4.03.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports TIMBRODY/HTTP-OAI-4.03.tar.gz bash-4.3$ uname -a Linux ferz-SVF1521G1EW 3.13.0-45-generic #74-Ubuntu SMP Tue Jan 13 19:36:28 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
From: dcook [...] prosentient.com.au
I'm using a system where someone must have forced the install of 4.03 despite the tests failing, and I can confirm that the modules fail in production as well. I also noticed the problem out in the wild at http://roar.eprints.org/id/celestial/1771 I imagine part of the problem might be a lack of knowledge/documentation showing how to properly set up an OAI repository using HTTP::OAI. However, when I look at the bin/oai_static_gateway.pl example, I notice that there is no way that HTTP::OAI::Repository can work with HTTP::OAI version 4.03. It calls $r->generate after any verb has been called, but this is a problem since HTTP::OAI::Verb expects generate() to have an argument of $driver. When it doesn't receive it, it errors. I'm going to try downgrading back to version 3.28, since version 4.03 doesn't look ready for use...
This version of HTTP::OAI is the one packaged for Debian Jessie. Program relying on HTTP::OAI fail now. Is there anything I can do to help fixing this?
This test failes when XML::SAX::Writer is present. A pull request is available which provides a working version of the XML::SAX::Writer test https://github.com/timbrody/perl-oai-lib/pull/10