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
314d897f
Unverified
Commit
314d897f
authored
Oct 10, 2019
by
IKEDA Soji
Committed by
GitHub
Oct 10, 2019
Browse files
Merge pull request #772 from ikedas/sympa-6.2 by ikedas
Test: Supports recent version of Test::Compile
parents
6eff95f3
97080dca
Changes
1
Hide whitespace changes
Inline
Side-by-side
t/compile_executables.t
View file @
314d897f
...
...
@@ -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