summaryrefslogtreecommitdiff
path: root/t/syntax.t
blob: 1e6b047478a5e9bd2ba06774893f346d3204b2dd (plain)
  1. #!/usr/bin/perl
  2. use warnings;
  3. use strict;
  4. use Test;
  5. my @progs="ikiwiki";
  6. my @libs="IkiWiki.pm";
  7. push @libs, map { chomp; $_ } `find IkiWiki -type f -name \\*.pm`;
  8. plan(tests => (@progs + @libs));
  9. foreach my $file (@progs) {
  10. print "# Testing $file\n";
  11. ok(system("perl -T -c $file >/dev/null 2>&1"), 0);
  12. }
  13. foreach my $file (@libs) {
  14. print "# Testing $file\n";
  15. ok(system("perl -c $file >/dev/null 2>&1"), 0);
  16. }