Summary: | Some tests fail in Ubuntu 14.04 (a.k.a. Perl5.18) | ||
---|---|---|---|
Product: | Koha | Reporter: | Simanta Shantikari <simanta.s> |
Component: | Installation and upgrade (command-line installer) | Assignee: | Galen Charlton <gmcharlt> |
Status: | RESOLVED DUPLICATE | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | jonathan.druart, mtompset, sebastian.krieg, tomascohen, yohann.dufour |
Version: | Main | ||
Hardware: | All | ||
OS: | Linux | ||
GIT URL: | Change sponsored?: | --- | |
Patch complexity: | --- | Documentation contact: | |
Documentation submission: | Text to go in the release notes: | ||
Version(s) released in: | Circulation function: |
Description
Simanta Shantikari
2014-05-05 04:20:26 UTC
When I execute this comman folling are showings #./koha_perl_deps.pl -m [Mon May 5 12:39:14 2014] koha_perl_deps.pl: defined(@array) is deprecated at /usr/share/perl5/PDF/Reuse.pm line 993, <DATA> line 751. [Mon May 5 12:39:14 2014] koha_perl_deps.pl: (Maybe you should just omit the defined()?) [Mon May 5 12:39:14 2014] koha_perl_deps.pl: defined(@array) is deprecated at /usr/share/perl5/PDF/Reuse.pm line 993, <DATA> line 751. [Mon May 5 12:39:14 2014] koha_perl_deps.pl: (Maybe you should just omit the defined()?) Installed Required Module is Module Name Version Version Required -------------------------------------------------------------------------------------------- Readonly::XS 0 * 1.02 No -------------------------------------------------------------------------------------------- Total modules reported: 1 * Module is missing or requires an upgrade. *** Bug 12181 has been marked as a duplicate of this bug. *** Is Readonly::XS in used? % git grep Readonly::XS C4/Installer/PerlDependencies.pm: 'Readonly::XS' => { % apt-cache show libreadonly-perl Package: libreadonly-perl Version: 1.04-1 Installed-Size: 77 Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org> Architecture: all Depends: perl Recommends: libreadonly-xs-perl (>= 1.05) It is not a Readonly's dependency. Should we remove the dependency in PerlDependencies.pm? Could you please specify the Ubuntu version and the steps you followed to install? I had exactly the same problem when I tried to install Koha. My version of Ubuntu is 14.04, I followed generally these instructions : http://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_git (but I used another page to fix some issues linked to Ubuntu 14.04 : http://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_packages#Appendix_B:_Troubleshooting ) The error occurs during the step : 4. Build and Test Koha When you execute the command : make test mtompset@ubuntu:~/kohaclone$ prove -v t/QueryParser.t t/QueryParser.t .. ok 1 - use Koha::QueryParser::Driver::PQF; ok 2 - Successfully created empty QP object ok 3 - Loaded QP config ok 4 - Initialized 4 search classes ok 5 - Correct number of search fields for 'keyword' class not ok 6 - super simple keyword query # Failed test 'super simple keyword query' # at t/QueryParser.t line 22. # got: '@or @or @attr 1=1016 @attr 4=6 "smith" @attr 2=102 @attr 9=20 @attr 4=6 "smith" @attr 9=34 @attr 2=102 @attr 4=6 "smith"' # expected: '@or @or @attr 1=1016 @attr 4=6 "smith" @attr 9=20 @attr 2=102 @attr 4=6 "smith" @attr 9=34 @attr 2=102 @attr 4=6 "smith"' ok 7 - simple author query ok 8 - fielded publisher query ok 9 - phrase query not ok 10 - relevance-bumped query # Failed test 'relevance-bumped query' # at t/QueryParser.t line 26. # got: '@attr 1=4 @attr 2=102 @attr 9=20 @attr 4=6 "smith"' # expected: '@attr 1=4 @attr 9=20 @attr 2=102 @attr 4=6 "smith"' ok 11 - query with boolean && ok 12 - query with boolean && ok 13 - keyword search with pubdate limited to -2008 ok 14 - keyword search with pubdate limited to 2008- ok 15 - keyword search with pubdate limited to 2008 ok 16 - keyword search with pubdate limited to 1980, 2008 not ok 17 - keyword search sorted by acqdate descending # Failed test 'keyword search sorted by acqdate descending' # at t/QueryParser.t line 33. # got: '@or @attr 7=1 @attr 1=32 0 @attr 1=1003 @attr 4=6 "smith"' # expected: '@or @attr 1=32 @attr 7=1 0 @attr 1=1003 @attr 4=6 "smith"' ok 18 - retrieve field by attr ok 19 - retrieve field by attrstring ok 20 - clear all mappings returns self ok 21 - clear all configuration returns self ok 22 - All mapping erased ok 23 - serialized YAML valid ok 24 - Mappings serialized correctly to YAML ok 25 - serialized JSON valid ok 26 - Mappings serialized correctly to JSON ok 27 - TEST_SETUP returns self ok 28 - Initialized 4 search classes in test setup 1..28 # Looks like you failed 3 tests of 28. Dubious, test returned 3 (wstat 768, 0x300) Failed 3/28 subtests Test Summary Report ------------------- t/QueryParser.t (Wstat: 768 Tests: 28 Failed: 3) Failed tests: 6, 10, 17 Non-zero exit status: 3 Files=1, Tests=28, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.11 cusr 0.01 csys = 0.14 CPU) Result: FAIL Tests are failing on Ubuntu 14.04. It doesn't mean Koha fails to work on Ubuntu 14.04. For now I'd recommend that you stick to Ubuntu 12.04 to be sure everything is fine. I have the same error with Koha 3.16 installed at Fedora 20 (x_64). (In reply to Sebastian Krieg from comment #8) > I have the same error with Koha 3.16 installed at Fedora 20 (x_64). If you repeat make test multiple times and eventually you get just test 6 failing, I would continue with the make install, though this is still a bug that needs to be addressed. Since the last entry I have sucessfully installed and configured koha 3.16. For my opinion this problem is solved. The remaining issues are covered by 12647, so I'll close this as a duplicate for it. *** This bug has been marked as a duplicate of bug 12647 *** |