6 use File::Spec::Functions qw(catfile updir tmpdir);
10 my @script = qw(blib script sqlt-diff);
11 my @create1 = qw(data sqlite create.sql);
12 my @create2 = qw(data sqlite create2.sql);
14 my $sqlt_diff = (-d "blib")
15 ? catfile($Bin, updir, @script)
16 : catfile($Bin, @script);
18 my $create1 = (-d "t")
19 ? catfile($Bin, @create1)
20 : catfile($Bin, "t", @create1);
22 my $create2 = (-d "t")
23 ? catfile($Bin, @create2)
24 : catfile($Bin, "t", @create2);
29 my @cmd = ($sqlt_diff, "$create1=SQLite", "$create2=SQLite");
34 like($out, qr/ is missing field/, "Detected missing field 'lemon'");