Bug 8848 - 'make test' fails on Barcodes_ValueBuilder.t (upgrading from 3.08.04)
Summary: 'make test' fails on Barcodes_ValueBuilder.t (upgrading from 3.08.04)
Status: CLOSED WORKSFORME
Alias: None
Product: Koha
Classification: Unclassified
Component: Installation and upgrade (command-line installer) (show other bugs)
Version: 3.8
Hardware: All Linux
: P5 - low major (vote)
Assignee: Galen Charlton
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-01 02:01 UTC by Derryn
Modified: 2015-12-03 22:00 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Derryn 2012-10-01 02:01:03 UTC
When I went to update from Koha 3.08.04 to .05 (from tarball):
I did the usual
 perl koha_perl_deps.pl -m -u
It reported no extra deps needed

perl Makefile.PL --prev-install-log /usr/share/koha/misc/koha-install-log 
-PASSED
make 
-PASSED
make test 
- FAIL

When I looked back at the logs I found it was missing a perl dep:

Can't locate Test/MockModule.pm in @INC (@INC contains: /home/koha/koha-3.08.05/blib/PERL_MODULE_DIR /home/koha/koha-3.08.05/blib/arch /usr/share/koha/lib /usr/share/koha/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at t/Barcodes_ValueBuilder.t line 6.

After I grabbed libtest-mockmodule-perl with an apt-get install:

make test

t/Barcodes_ValueBuilder.t ........... 1/10 install_driver(Mock) failed: Can't locate DBD/Mock.pm in @INC (@INC contains: /home/koha/koha-3.08.05/blib/PERL_MODULE_DIR /home/koha/koha-3.08.05/blib/arch /usr/share/koha/lib /usr/share/koha/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at (eval 30) line 3.
Perhaps the DBD::Mock perl module hasn't been fully installed,
or perhaps the capitalisation of 'Mock' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Proxy, SQLite2, Sponge, mysql.
 at t/Barcodes_ValueBuilder.t line 15.
# Looks like you planned 10 tests but ran 1.
# Looks like your test exited with 2 just after 1.
t/Barcodes_ValueBuilder.t ........... Dubious, test returned 2 (wstat 512, 0x200)
Failed 9/10 subtests

Tracked that one down to libdbd-mock-perl.
Installed and reran make test
-PASS

I'm assuming these modules are only for testing purposes, but its a little disconcerting when a test that has previously worked suddenly fails.


Additional Information:

My Koha installation is:
OS: Ubuntu server 12.04
Arch: amd64
Current Koha Version 3.08.04 (tarball)
Comment 1 Tomás Cohen Arazi 2014-12-28 23:58:05 UTC
Missing dependency.