manifest.t 463 B

12345678910111213141516
  1. # -*- perl -*-
  2. use Test::More;
  3. if (!-d ".git" or $^O != /^(linux|.*bsd|darwin|solaris|sunos)$/) {
  4. plan skip_all => "requires a git checkout and a unix for git and diff";
  5. }
  6. plan tests => 1;
  7. system("git ls-tree -r --name-only HEAD >MANIFEST.git");
  8. if (-e "MANIFEST.git") {
  9. diag "MANIFEST.git created with git ls-tree";
  10. is(`diff -bu MANIFEST.git MANIFEST`, "", "MANIFEST.git compared to MANIFEST");
  11. unlink "MANIFEST.git";
  12. } else {
  13. ok(1, "skip no git");
  14. }