X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F10_02mysql_common.t;h=e850cbf1b2b95b4dec2be00168e00f18510491d0;hb=4fb2971cd5784d8bc64f98052e691db9df697516;hp=26f086a530bf05bffcf55b7e4ee091962183f3bc;hpb=c2911c59a8f650e836fe890865bded98e7bf3410;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/t/10_02mysql_common.t b/t/10_02mysql_common.t index 26f086a..e850cbf 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'; @@ -504,6 +505,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();