Subject: | Skip fcgi tests when FCGI.pm is not installed |
box: FreeBSD chaos.mindimage.net 6.0-RELEASE i386
perl: This is perl, v5.8.7 built for i386-freebsd-64int
The box I'm on does not have FCGI.pm install which is causing the following test to fail:
t/fcgi..........NOK 2
# Failed test (t/fcgi.t at line 16)
# Tried to use 'Continuity::Adapt::FCGI'.
# Error: Can't locate FCGI.pm in @INC (@INC contains: /root/.cpan/build/Continuity-0.9/
blib/lib /root/.cpan/build/Continuity-0.9/blib/arch /usr/local/lib/perl5/site_perl/5.8.7/
mach /usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl /usr/local/lib/
perl5/5.8.7/BSDPAN /usr/local/lib/perl5/5.8.7/mach /usr/local/lib/perl5/5.8.7 .) at /
root/.cpan/build/Continuity-0.9/blib/lib/Continuity/Adapt/FCGI.pm line 5.
# BEGIN failed--compilation aborted at t/fcgi.t line 16.
# Compilation failed in require at (eval 10) line 2.
# BEGIN failed--compilation aborted at (eval 10) line 2.
# Looks like you failed 1 test of 2.
t/fcgi..........dubious
Test returned status 1 (wstat 256, 0x100)
You could look at CGI.pm's tests related to CGI::Fast to see how it does a similar skip