2 # Copyright (C) 2007-2008, Parrot Foundation.
13 my $pmc_dir = File::Spec->catfile(qw( src pmc *.pmc ));
14 my @pmcs = grep { contains_pccmethod($_) } glob($pmc_dir);
15 my $find_pmc = join( '|', map { s/\.pmc/\.dump/; quotemeta( $_ ) } @pmcs );
16 my $find_rx = qr/^($find_pmc) : (.*)/;
18 open( my $fh, '<', 'Makefile' ) or die "Can't read Makefile: $!\n";
20 plan( tests => scalar @pmcs );
23 next unless /$find_rx/;
24 my ($file, $dependencies) = ($1, $2);
26 ok( $dependencies =~ /PCCMETHOD\.pm/,
27 "$file should mark PCCMETHOD.pm dependency in Makefile" );
30 sub contains_pccmethod {
32 open( my $fh, '<', $file ) or die "Can't read '$file': $!\n";
45 # cperl-indent-level: 4
48 # vim: expandtab shiftwidth=4: