4 use File::Spec::Functions qw(catfile updir tmpdir);
5 use File::Temp qw(mktemp);
8 use Test::SQL::Translator qw(maybe_plan);
13 'SQL::Translator::Parser::MySQL',
14 'SQL::Translator::Producer::Diagram',
19 my @script = qw(script sqlt-diagram);
20 my @data = qw(data mysql Apache-Session-MySQL.sql);
22 my $sqlt_diagram = catfile($Bin, updir, @script);
23 my $test_data = catfile($Bin, @data);
25 my $tmp = mktemp('sqlXXXXX');
28 my @cmd = ($^X, $sqlt_diagram, "-d", "MySQL", "-o", $tmp, $test_data);
29 eval { system(@cmd); };
32 eval { unlink $tmp; };