Commit | Line | Data |
a78e3fed |
1 | use strict; |
c2849787 |
2 | use lib qw(t/lib); |
fbd83464 |
3 | use dbixcsl_common_tests; |
a78e3fed |
4 | |
9e978a19 |
5 | my $dsn = $ENV{DBICTEST_DB2_DSN} || ''; |
6 | my $user = $ENV{DBICTEST_DB2_USER} || ''; |
7 | my $password = $ENV{DBICTEST_DB2_PASS} || ''; |
a78e3fed |
8 | |
fbd83464 |
9 | my $tester = dbixcsl_common_tests->new( |
af96f52e |
10 | vendor => 'DB2', |
11 | auto_inc_pk => 'INTEGER GENERATED BY DEFAULT AS IDENTITY NOT NULL PRIMARY KEY', |
9e978a19 |
12 | dsn => $dsn, |
af96f52e |
13 | user => $user, |
14 | password => $password, |
ac5ad557 |
15 | db_schema => uc $user, |
a78e3fed |
16 | ); |
17 | |
9e978a19 |
18 | if( !$dsn || !$user ) { |
19 | $tester->skip_tests('You need to set the DBICTEST_DB2_DSN, _USER, and _PASS environment variables'); |
a78e3fed |
20 | } |
21 | else { |
22 | $tester->run_tests(); |
23 | } |