2 use lib qw(t/backcompat/0.04006/lib);
3 use dbixcsl_common_tests;
5 plan skip_all => 'Backcompat tests disabled'
6 unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
9 my $dsn = $ENV{DBICTEST_MYSQL_DSN} || '';
10 my $user = $ENV{DBICTEST_MYSQL_USER} || '';
11 my $password = $ENV{DBICTEST_MYSQL_PASS} || '';
12 my $test_innodb = $ENV{DBICTEST_MYSQL_INNODB} || 0;
14 my $skip_rels_msg = 'You need to set the DBICTEST_MYSQL_INNODB environment variable to test relationships';
16 my $tester = dbixcsl_common_tests->new(
18 auto_inc_pk => 'INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT',
19 innodb => $test_innodb ? q{Engine=InnoDB} : 0,
22 password => $password,
23 skip_rels => $test_innodb ? 0 : $skip_rels_msg,
25 no_implicit_rels => 1,
28 if( !$dsn || !$user ) {
29 $tester->skip_tests('You need to set the DBICTEST_MYSQL_DSN, _USER, and _PASS environment variables');