> Other DBD::* modules require DBI_DSN, DBI_USER, DBI_PASS to run the
> tests.  Without the correct setup installing from CPAN will fail.

The most recent versions of DBD::ODBC's tests, however, gracefully handle
DBI_DSN being undefined for just this purpose (and ActiveState's repository
builds, too).

In the BEGIN block, code such as what's below helps allow CPAN and
ActiveState's binary repository build run without the environment set.  Of
course this doesn't help if the ODBC driver manager is not there, but what's
below is probably the best compromise.

   unless (defined $ENV{DBI_DSN}) {
      print "1..0 # Skipped: DBI_DSN is undefined\n";
      exit;
   }

Regards,

Jeff


Reply via email to