summaryrefslogtreecommitdiff
path: root/t/syntax.t
blob: 20396aaae0ebb8bde572ddd35ce0aebcf07c9000 (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. 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. }