Adding Sybase parser test.
Ken Youens-Clark [Mon, 18 Aug 2003 18:04:00 +0000 (18:04 +0000)]
t/19sybase-parser.t [new file with mode: 0644]

diff --git a/t/19sybase-parser.t b/t/19sybase-parser.t
new file mode 100644 (file)
index 0000000..1ee4260
--- /dev/null
@@ -0,0 +1,22 @@
+#!/usr/bin/perl
+# vim: set ft=perl ts=4 et:
+#
+
+use strict;
+
+use FindBin qw/$Bin/;
+use Test::More 'no_plan'; #tests => 1;
+use SQL::Translator;
+use SQL::Translator::Parser::Sybase qw(parse);
+
+my $file = "$Bin/data/sybase/create.sql";
+
+ok( -e $file, "File exists" );
+
+my $t = SQL::Translator->new;
+
+my $val = parse($t, $file);
+
+my $schema = $t->schema;
+is( $schema->is_valid, 1, 'Schema is valid' );
+my @tables = $schema->get_tables;