Commit | Line | Data |
---|---|---|
406a97c2 | 1 | use DBIx::Class::Schema::Loader::Optional::Dependencies |
2 | -skip_all_without => 'test_backcompat'; | |
3 | ||
9a95164d | 4 | use strict; |
3c10a10f | 5 | use lib qw(t/backcompat/0.04006/lib); |
9a95164d | 6 | use dbixcsl_common_tests; |
c213fd3d | 7 | use dbixcsl_test_dir qw/$tdir/; |
8 | ||
1c94fb11 | 9 | use Test::More; |
9a95164d | 10 | |
11 | eval { require DBD::SQLite }; | |
12 | my $class = $@ ? 'SQLite2' : 'SQLite'; | |
13 | ||
406a97c2 | 14 | dbixcsl_common_tests->new( |
9a95164d | 15 | vendor => 'SQLite', |
16 | auto_inc_pk => 'INTEGER NOT NULL PRIMARY KEY', | |
c213fd3d | 17 | dsn => "dbi:$class:dbname=$tdir/sqlite_test", |
9a95164d | 18 | user => '', |
19 | password => '', | |
406a97c2 | 20 | )->run_tests; |
9a95164d | 21 | |
22 | END { | |
c213fd3d | 23 | unlink "$tdir/sqlite_test" if $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT}; |
9a95164d | 24 | } |