the easiest way to do this is to let A-T run _everything_, both apache- and non-apache related things. this works for just about everything, as long as you have _some_ apache setup around (and is the approach I use most of the time now). if you want to skip over AxKit if it's not available then do something like
plan tests => 2, need_module('AxKit');
or somesuch from your foo.t files. now, that won't keep your httpd.conf from bombing so you can use -D defines to help
<IfModule mod_perl.c> <IfDefine AXKIT> PerlModule AxKit </IfDefine> </IfModule>
and so on. then use a custom TEST.PL file to specify your defines:
if (eval { require 'AxKit' }) { Apache::TestRunPerl->new->run(@ARGV, '-defines', 'AXKIT'); } else { Apache::TestRunPerl->new->run(@ARGV); }
HTH
--Geoff
Holy crapenstein. -defines. Never would've thought of that. Thanks! -=Chris
smime.p7s
Description: S/MIME Cryptographic Signature