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