some shuffling/refactoring of the relationship code, and a TODO file added
[dbsrgits/DBIx-Class-Schema-Loader.git] / t / 12pg_common.t
CommitLineData
a78e3fed 1use strict;
2use lib qw( . ./t );
fbd83464 3use dbixcsl_common_tests;
a78e3fed 4
5my $database = $ENV{PG_NAME} || '';
6my $user = $ENV{PG_USER} || '';
7my $password = $ENV{PG_PASS} || '';
8
fbd83464 9my $tester = dbixcsl_common_tests->new(
a78e3fed 10 vendor => 'Pg',
11 auto_inc_pk => 'SERIAL NOT NULL PRIMARY KEY',
12 dsn => "dbi:Pg:dbname=$database",
13 user => $user,
14 password => $password,
15);
16
17if( !$database || !$user ) {
18 $tester->skip_tests('You need to set the PG_NAME, PG_USER and PG_PASS environment variables');
19}
20else {
21 $tester->run_tests();
22}