6 use File::Spec::Functions qw(catfile updir tmpdir);
7 use File::Temp qw(mktemp);
11 my @script = qw(blib script sqlt-diagram);
12 my @data = qw(data mysql Apache-Session-MySQL.sql);
14 my $sqlt_diagram = (-d "blib")
15 ? catfile($Bin, updir, @script)
16 : catfile($Bin, @script);
18 my $test_data = (-d "t")
19 ? catfile($Bin, @data)
20 : catfile($Bin, "t", @data);
22 my $tmp = mktemp('sqlXXXXX');
30 if ($@ && $@ =~ /locate GD.pm in /) {
31 skip($@, "GD not installed");
32 skip($@, "GD not installed");
34 my @cmd = ($sqlt_diagram, "-d", "MySQL", "-o", $tmp, $test_data);
35 eval { system(@cmd); };
38 eval { unlink $tmp; };