[Koha] failed 3/24 tests

Paul Yachnes yach at cox.net
Sun Jul 27 02:51:11 NZST 2008


I am making my second install of Koha 3 (the first one finally went ok( 
and everything went fine up until make test which failed 3 of 24 tests. 
I don't quite understand how to troubleshoot this so I am inclding all 
coe from make test below. Perhaps someone with experience can make some 
suggestions.

Paul

PERL_DL_NONLAZY=1 KOHA_CONF=blib/KOHA_CONF_DIR/koha-conf.xml 
/usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 
'blib/PERL_MODULE_DIR', 'blib/arch')" t/*.t
t/Amazon....................ok  
t/Barcodes_PrinterConfig....ok  
t/Bookfund..................ok  
t/Bookseller................ok  
t/Boolean...................ok    
t/Branch....................ok  
t/Calendar..................ok  
t/Charset...................ok  
t/Date......................1/4 DBD::mysql::db selectrow_array failed: 
Table 'koha.systempreferences' doesn't exist at 
/home/paul/koha-3.00.00-stableRC1/blib/PERL_MODULE_DIR/C4/Context.pm 
line 456.
Use of uninitialized value in string eq at 
/home/paul/koha-3.00.00-stableRC1/blib/PERL_MODULE_DIR/C4/Date.pm line 49.
Use of uninitialized value in string eq at 
/home/paul/koha-3.00.00-stableRC1/blib/PERL_MODULE_DIR/C4/Date.pm line 49.
Use of uninitialized value in string eq at 
/home/paul/koha-3.00.00-stableRC1/blib/PERL_MODULE_DIR/C4/Date.pm line 49.
Use of uninitialized value in concatenation (.) or string at 
/home/paul/koha-3.00.00-stableRC1/blib/PERL_MODULE_DIR/C4/Date.pm line 63.
t/Date......................2/4
#   Failed test 'format_date_in_iso'
#   at t/Date.t line 29.
#          got: ''
#     expected: '1973-05-21'
# Looks like you planned 4 tests but only ran 3.
# Looks like you failed 1 test of 3 run.
t/Date...................... Dubious, test returned 1 (wstat 256, 0x100)
 Failed 2/4 subtests
t/Dates.....................1/126 #
#  Testing Legacy Functions: format_date and format_date_in_iso
DBD::mysql::db selectrow_array failed: Table 'koha.systempreferences' 
doesn't exist at 
/home/paul/koha-3.00.00-stableRC1/blib/PERL_MODULE_DIR/C4/Context.pm 
line 456.
Use of uninitialized value in hash element at 
/home/paul/koha-3.00.00-stableRC1/blib/PERL_MODULE_DIR/C4/Dates.pm line 127.
Use of uninitialized value in concatenation (.) or string at 
/home/paul/koha-3.00.00-stableRC1/blib/PERL_MODULE_DIR/C4/Dates.pm line 127.
Invalid date format '' from system preferences at t/Dates.t line 31
# Looks like you planned 126 tests but only ran 1.
# Looks like your test died just after 1.
t/Dates..................... Dubious, test returned 255 (wstat 65280, 
0xff00)
 Failed 125/126 subtests
t/Debug.....................# BEFORE use:     $debug is not defined
# BEFORE use: $cgi_debug is not defined
t/Debug.....................1/3 #  AFTER use:     $debug is 0
#  AFTER use: $cgi_debug is 0
# Done.
t/Debug.....................ok  
t/dummy.....................ok  
t/icondirectories...........Use of uninitialized value in string eq at 
/home/paul/koha-3.00.00-stableRC1/blib/PERL_MODULE_DIR/C4/Koha.pm line 460.
DBD::mysql::db selectrow_array failed: Table 'koha.systempreferences' 
doesn't exist at 
/home/paul/koha-3.00.00-stableRC1/blib/PERL_MODULE_DIR/C4/Context.pm 
line 456.
Use of uninitialized value in concatenation (.) or string at 
/home/paul/koha-3.00.00-stableRC1/blib/PERL_MODULE_DIR/C4/Koha.pm line 464.
DBD::mysql::db selectrow_array failed: Table 'koha.systempreferences' 
doesn't exist at 
/home/paul/koha-3.00.00-stableRC1/blib/PERL_MODULE_DIR/C4/Context.pm 
line 456.
Use of uninitialized value in concatenation (.) or string at 
/home/paul/koha-3.00.00-stableRC1/blib/PERL_MODULE_DIR/C4/Koha.pm line 461.
t/icondirectories...........1/1 Can't stat 
/usr/share/koha/opac/htdocs/opac-tmpl//itemtypeimg: No such file or 
directory
 at t/icondirectories.t line 37
Can't stat 
/usr/share/koha/intranet/htdocs/intranet-tmpl//img/itemtypeimg: No such 
file or directory
 at t/icondirectories.t line 45
t/icondirectories...........ok  
t/Input.....................ok  
t/Items.....................DBD::mysql::db selectrow_array failed: Table 
'koha.systempreferences' doesn't exist at 
/home/paul/koha-3.00.00-stableRC1/blib/PERL_MODULE_DIR/C4/Context.pm 
line 456.
t/Items.....................1/28 DBD::mysql::db selectrow_array failed: 
Table 'koha.systempreferences' doesn't exist at 
/home/paul/koha-3.00.00-stableRC1/blib/PERL_MODULE_DIR/C4/Context.pm 
line 456.
Use of uninitialized value in hash element at 
/home/paul/koha-3.00.00-stableRC1/blib/PERL_MODULE_DIR/C4/Dates.pm line 127.
Use of uninitialized value in concatenation (.) or string at 
/home/paul/koha-3.00.00-stableRC1/blib/PERL_MODULE_DIR/C4/Dates.pm line 127.
Invalid date format '' from system preferences at 
/home/paul/koha-3.00.00-stableRC1/blib/PERL_MODULE_DIR/C4/Items.pm line 1728
# Looks like you planned 28 tests but only ran 13.
# Looks like your test died just after 13.
t/Items..................... Dubious, test returned 255 (wstat 65280, 
0xff00)
 Failed 15/28 subtests
t/Koha......................ok  
t/Labels....................DBD::mysql::db selectrow_array failed: Table 
'koha.systempreferences' doesn't exist at 
/home/paul/koha-3.00.00-stableRC1/blib/PERL_MODULE_DIR/C4/Context.pm 
line 456.
t/Labels....................ok  
t/Languages.................ok  
t/Maintainance..............ok  
t/Output....................ok  
t/Record....................ok  
t/Review....................ok  
t/Scrubber..................1/10 # Note: scrubber test output will have 
whitespace collapsed for readability
# done.
t/Scrubber..................ok    
t/Stats.....................ok  

Test Summary Report
-------------------
t/Date                  (Wstat: 256 Tests: 3 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
  Parse errors: Bad plan.  You planned 4 tests but ran 3.
t/Dates                 (Wstat: 65280 Tests: 1 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 126 tests but ran 1.
t/Items                 (Wstat: 65280 Tests: 13 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 28 tests but ran 13.
Files=24, Tests=66, 27 wallclock secs ( 0.28 usr  0.04 sys + 16.55 cusr  
1.41 csys = 18.28 CPU)
Result: FAIL
Failed 3/24 test programs. 1/66 subtests failed.
make: *** [test_dynamic] Error 255


More information about the Koha mailing list