Bug 929: Follow up adding the Koha:: namespace to the list of modules to test

This commit is contained in:
Chris Cormack 2012-01-12 20:16:52 +13:00 committed by Paul Poulain
parent 71d2d81e34
commit e6bbb97942
1 changed files with 18 additions and 0 deletions

View File

@ -32,4 +32,22 @@ find({
use_ok($m) || BAIL_OUT("***** PROBLEMS LOADING FILE '$m'");
},
}, $lib);
$lib = File::Spec->rel2abs('Koha');
find(
{
bydepth => 1,
no_chdir => 1,
wanted => sub {
my $m = $_;
return unless $m =~ s/[.]pm$//;
$m =~ s{^.*/Koha/}{Koha/};
$m =~ s{/}{::}g;
use_ok($m) || BAIL_OUT("***** PROBLEMS LOADING FILE '$m'");
},
},
$lib
);
done_testing();