use strict;
use lib qw(t/backcompat/0.04006/lib);
use dbixcsl_common_tests;
+use Test::More;
+plan skip_all => 'Backcompat tests disabled'
+ unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
eval { require DBD::SQLite };
my $class = $@ ? 'SQLite2' : 'SQLite';
use strict;
-use lib qw(t/lib);
+use lib qw(t/backcompat/0.04006/lib);
use dbixcsl_common_tests;
+use Test::More;
+plan skip_all => 'Backcompat tests disabled'
+ unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
+
my $dsn = $ENV{DBICTEST_MYSQL_DSN} || '';
my $user = $ENV{DBICTEST_MYSQL_USER} || '';
use strict;
-use lib qw(t/lib);
+use lib qw(t/backcompat/0.04006/lib);
use dbixcsl_common_tests;
+use Test::More;
+plan skip_all => 'Backcompat tests disabled'
+ unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
+
my $dsn = $ENV{DBICTEST_PG_DSN} || '';
my $user = $ENV{DBICTEST_PG_USER} || '';
use strict;
-use lib qw(t/lib);
+use lib qw(t/backcompat/0.04006/lib);
use dbixcsl_common_tests;
+use Test::More;
+plan skip_all => 'Backcompat tests disabled'
+ unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
+
my $dsn = $ENV{DBICTEST_DB2_DSN} || '';
my $user = $ENV{DBICTEST_DB2_USER} || '';
use strict;
-use lib qw(t/lib);
+use lib qw(t/backcompat/0.04006/lib);
use dbixcsl_common_tests;
+use Test::More;
+plan skip_all => 'Backcompat tests disabled'
+ unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
+
my $dsn = $ENV{DBICTEST_ORA_DSN} || '';
my $user = $ENV{DBICTEST_ORA_USER} || '';
use strict;
use Test::More;
-use lib qw(t/lib);
+use lib qw(t/backcompat/0.04006/lib);
use make_dbictest_db;
+use Test::More;
+plan skip_all => 'Backcompat tests disabled'
+ unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
+
# Takes a $schema as input, runs 4 basic tests
sub test_schema {
use strict;
use Test::More;
-use lib qw(t/lib);
+use lib qw(t/backcompat/0.04006/lib);
use make_dbictest_db;
+use Test::More;
+plan skip_all => 'Backcompat tests disabled'
+ unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
+
{
$INC{'DBIx/Class/Storage/xyzzy.pm'} = 1;
use strict;
use Test::More;
-use lib qw(t/lib);
+use lib qw(t/backcompat/0.04006/lib);
use File::Path;
use make_dbictest_db;
+use Test::More;
+plan skip_all => 'Backcompat tests disabled'
+ unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
+
my $dump_path = './t/_dump';
use strict;
use Test::More;
-use lib qw(t/lib);
+use lib qw(t/backcompat/0.04006/lib);
use File::Path;
use make_dbictest_db;
require DBIx::Class::Schema::Loader;
+use Test::More;
+plan skip_all => 'Backcompat tests disabled'
+ unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
+
$^O eq 'MSWin32'
? plan(skip_all => "ActiveState perl produces additional warnings, and this test uses unix paths")