3 use dbixcsl_common_tests;
5 my $database = $ENV{MYSQL_NAME} || '';
6 my $user = $ENV{MYSQL_USER} || '';
7 my $password = $ENV{MYSQL_PASS} || '';
8 my $test_innodb = $ENV{MYSQL_TEST_INNODB} || 0;
10 my $skip_rels_msg = 'You need to set the MYSQL_TEST_INNODB environment variable to test relationships';
12 my $tester = dbixcsl_common_tests->new(
14 auto_inc_pk => 'INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT',
15 innodb => q{Engine='InnoDB'},
16 dsn => "dbi:mysql:$database",
18 password => $password,
19 skip_rels => $test_innodb ? 0 : $skip_rels_msg,
22 if( !$database || !$user ) {
23 $tester->skip_tests('You need to set the MYSQL_NAME, MYSQL_USER and MYSQL_PASS environment variables');