diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-10-14 13:15:12 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-10-14 13:15:12 -0400 |
commit | 57a135c92ac33f792d138fcdbeb72e8ad5f37670 (patch) | |
tree | a4945a49e4a2a0364abf02f26a2fa4575908f5c7 /t | |
parent | ef7bddbc3693d7abf227100a9a9bc21d186dfada (diff) |
abort test if cvs prereq perl modules are not available
Diffstat (limited to 't')
-rwxr-xr-x | t/cvs.t | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; |