koha 17.05.00 make test FAIL
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
On 1/06/17 04:14, Bob Ewart wrote:
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
hi Bob, for now, i'd suggest you follow this guide... https://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_tarball ...and say 'no' to the 'database-dependent test suite' option "Would you like to run the database-dependent test suite? (no, yes) [no]"
I followed a version of INSTALL.openSUSE which I updated for current versions of openSuse. I was going to submit it to replace the distributed version when they did away with the INSTALL.xxx files. The only non-default options selected during 'perl Makefile.PL' were the passwords, and 'icu' for the zebra tokenizer. Run database-dependent tests defaults to No which was selected. I submitted bug 18712 <https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18712> since there are many tests trying to access the database. Most of those tests were ok even so. On 05/31/2017 10:33 PM, Mason James wrote:
On 1/06/17 04:14, Bob Ewart wrote:
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 hi Bob, for now, i'd suggest you follow this guide... https://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_tarball
...and say 'no' to the 'database-dependent test suite' option
"Would you like to run the database-dependent test suite? (no, yes) [no]"
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
participants (2)
-
Bob Ewart -
Mason James