1 # This script is called by the pre-commit git hook to test modules compile
9 my $lib = File::Spec->rel2abs('C4');
15 return unless $m =~ s/[.]pm$//;
16 $m =~ s{^.*/C4/}{C4/};
18 return if $m =~ /Auth_with_ldap/; # Dont test this, it will fail on use
19 return if $m =~ /SIP/; # SIP modules will not load clean
20 return if $m =~ /C4::VirtualShelves$/; # Requires a DB
21 return if $m =~ /C4::Auth$/; # DB
22 return if $m =~ /C4::ILSDI::Services/; # DB
23 return if $m =~ /C4::Tags$/; # DB
24 return if $m =~ /C4::Service/; # DB
25 return if $m =~ /C4::Auth_with_cas/; # DB
26 return if $m =~ /C4::BackgroundJob/; # DB
27 return if $m =~ /C4::UploadedFile/; # DB
28 return if $m =~ /C4::Reports::Guided/; # DB
29 return if $m =~ /C4::VirtualShelves::Page/; # DB
30 return if $m =~ /C4::Members::Statistics/; # DB
31 return if $m =~ /C4::Serials/; # needs context
32 return if $m =~ /C4::Search::History/; # needs context
33 use_ok($m) || BAIL_OUT("***** PROBLEMS LOADING FILE '$m'");
37 $lib = File::Spec->rel2abs('Koha');
44 return unless $m =~ s/[.]pm$//;
45 $m =~ s{^.*/Koha/}{Koha/};
47 return if $m =~ /Koha::SearchEngine/; # Koha::SearchEngine::* are experimental
48 use_ok($m) || BAIL_OUT("***** PROBLEMS LOADING FILE '$m'");