Skip Menu |

This queue is for tickets about the CGI-Session CPAN distribution.

Report information
The Basics
Id: 2221
Status: resolved
Priority: 0/
Queue: CGI-Session

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 0.01
  • 2.0
  • 2.1
  • 2.2
  • 2.4
  • 2.7
  • 2.9
  • 2.91
  • 2.92
  • 2.94
  • 3.1
  • 3.2
  • 3.2.2.1
  • 3.3
  • 3.4
  • 3.5
  • 3.6
  • 3.7
  • 3.8
  • 3.9
  • 3.10
  • 3.11
  • 3.91
  • 3.92
Fixed in: (no value)



Subject: mysql.t needs to be automated, pgsql.t and INSTALL are missing
Users should not need to modify mysql.t by commenting out print "1..0\n"; exit(); and setting my %options = ( DataSource => "DBI:mysql:test", User => "test", Password => "" ); in order to run this test. This test should be skipped if DBI, DBD::mysql or DBD::mysqlPP is not available. This test should be skipped if $ENV{MYSQL_DB} is not set. If DBD::mysqlPP or DBD::mysql was loaded successfully ($mysqlLoaded should be set accordingly) and if $ENV{MYSQL_DB} is defined, this test should be run with the following %options. my %options = ( DataSource => "DBI:$mysqlLoaded:$ENV{MYSQL_DB}", User => $ENV{MYSQL_USER}, Password => $ENV{MYSQL_PASS}, ); Also, you should add a t\pgsql.t that works the same way. You should add an INSTALL file describing what ENV vars to set to make these tests run. Thanks, PodMaster
From: "Sherzod Ruzmetov" <sherzodr [...] handalak.com>
To: <bug-CGI-Session [...] rt.cpan.org>
Subject: RE: [cpan #2221] mysql.t needs to be automated, pgsql.t and INSTALL are missing
Date: Fri, 14 Mar 2003 13:49:19 -0500
RT-Send-Cc:
Thanks. I'll make sure to apply your suggestions in the next release of the library. sherzod : Users should not need to modify mysql.t by commenting out : : print "1..0\n"; : exit(); : : and setting : : my %options = ( : DataSource => "DBI:mysql:test", : User => "test", : Password => "" : ); : : in order to run this test. : : This test should be skipped if : : DBI, DBD::mysql or DBD::mysqlPP is not available. : : This test should be skipped if $ENV{MYSQL_DB} is not set. : : If DBD::mysqlPP or DBD::mysql was loaded successfully : ($mysqlLoaded should be set accordingly) : and if $ENV{MYSQL_DB} is defined, : this test should be run with the following %options. : : my %options = ( : DataSource => "DBI:$mysqlLoaded:$ENV{MYSQL_DB}", : User => $ENV{MYSQL_USER}, : Password => $ENV{MYSQL_PASS}, : ); : : : Also, you should add a t\pgsql.t that works the same way. : : You should add an INSTALL file describing what ENV vars to set to : make these tests run. : : Thanks, PodMaster : : : :