f40dc45fa8bda34cfe0a5191b5a524736053db23
[catagits/Catalyst-Devel.git] / t / generated_app.t
1 use strict;
2 use warnings;
3
4 use File::Temp qw/ tempdir /;
5
6 my $dir = tempdir(); # CLEANUP => 1 );
7
8 use Test::More;
9 {
10     # Check exit status here
11     system("cd $dir; catalyst.pl TestApp");
12 }
13 # Fix paths / nl work on win32
14 chdir("$dir/TestApp/");
15
16 # Ok, this is lame.. Also, check +x permissions?
17 my @files = qw|
18     Makefile.PL
19     lib/TestApp.pm
20 |;
21
22 plan 'tests' => scalar @files;
23
24 foreach my $fn (@files) {
25     ok -r $fn, "Have $fn in generated app";
26 }
27