From 0818de56d2ac340b76e9d2d153a40c6e58b4b4be Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Mon, 22 Sep 2008 15:34:42 +0000 Subject: [PATCH] make CAM::PDF really optional git-svn-id: svn+ssh://mjesec/home/dpavlin/svn/webpac2/trunk@1117 07558da8-63fa-0310-ba24-9fe276d99e06 --- t/2-input-pdf.t | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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'; -- 2.20.1