summaryrefslogtreecommitdiff
path: root/t/syntax.t
blob: 9d5cbc3739d168b9362cbfb91620a9f624e3a918 (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, blogspam, 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 blogspam.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. }