From bbe2046a17952291153f1fc41f9ddde1b4fe8feb Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Thu, 22 Mar 2012 11:23:24 -0600 Subject: [PATCH] add test script for mysql --- t/mysql.t | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 t/mysql.t diff --git a/t/mysql.t b/t/mysql.t new file mode 100644 index 0000000..3832fb3 --- /dev/null +++ b/t/mysql.t @@ -0,0 +1,16 @@ +use strict; +use warnings; +use lib 't/lib'; +use DBSchema; +use RunTests; +use Test::More; + +my ( $dsn, $user, $pass ) = + @ENV{ map {"DBICTEST_MYSQL_${_}"} qw/DSN USER PASS/ }; + +plan skip_all => 'Set $ENV{DBICTEST_MYSQL_DSN}, _USER and _PASS to run this test' + . ' (note: creates and tables!)' + unless ( $dsn && $user ); + +my $schema = DBSchema->get_test_schema( $dsn, $user, $pass, ); +run_tests($schema); -- 2.45.2