From: Charles McGarvey Date: Thu, 22 Mar 2012 17:23:24 +0000 (-0600) Subject: add test script for mysql X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;ds=sidebyside;p=chaz%2Fp5-DBIx-Class-ResultSet-RecursiveUpdate add test script for mysql --- 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);