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

From Gentoo Wiki
Jump to: navigation, search

Tests

These tests need a working MySQL Server with permissions/tables set up and passed via ENV as follows:

FILE /etc/portage/env/dev-perl/Class-DBI-mysql
#!/bin/bash
# These are the values used if not configured
DBD_MYSQL_DBNAME='test'
DBD_MYSQL_USER=''
DBD_MYSQL_PASSWD=''
DBD_MYSQL_TABLE='tbcdbitest'  #Note: Named table will be dropped if it exists.

You should also ensure you have installed:

However, at this time tests only fail, due to unknown reasons, and so tests are skipped without DBD_MYSQL_DBNAME in ENV

The test sample in RT#41308 works better than the one provided, but its not clear if this indicates a real bug or not. RT#119579 looks pretty sad :/