summaryrefslogtreecommitdiff
path: root/t/syntax.t
blob: 2462464ef26c3811e7e85a17068656082f25fe81 (plain)
  1. #!/usr/bin/perl
  2. use warnings;
  3. use strict;
  4. use Test;
  5. my @progs="ikiwiki.pl";
  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. }