summaryrefslogtreecommitdiff
path: root/t/syntax.t
blob: d09d17f7f932deecb9c6f16e6911367ced9d4d35 (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 monotone.pm | grep -v external.pm | grep -v amazon_s3.pm`;
  9. push @libs, 'IkiWiki/Plugin/skeleton.pm.example';
  10. plan(tests => (@progs + @libs));
  11. foreach my $file (@progs) {
  12. ok(system("perl -T -c $file >/dev/null 2>&1") eq 0, $file);
  13. }
  14. foreach my $file (@libs) {
  15. ok(system("perl -c $file >/dev/null 2>&1") eq 0, $file);
  16. }