use File::Path 'remove_tree';
use lib 't/lib';
+use DBICDHTest;
use DBICTest;
use DBIx::Class::DeploymentHandler;
my $db = 'dbi:SQLite:db.db';
my @connection = ($db, '', '', { ignore_version => 1 });
my $sql_dir = 't/sql';
-unlink 'db.db' if -e 'db.db';
-if (-d 't/sql') {
- remove_tree('t/sql');
- mkdir 't/sql';
-}
+DBICDHTest::ready;
VERSION1: {
use_ok 'DBICVersion_v1';
--- /dev/null
+#!perl
+
+use Test::More;
+use Test::Exception;
+
+use lib 't/lib';
+use DBICDHTest;
+use DBICTest;
+use_ok 'DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator';
+
+done_testing;
--- /dev/null
+
+#!perl
+
+use Test::More;
+use Test::Exception;
+
+use lib 't/lib';
+use DBICDHTest;
+use DBICTest;
+use_ok 'DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator::Deprecated';
+
+done_testing;
--- /dev/null
+package DBICDHTest;
+
+use strict;
+use warnings;
+
+use File::Path 'remove_tree';
+
+sub ready {
+ unlink 'db.db' if -e 'db.db';
+ if (-d 't/sql') {
+ remove_tree('t/sql');
+ mkdir 't/sql';
+ }
+}
+
+
+1;
use Test::Exception;
use lib 't/lib';
+use DBICDHTest;
use DBICTest;
use DBIx::Class::DeploymentHandler;
use DBIx::Class::DeploymentHandler::VersionHandler::ExplicitVersions;
my @connection = ($db, '', '', { ignore_version => 1 });
my $sql_dir = 't/sql';
-unlink 'db.db' if -e 'db.db';
-if (-d 't/sql') {
- unlink $_ for glob('t/sql/*');
-} else {
- mkdir 't/sql';
-}
+DBICDHTest::ready;
use DBICVersion_v1;
my $s = DBICVersion::Schema->connect(@connection);
use Test::Exception;
use lib 't/lib';
+use DBICDHTest;
use DBICTest;
use DBIx::Class::DeploymentHandler;
use DBIx::Class::DeploymentHandler::VersionHandler::ExplicitVersions;
my @connection = ($db, '', '', { ignore_version => 1 });
my $sql_dir = 't/sql';
-unlink 'db.db' if -e 'db.db';
-if (-d 't/sql') {
- unlink $_ for glob('t/sql/*');
-} else {
- mkdir 't/sql';
-}
+DBICDHTest::ready;
use DBICVersion_v1;
my $s = DBICVersion::Schema->connect(@connection);
--- /dev/null
+#!perl
+
+use Test::More;
+use Test::Exception;
+
+use lib 't/lib';
+use DBICDHTest;
+use DBICTest;
+use_ok 'DBIx::Class::DeploymentHandler::VersionStorage::Standard';
+
+done_testing;
--- /dev/null
+#!perl
+
+use Test::More;
+use Test::Exception;
+
+use lib 't/lib';
+use DBICDHTest;
+use DBICTest;
+use_ok 'DBIx::Class::DeploymentHandler::VersionStorage::Standard';
+
+done_testing;