Import the latest ::Optional::Dependencies from DBIC
[dbsrgits/DBIx-Class-Schema-Loader.git] / t / backcompat / 0.04006 / 11mysql_common.t
1 use DBIx::Class::Schema::Loader::Optional::Dependencies
2     -skip_all_without => qw(test_backcompat test_rdbms_mysql);
3
4 use strict;
5 use lib qw(t/backcompat/0.04006/lib);
6 use dbixcsl_common_tests;
7 use Test::More;
8
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;
13
14 my $skip_rels_msg = 'You need to set the DBICTEST_MYSQL_INNODB environment variable to test relationships';
15
16 dbixcsl_common_tests->new(
17     vendor           => 'Mysql',
18     auto_inc_pk      => 'INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT',
19     innodb           => $test_innodb ? q{Engine=InnoDB} : 0,
20     dsn              => $dsn,
21     user             => $user,
22     password         => $password,
23     skip_rels        => $test_innodb ? 0 : $skip_rels_msg,
24     no_inline_rels   => 1,
25     no_implicit_rels => 1,
26 )->run_tests();