X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F13db2_common.t;h=b27ef4faedd1014044edafbfffcf010692f7d77a;hb=383e45e29928fca470cfcec36672ec44ce39c789;hp=cee99b2d435e71fd0d9be4095fb42c3953fa8e87;hpb=9b046d97d04d7adf9a43167666d8793a54eb6a62;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/t/13db2_common.t b/t/13db2_common.t index cee99b2..b27ef4f 100644 --- a/t/13db2_common.t +++ b/t/13db2_common.t @@ -1,21 +1,22 @@ use strict; -use lib qw( . ./t ); +use lib qw(t/lib); use dbixcsl_common_tests; -my $database = $ENV{DB2_NAME} || ''; -my $user = $ENV{DB2_USER} || ''; -my $password = $ENV{DB2_PASS} || ''; +my $dsn = $ENV{DBICTEST_DB2_DSN} || ''; +my $user = $ENV{DBICTEST_DB2_USER} || ''; +my $password = $ENV{DBICTEST_DB2_PASS} || ''; my $tester = dbixcsl_common_tests->new( - vendor => 'DB2', - auto_inc_pk => 'INTEGER GENERATED BY DEFAULT AS IDENTITY NOT NULL PRIMARY KEY', - dsn => "dbi:DB2:$database", - user => $user, - password => $password, + vendor => 'DB2', + auto_inc_pk => 'INTEGER GENERATED BY DEFAULT AS IDENTITY NOT NULL PRIMARY KEY', + dsn => $dsn, + user => $user, + password => $password, + null => '', ); -if( !$database || !$user ) { - $tester->skip_tests('You need to set the DB2_NAME, DB2_USER and DB2_PASS environment variables'); +if( !$dsn || !$user ) { + $tester->skip_tests('You need to set the DBICTEST_DB2_DSN, _USER, and _PASS environment variables'); } else { $tester->run_tests();