X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=t%2Fdb_colinfo.t;h=8f38f3bea85b3b901807b81f029a5be019ace354;hb=01323f127ddaf8eb9bd9b9d9ea8bcd6a6fd8a49e;hp=74dea75bee3c7b728d67ec2a01a2d855a3f8ae93;hpb=79aa8d27d124d06bf88b2fc0487ae97563b98936;p=maypole.git diff --git a/t/db_colinfo.t b/t/db_colinfo.t index 74dea75..8f38f3b 100755 --- a/t/db_colinfo.t +++ b/t/db_colinfo.t @@ -1,9 +1,17 @@ #!/usr/bin/perl -w use Test::More; use Data::Dumper; +use DBI; use lib 'examples'; # Where BeerDB should live BEGIN { - plan tests => 45; + my $drh = eval { + DBI->install_driver("mysql"); + my @databases = DBI->data_sources("mysql"); + die "couldn't connect to mysql" unless (@databases); + }; + warn "error : $@ \n" if ($@); + my $testcount = ($@) ? 45 : 65 ; + plan tests => $testcount; } $db = 'test';