summaryrefslogtreecommitdiff
path: root/t/syntax.t
blob: 01346a33842d256ea6fd6f1d7b390f686ebbd8c7 (plain)
  1. #!/usr/bin/perl
  2. use warnings;
  3. use strict;
  4. use Test::More;
  5. my @progs="ikiwiki.in";
  6. my @libs="IkiWiki.pm";
  7. # monotone, external, amazon_s3 skipped since they need perl modules
  8. push @libs, map { chomp; $_ } `find IkiWiki -type f -name \\*.pm | grep -v IkiWiki/Rcs/monotone.pm | grep -v IkiWiki/Plugin/external.pm | grep -v IkiWiki/Plugin/amazon_s3.pm`;
  9. plan(tests => (@progs + @libs));
  10. foreach my $file (@progs) {
  11. ok(system("perl -T -c $file >/dev/null 2>&1") eq 0, $file);
  12. }
  13. foreach my $file (@libs) {
  14. ok(system("perl -c $file >/dev/null 2>&1") eq 0, $file);
  15. }