e48a7aba51d7daf057e74280777c994c8f54d621
[catagits/Catalyst-Devel.git] / t / check_testapp_the_same.t
1 use strict;
2 use warnings;
3
4 use FindBin qw/$Bin/;
5
6 use Test::More tests => 3;
7
8 my $cat = `which catalyst.pl`;
9 chomp($cat);
10 is system("rm -rf $Bin/../TestAppForComparison"), 0 or BAIL_OUT;
11 is system("cd $Bin/../; $^X -I $Bin/../lib $cat TestAppForComparison"), 0 or BAIL_OUT;
12 my $diff = `diff -urN -x .svn -x Changes $Bin/TestAppForComparison $Bin/../TestAppForComparison`;
13 ok !length($diff), 'Generated same TestApp',
14     or warn($diff);
15