Add script to check that the testapp we generate compares the same
Tomas Doran [Sun, 24 May 2009 11:10:12 +0000 (11:10 +0000)]
t/check_testapp_the_same.t [new file with mode: 0644]

diff --git a/t/check_testapp_the_same.t b/t/check_testapp_the_same.t
new file mode 100644 (file)
index 0000000..e48a7ab
--- /dev/null
@@ -0,0 +1,15 @@
+use strict;
+use warnings;
+
+use FindBin qw/$Bin/;
+
+use Test::More tests => 3;
+
+my $cat = `which catalyst.pl`;
+chomp($cat);
+is system("rm -rf $Bin/../TestAppForComparison"), 0 or BAIL_OUT;
+is system("cd $Bin/../; $^X -I $Bin/../lib $cat TestAppForComparison"), 0 or BAIL_OUT;
+my $diff = `diff -urN -x .svn -x Changes $Bin/TestAppForComparison $Bin/../TestAppForComparison`;
+ok !length($diff), 'Generated same TestApp',
+    or warn($diff);
+