summaryrefslogtreecommitdiff
path: root/t/syntax.t
blob: cbbdee62f6f956d8f06f7ea948da1d07d72ebfed (plain)
  1. #!/usr/bin/perl
  2. use warnings;
  3. use strict;
  4. use Test::More;
  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. ok(system("perl -T -c $file >/dev/null 2>&1") eq 0, $file);
  11. }
  12. foreach my $file (@libs) {
  13. ok(system("perl -c $file >/dev/null 2>&1") eq 0, $file);
  14. }