detect row_number() over support in MSSQL if version detection fails
[dbsrgits/DBIx-Class.git] / t / storage / deploy.t
CommitLineData
4068e05f 1use strict;
2use warnings;
3
4use Test::More;
5
6use lib qw(t/lib);
7use DBICTest;
8
9use File::Spec;
10use File::Path qw/ mkpath rmtree /;
11
12
13my $schema = DBICTest->init_schema();
14
15my $var = File::Spec->catfile(qw| t var create_ddl_dir |);
16-d $var
17 or mkpath($var)
18 or die "can't create $var";
19
20my $test_dir_1 = File::Spec->catdir( $var, 'test1', 'foo', 'bar' );
21rmtree( $test_dir_1 ) if -d $test_dir_1;
22$schema->create_ddl_dir( undef, undef, $test_dir_1 );
23
24ok( -d $test_dir_1, 'create_ddl_dir did a mkpath on its target dir' );
25ok( scalar( glob $test_dir_1.'/*.sql' ), 'there are sql files in there' );
26
27TODO: {
28 local $TODO = 'we should probably add some tests here for actual deployability of the DDL?';
29 ok( 0 );
30}
31
32done_testing;