support for SQL Anywhere
[dbsrgits/DBIx-Class-Schema-Loader.git] / t / 17sybase_asa_common.t
1 use strict;
2 use lib qw(t/lib);
3 use dbixcsl_common_tests;
4
5 # The default max_cursor_count and max_statement_count settings of 50 are too
6 # low to run this test.
7
8 my $dsn      = $ENV{DBICTEST_SYBASE_ASA_DSN} || '';
9 my $user     = $ENV{DBICTEST_SYBASE_ASA_USER} || '';
10 my $password = $ENV{DBICTEST_SYBASE_ASA_PASS} || '';
11
12 my $tester = dbixcsl_common_tests->new(
13     vendor      => 'SQLAnywhere',
14     auto_inc_pk => 'INTEGER IDENTITY NOT NULL PRIMARY KEY',
15     default_function => 'current timestamp',
16     dsn         => $dsn,
17     user        => $user,
18     password    => $password,
19 );
20
21 if( !$dsn ) {
22     $tester->skip_tests('You need to set the DBICTEST_SYBASE_ASA_DSN, _USER, and _PASS environment variables');
23 }
24 else {
25     $tester->run_tests();
26 }