Commit 97080dca authored by IKEDA Soji's avatar IKEDA Soji
Browse files

Test: compile_executables: Fixed that Test::Compile 2.3.0 ignores *.fcgi files.

parent 6eff95f3
......@@ -8,17 +8,25 @@ use warnings;
use English qw(-no_match_vars);
use Test::More;
BEGIN { eval 'use Test::Compile qw(all_pl_files_ok)'; }
unless ($Test::Compile::VERSION) {
BEGIN { eval 'use Test::Compile::Internal'; }
unless ($Test::Compile::Internal::VERSION) {
my $msg = 'Test::Compile required';
plan(skip_all => $msg);
}
all_pl_files_ok(
} else {
my $test = Test::Compile::Internal->new;
my @files = (
##<po/*.pl>,
<src/sbin/*.pl>,
<src/bin/*.pl>,
<src/libexec/*.pl>,
'src/cgi/wwsympa.fcgi',
'src/cgi/sympa_soap_server.fcgi',
);
);
$test->plan(tests => scalar @files);
foreach my $file (@files) {
my $ok = $test->pl_file_compiles($file);
$test->ok($ok, $file);
$test->diag("$file does not compile") unless $ok;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment