From: Joey Hess Date: Wed, 14 Oct 2009 17:15:12 +0000 (-0400) Subject: abort test if cvs prereq perl modules are not available X-Git-Tag: 3.20091017~26 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=57a135c92ac33f792d138fcdbeb72e8ad5f37670;p=ikiwiki.git abort test if cvs prereq perl modules are not available --- diff --git a/t/cvs.t b/t/cvs.t index c9caa94eb..2808973be 100755 --- a/t/cvs.t +++ b/t/cvs.t @@ -13,6 +13,14 @@ BEGIN { use Test::More skip_all => "cvs or cvsps not available or could not make test dir" } } + foreach my $module ('File::ReadBackwards', 'File::MimeInfo') { + eval qq{use $module}; + if ($@) { + eval qq{ + use Test::More skip_all => "$module not available" + } + } + } } use Test::More tests => 12;