14
14
qx{ $cgiapp_starter --mb };
16
my @expected_files = (
18
'Foo/lib/Foo.pm', 'Foo/lib/Foo',
19
'Foo/lib/Foo/templates', 'Foo/lib/Foo/templates/runmode1.html',
21
'Foo/t/pod-coverage.t', 'Foo/t/pod.t',
22
'Foo/t/test-app.t', 'Foo/t/01-load.t',
23
'Foo/t/perl-critic.t', 'Foo/t/boilerplate.t',
24
'Foo/t/00-signature.t', 'Foo/t/perlcriticrc',
25
'Foo/Build.PL', 'Foo/Changes',
26
'Foo/README', 'Foo/MANIFEST.SKIP',
27
'Foo/MANIFEST', 'Foo/server.pl',
31
foreach my $file (@expected_files) {
32
$got_files{$file} = -1;
38
if ( -e $File::Find::name ) {
39
my $name = $File::Find::name;
40
$name =~ s{\A\Q$dir\E}{}msx;
41
$got_files{$name} = grep { $_ eq $name } @expected_files;
49
plan tests => ( scalar keys %got_files ) * 2;
51
foreach my $file ( keys %got_files ) {
52
ok( $got_files{$file} > -1, "Missing file $file" );
55
foreach my $file ( keys %got_files ) {
56
ok( $got_files{$file}, "Extra file $file" );
16
push @expected_files, 'Foo/Build.PL';