< Project:Perl < maint-notes < dev-perl
Project:Perl/maint-notes/dev-perl/Class-DBI
Testing
To comprehensively run all tests, you need to first install:
- dev-perl/Date-Simple
- dev-perl/DBD-mysql
- dev-perl/DBD-Pg
- dev-perl/DBD-SQLite
- 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.
This article is issued from Gentoo. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.