summaryrefslogtreecommitdiff
path: root/t/syntax.t
blob: 8c96d1d848014e9145739515e974f0b5aac271ac (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 | grep -v po.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. }