initial import of Sybase/MSSQL support
[dbsrgits/DBIx-Class-Schema-Loader.git] / t / 15sybase_common.t
1 use strict;
2 use lib qw(t/lib);
3 use dbixcsl_common_tests;
4
5 my $dsn      = $ENV{DBICTEST_SYBASE_DSN} || '';
6 my $user     = $ENV{DBICTEST_SYBASE_USER} || '';
7 my $password = $ENV{DBICTEST_SYBASE_PASS} || '';
8
9 my $tester = dbixcsl_common_tests->new(
10     vendor      => 'Sybase',
11     quote_char  => [qw/[ ]/],
12     auto_inc_pk => 'INTEGER IDENTITY NOT NULL PRIMARY KEY',
13     dsn         => $dsn,
14     user        => $user,
15     password    => $password,
16 );
17
18 if( !$dsn || !$user ) {
19     $tester->skip_tests('You need to set the DBICTEST_SYBASE_DSN, _USER, and _PASS environment variables');
20 }
21 else {
22     $tester->run_tests();
23 }