Permalink
Browse files

t/manifest.t: added (unix only)

compare MANIFEST to `git ls-tree -r --name-only HEAD >MANIFEST.git`
  • Loading branch information...
1 parent c186386 commit f5c5c8d7de8acb487104f5a1ad6e15938071e754 @rurban committed Feb 19, 2014
Showing with 12 additions and 0 deletions.
  1. +1 −0 MANIFEST
  2. +11 −0 t/manifest.t
View
1 MANIFEST
@@ -699,6 +699,7 @@ t/issue95.t
t/issue96.t
t/issue97.t
t/issue98.t
+t/manifest.t
t/mock
t/modules.pm
t/modules.t
View
11 t/manifest.t
@@ -0,0 +1,11 @@
+# -*- perl -*-
+use Test::More;
+if ($^O != /^(linux|.*bsd|darwin|solaris|sunos)$/) {
+ plan skip_all => "requires a unix for git and diff";
+}
+plan tests => 2;
+
+system("git ls-tree -r --name-only HEAD >MANIFEST.git");
+ok(-e "MANIFEST.git", "MANIFEST.git created with git ls-tree");
+is(`diff -bu MANIFEST.git MANIFEST`, "", "MANIFEST.git compared to MANIFEST");
+unlink "MANIFEST.git";

0 comments on commit f5c5c8d

Please sign in to comment.