use vars '%opt';
BEGIN { map { $opt{$_}=1 if s/^-// } @ARGV; }
use constant DEBUG => (exists $opt{d} ? 1 : 0);
-local $SIG{__WARN__} = sub { diag "[warn] ", @_; };
use FindBin qw/$Bin/;
maybe_plan(3, 'Template', 'Test::Differences')
}
use Test::Differences;
-
+
use SQL::Translator;
use SQL::Translator::Producer::TTSchema;
ok $out ne "" ,"Produced something!";
local $/ = undef; # slurp
eq_or_diff $out, <DATA> ,"Output looks right";
-# I'm not sure if this diff is the best test, it is probaly too sensitive. But
-# it at least it will blow up if anything changes!
print $out if DEBUG;
#print "Debug:", Dumper($obj) if DEBUG;