On 27/03/2010 10:35, Gabor Szabo wrote:
Hi,

I am trying to create a Makefile.PL using Module::Install for Bugzilla so
it can be uploaded to CPAN. There are many issues I'll have to deal with but
here is one that might be relevant to others.

Currently Bugzilla can be installed with either MySQL, PostgreSQL or Oracle.
When checking for the prerequisites I'd like to let the user tell
which one she is
going to use and then make sure the relevant database driver is installed.

How would you do this and how should that be done so automated testers
will also be able to test the package?

regards
   Gabor

I don't think this is going to be that easy. I don't use Module::Install, I usually use ExtUtils::MakeMaker but I think the same applies. You need to use "prompt" with a default answer to ask questions so automated testers don't get prompted but how you will work that with a default I'm not sure unless you default to none and omit those tests for automated testers. Does Test::Database have a role here?

Martin

--
Martin J. Evans
Easysoft Limited
http://www.easysoft.com

Reply via email to