Project:Perl/maint-notes/dev-perl/Class-DBI

From Gentoo Wiki
Jump to:navigation Jump to:search

Testing

To comprehensively run all tests, you need to first install:

  1. dev-perl/Date-Simple
  2. dev-perl/DBD-mysql
  3. dev-perl/DBD-Pg
  4. dev-perl/DBD-SQLite
  5. dev-perl/Time-Piece-MySQL

You then need an accessible database on mysql:

CODE
dbname = test
username = ""
passsword = ""

And then run install with:

CODE
FEATURES="test" DIST_TEST_OVERRIDE="do verbose" emerge -va1 dev-perl/Class-DBI

And look carefully for any notices about skipped tests.

The following message typically means MySQL did not connect:

CODE
skipped: Need MySQL for this test

Currently this happens, but it still needs to be worked out why:

CODE
ok 1 # skip Can't insert new Binary: Cannot bind param 2: unknown sql_type -2 at /var/tmp/portage/dev-perl/Class-DBI-3.0.17-r2/work/Class-DBI-v3.0.17/blib/lib/Class/DBI.pm line 646.
#  at t/17-data_type.t line 29.