X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=t%2F2-input-pdf.t;h=84b5697ff48d53b169f80b4e5fc20dfbb1ad57a4;hb=e4c102564496b8bc44b63bec5b6e7b36875bd66f;hp=6a2151a7b7bc9b5f0cca18648b51dfaff01c9cf8;hpb=5d5fc808565b88bca0e2d10aa62bd89c7e748743;p=webpac2 diff --git a/t/2-input-pdf.t b/t/2-input-pdf.t index 6a2151a..84b5697 100755 --- a/t/2-input-pdf.t +++ b/t/2-input-pdf.t @@ -3,11 +3,20 @@ use strict; use blib; -use Test::More tests => 11; +use Test::More; BEGIN { -use_ok( 'WebPAC::Test' ); -use_ok( 'WebPAC::Input' ); + + eval "use CAM::PDF"; + + if ( $@ ) { + plan skip_all => "CAM::PDF required for WebPAC::Input::PDF"; + } else { + plan tests => 11; + } + + use_ok( 'WebPAC::Test' ); + use_ok( 'WebPAC::Input' ); } my $module = 'WebPAC::Input::PDF';