6 use File::Spec::Functions qw(catfile updir tmpdir);
7 use File::Temp qw(tempfile);
11 my @script = qw(blib script sqlt-diagram.pl);
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 (undef, $tmp) = tempfile("sqlXXXXX",
34 if ($@ && $@ =~ /locate GD.pm in /) {
35 skip($@, "GD not installed");
36 skip($@, "GD not installed");
38 my @cmd = ($sqlt_diagram, "-d", "MySQL", "-o", $tmp, $test_data);
39 eval { system(@cmd); };