On Sun, Dec 13, 2009 at 08:08:07PM +0200, Burak G?rsoy wrote:

> > Except for really simple tests, having PostgreSQL server and memcached
> > installed is quite essential (both cam be started as temporary
> > instances if required as long as the binaries are available).
> > 
> > What is the reasonable response if one or both of them are not
> > available during "make test"?

Don't get as far as 'make test'.  exit(0) in Makefile.PL *before*
writing Makefile if they're not available.  However, I presume that
you're using DBD::Pg for Postgres and Cache::Memcached for memcache
access, so can you just rely on those modules to not be available if the
necessary underlying libs and servers aren't available?  Then CPAN.pm
will magickally detect that your pre-reqs aren't available, and suppress
the results of make test.

-- 
David Cantrell | London Perl Mongers Deputy Chief Heretic

    Seven o'clock in the morning is something that
    happens to those less fortunate than me

Reply via email to