< Project:Perl < maint-notes < dev-perl

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

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
<syntaxhighlight lang="bash">
#!/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.
</syntaxhighlight>

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 :/

This article is issued from Gentoo. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.