#!perl
# Copyright 2016 Jeffrey Kegler
# This file is part of Marpa::R3. Marpa::R3 is free software: you can
# redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation,
# either version 3 of the License, or (at your option) any later version.
#
# Marpa::R3 is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser
# General Public License along with Marpa::R3. If not, see
use
5.010001;
use
strict;
use
warnings;
my
%exclude
=
map
{ (
$_
, 1 ) }
qw()
;
open
my
$manifest
,
'<'
,
'../MANIFEST'
or Marpa::R3::exception(
"open of ../MANIFEST failed: $ERRNO"
);
my
@test_files
= ();
FILE:
while
(
my
$file
= <
$manifest
> ) {
chomp
$file
;
$file
=~ s/\s*[
#].*\z//xms;
next
FILE
if
$exclude
{
$file
};
my
(
$ext
) =
$file
=~ / [.] ([^.]+) \z /xms;
given
(
lc
$ext
) {
when
(
undef
) {
break
}
when
(
'pl'
) {
say
$file
or
die
"Cannot say: $ERRNO"
}
when
(
'pm'
) {
say
$file
or
die
"Cannot say: $ERRNO"
}
when
(
't'
) {
say
$file
or
die
"Cannot say: $ERRNO"
}
}
## end given
}
## end while ( my $file = <$manifest> )
close
$manifest
;