| 1 |
#!perl |
| 2 |
# Copyright 2022 Jeffrey Kegler |
| 3 |
# This file is part of Marpa::R2. Marpa::R2 is free software: you can |
| 4 |
# redistribute it and/or modify it under the terms of the GNU Lesser |
| 5 |
# General Public License as published by the Free Software Foundation, |
| 6 |
# either version 3 of the License, or (at your option) any later version. |
| 7 |
# |
| 8 |
# Marpa::R2 is distributed in the hope that it will be useful, |
| 9 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11 |
# Lesser General Public License for more details. |
| 12 |
# |
| 13 |
# You should have received a copy of the GNU Lesser |
| 14 |
# General Public License along with Marpa::R2. If not, see |
| 15 |
# http://www.gnu.org/licenses/. |
| 16 |
|
| 17 |
use 5.010001; |
| 18 |
use strict; |
| 19 |
use warnings; |
| 20 |
use English qw( -no_match_vars ); |
| 21 |
use Fatal qw( open close ); |
| 22 |
|
| 23 |
my %exclude = map { ( $_, 1 ) } qw(); |
| 24 |
|
| 25 |
open my $manifest, '<', '../MANIFEST' |
| 26 |
or Marpa::R2::exception("open of ../MANIFEST failed: $ERRNO"); |
| 27 |
|
| 28 |
my @test_files = (); |
| 29 |
FILE: while ( my $file = <$manifest> ) { |
| 30 |
chomp $file; |
| 31 |
$file =~ s/\s*[#].*\z//xms; |
| 32 |
next FILE if $exclude{$file}; |
| 33 |
my ($ext) = $file =~ / [.] ([^.]+) \z /xms; |
| 34 |
given ( lc $ext ) { |
| 35 |
when (undef) { |
| 36 |
break |
| 37 |
} |
| 38 |
when ('pl') { say $file or die "Cannot say: $ERRNO" } |
| 39 |
when ('pm') { say $file or die "Cannot say: $ERRNO" } |
| 40 |
when ('t') { say $file or die "Cannot say: $ERRNO" } |
| 41 |
} ## end given |
| 42 |
} ## end while ( my $file = <$manifest> ) |
| 43 |
|
| 44 |
close $manifest; |