X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F10_10informix_common.t;h=e8b6b58a8099f842d97ffb111efd507050d4d88c;hb=208bdf790f56fad2b950be62c4336b0b6f9be6ca;hp=aada1ea981bfb7a59dced168e3a729e5d9dac460;hpb=e8c7b904425c1f61a1d48ff2a294b9faf7d12b8f;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/t/10_10informix_common.t b/t/10_10informix_common.t index aada1ea..e8b6b58 100644 --- a/t/10_10informix_common.t +++ b/t/10_10informix_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 'make_schema_at'; use DBIx::Class::Schema::Loader::Utils 'split_name'; use String::ToIdentifier::EN::Unicode 'to_identifier'; @@ -335,6 +336,9 @@ EOF if( !$dsn ) { $tester->skip_tests('You need to set the DBICTEST_INFORMIX_DSN, _USER, and _PASS environment variables'); } +elsif (!DBIx::Class::Optional::Dependencies->req_ok_for ('rdbms_informix')) { + $tester->skip_tests('You need to install ' . DBIx::Class::Optional::Dependencies->req_missing_for ('rdbms_informix')); +} else { $tester->run_tests(); }