[Koha] koha 17.05.00 make test FAIL

Bob Ewart bob-ewart at bobsown.com
Thu Jun 1 04:14:09 NZST 2017


I'm making Koha 17.05.00 on openSuse Leap 42.2 with MariaDB version 
10.0.29. sql_mode is set to 'NO_ENGINE_SUBSTITUTION' .

I created the koha database, but of course it has notables defined.

When I run 'make test', it fails on t/Matcher.t failed tests: 3-5 and 
t/Prices.t failed on test 5

There are a lot of errors like:
DBD::mysql::st execute failed: Table 'koha.systempreferences' doesn't 
exist [for Statement "SELECT `me`.`variable`, `me`.`value`, 
`me`.`options`, `me`.`explanation`, `me`.`type` FROM `systempreferences` 
`me` WHERE ( `me`.`variable` = ? )" with ParamValues: 
0='casauthentication'] at 
/usr/lib/perl5/vendor_perl/5.18.2/DBIx/Class/Storage/DBI.pm line 1836.

So t/Matcher.t get 'undef' when trying to select from that table. 
't/Prices.t' fails because koha.aqbooksellersdoesn't exist.

I tried running make test with out a koha database and got a bunch of 
other errors in the tests: 'Unknown database 'koha'.

That failed on t/Koha_ExternalContent_OverDrive.t and t/XSLT.t


Why are the tests trying to access tables before the table structure is 
set up?

--------
Question: Are Catmandu::Importer::MARC and 
Catmandu::Store::ElasticSearch required? 'koha_perl_deps.pl' doesn't 
show them, but there was a mention of them in one of the tests. So I 
installed them before these tests.  Didn't make any difference in the 
results.

-- 
Bob





More information about the Koha mailing list