Skip to content

Commit

Permalink
t/manifest.t: added (unix only)
Browse files Browse the repository at this point in the history
compare MANIFEST to `git ls-tree -r --name-only HEAD >MANIFEST.git`
  • Loading branch information
Reini Urban committed Feb 19, 2014
1 parent c186386 commit f5c5c8d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions t/manifest.t
Original file line number Diff line number Diff line change
@@ -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.