X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fbackcompat%2F0.04006%2F13db2_common.t;h=1c5a9c44f0010952094522e296822648e51e9518;hb=f8c2ca5eac1d4782c1d5be369c9bd0dcf680cb9d;hp=b52fa68f5e72b0b5f36e431f37759cb597e17d4e;hpb=9a95164df15467a6f94d3d74e8f3b508b6607e23;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/t/backcompat/0.04006/13db2_common.t b/t/backcompat/0.04006/13db2_common.t index b52fa68..1c5a9c4 100644 --- a/t/backcompat/0.04006/13db2_common.t +++ b/t/backcompat/0.04006/13db2_common.t @@ -1,23 +1,21 @@ +use DBIx::Class::Schema::Loader::Optional::Dependencies + -skip_all_without => qw(test_backcompat test_rdbms_db2); + use strict; -use lib qw(t/lib); +use warnings; +use lib qw(t/backcompat/0.04006/lib); use dbixcsl_common_tests; +use Test::More; my $dsn = $ENV{DBICTEST_DB2_DSN} || ''; my $user = $ENV{DBICTEST_DB2_USER} || ''; my $password = $ENV{DBICTEST_DB2_PASS} || ''; -my $tester = dbixcsl_common_tests->new( +dbixcsl_common_tests->new( vendor => 'DB2', auto_inc_pk => 'INTEGER GENERATED BY DEFAULT AS IDENTITY NOT NULL PRIMARY KEY', dsn => $dsn, user => $user, password => $password, db_schema => uc $user, -); - -if( !$dsn || !$user ) { - $tester->skip_tests('You need to set the DBICTEST_DB2_DSN, _USER, and _PASS environment variables'); -} -else { - $tester->run_tests(); -} +)->run_tests();