X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F10_02mysql_common.t;h=2f21a4240ed26c95e5bcfb5e9556a54dd6c2b5bc;hb=c939b4acb9a74ccfac75d58510bc241fcaf39b02;hp=26f086a530bf05bffcf55b7e4ee091962183f3bc;hpb=ce2f102ae599b698ade7b725358294e99e72fe97;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/t/10_02mysql_common.t b/t/10_02mysql_common.t index 26f086a..2f21a42 100644 --- a/t/10_02mysql_common.t +++ b/t/10_02mysql_common.t @@ -4,6 +4,7 @@ use Test::More; use Test::Exception; use Try::Tiny; use File::Path 'rmtree'; +use DBIx::Class::Optional::Dependencies; use DBIx::Class::Schema::Loader::Utils 'slurp_file'; use DBIx::Class::Schema::Loader 'make_schema_at'; @@ -114,7 +115,6 @@ my $tester = dbixcsl_common_tests->new( 'time' => { data_type => 'time' }, 'year' => { data_type => 'year' }, 'year(4)' => { data_type => 'year' }, - 'year(2)' => { data_type => 'year', size => 2 }, # String Types 'char' => { data_type => 'char', size => 1 }, @@ -336,7 +336,7 @@ EOF $dbh->selectall_arrayref('SHOW DATABASES'); } catch { - skip 'no SHOW DATABASES privileges', 28; + skip 'no SHOW DATABASES privileges', 30; } } @@ -504,6 +504,9 @@ EOF if( !$dsn || !$user ) { $tester->skip_tests('You need to set the DBICTEST_MYSQL_DSN, DBICTEST_MYSQL_USER, and DBICTEST_MYSQL_PASS environment variables'); } +elsif (!DBIx::Class::Optional::Dependencies->req_ok_for ('rdbms_mysql')) { + $tester->skip_tests('You need to install ' . DBIx::Class::Optional::Dependencies->req_missing_for ('rdbms_mysql')); +} else { diag $skip_rels_msg if not $test_innodb; $tester->run_tests();