On Jan 17, 2008 5:59 PM, Patrick Galbraith <[EMAIL PROTECTED]> wrote:

> I get emails from the cpan automated testing that list failures, but the
> failures are not the driver two main things:
>
> 1. Can't find mysql_config. This script prints out the compile options,
> paths, etc


DBD::Informix does a check that the ESQL/C compiler that is needed is
present and can be used to connect to a test database.  If that doesn't
work, the Makefile is not generated, and if the Makefile is not generated, I
believe the CPAN testing doesn't report it as a problem.

I originally instituted those checks before CPAN had the testing in place -
it was a self-protection forced on me because my original expectation that
people installing DBD::Informix would be sufficiently experienced users with
working Informix installations turned out to be incorrect; many people
attempted to use DBD::Informix as their first introduction to Informix.



> 2. During make test, can't connect because I don't set a password or
> user name unless "perl Makefile.PL --testuser=<user>" is specified. I
> could just use "root" and a blank password and have it work for more
> installations, but I still I can't assume any particular
> username/password is going to work. "root" could be set with a
> particular password as well.
>
> So, I'm wondering how other driver maintainers deal with these types of
> issues. Surely there are parallels to the types of issues I have with
> MySQL. <http://www.grazr.com>
>


I have an elaborate set of environment variables that people can set to
control what the testing (of DBD::Informix) does, so they can choose
database, username, password (and a second set for testing multiple
connections from a single script) and so on and so forth.  All those env
vars start DBD_INFORMIX_xxxx (where xxx is the meaningful part of the name -
eg DATABASE).


-- 
Jonathan Leffler <[EMAIL PROTECTED]>  #include <disclaimer.h>
Guardian of DBD::Informix - v2007.0914 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be
amused."

Reply via email to