fixed
[ikiwiki.git] / t / syntax.t
bloba3760a2b2aa956b48bc1764dbff141335b0247ff
1 #!/usr/bin/perl
2 use warnings;
3 use strict;
4 use Test::More;
6 my @progs="ikiwiki.in";
7 my @libs="IkiWiki.pm";
8 # monotone, external, amazon_s3 skipped since they need perl modules
9 push @libs, map { chomp; $_ } `find IkiWiki -type f -name \\*.pm | grep -v monotone.pm | grep -v external.pm | grep -v amazon_s3.pm | grep -v po.pm`;
10 push @libs, 'IkiWiki/Plugin/skeleton.pm.example';
12 plan(tests => (@progs + @libs));
14 foreach my $file (@progs) {
15 ok(system("perl -c $file >/dev/null 2>&1") eq 0, $file);
17 foreach my $file (@libs) {
18 ok(system("perl -c $file >/dev/null 2>&1") eq 0, $file);