Hi!

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.

Relying on module availability alone is not always enough. Makefile.PL only checks if the modules are installed (and the CPAN shell can install them automatically if not).

But: That still doesn't mean i can run my own tests. For example, if the memcached daemon isn't running but the Cache::Memcached module is installed anyway, i won't be able to run some of my tests.

Of course, i can make most of these tests optional (only run if memcached works), meaning i probably skip a major part of the module tests. While the module might work perfectly well if configured with memcached on another server
during runtime, it also means i wont KNOW it until its showtime.

I'm pretty confident that i wont have troubles with DBD::Pg, but i already had troubles with a recent Cache::Memcached on Windows/ActivePerl (my module has a fallback-solution to a hacked version of that module, but still...).

LG
Rene
--
#!/usr/bin/perl # 99 bottles Wikipedia Edition
$c=99;do{print "$c articles of wikipedia on the net,\n$c articles of wiki".
"pedia,\ndiscuss one at length, delete it at will,\n".--$c." articles of ".
"wikipedia on the net.\n\n";}while($c);print"So long & thx for the fish\n";

Reply via email to