added test to check for correct file count in common tests
[dbsrgits/DBIx-Class-Schema-Loader.git] / t / 16mssql_odbc_common.t
1 use strict;
2 use lib qw(t/lib);
3 use dbixcsl_common_tests;
4 use dbixcsl_mssql_extra_tests;
5
6 my $dsn      = $ENV{DBICTEST_MSSQL_ODBC_DSN} || '';
7 my $user     = $ENV{DBICTEST_MSSQL_ODBC_USER} || '';
8 my $password = $ENV{DBICTEST_MSSQL_ODBC_PASS} || '';
9
10 my $tester = dbixcsl_common_tests->new(
11     vendor      => 'mssql',
12     auto_inc_pk => 'INTEGER IDENTITY NOT NULL PRIMARY KEY',
13     dsn         => $dsn,
14     user        => $user,
15     password    => $password,
16     extra       => dbixcsl_mssql_extra_tests->extra,
17 );
18
19 if( !$dsn || !$user ) {
20     $tester->skip_tests('You need to set the DBICTEST_MSSQL_ODBC_DSN, _USER, and _PASS environment variables');
21 }
22 else {
23     $tester->run_tests();
24 }