Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
97080dca
Commit
97080dca
authored
Oct 10, 2019
by
IKEDA Soji
Browse files
Test: compile_executables: Fixed that Test::Compile 2.3.0 ignores *.fcgi files.
parent
6eff95f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
t/compile_executables.t
View file @
97080dca
...
...
@@ -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
);
}
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
;
}
}
all_pl_files_ok
(
##<po/*.pl>,
<
src
/sbin/
*.
pl
>
,
<
src
/bin/
*.
pl
>
,
<
src
/libexec/
*.
pl
>
,
'
src/cgi/wwsympa.fcgi
',
'
src/cgi/sympa_soap_server.fcgi
',
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment