]> sipb.mit.edu Git - ikiwiki.git/blob - t/syntax.t
web commit by madmax
[ikiwiki.git] / t / syntax.t
1 #!/usr/bin/perl
2 use warnings;
3 use strict;
4 use Test::More;
5
6 my @progs="ikiwiki.in";
7 my @libs="IkiWiki.pm";
8 # monotone skipped since it needs a perl module
9 push @libs, map { chomp; $_ } `find IkiWiki -type f -name \\*.pm | grep -v IkiWiki/Rcs/monotone.pm`;
10
11 plan(tests => (@progs + @libs));
12
13 foreach my $file (@progs) {
14         ok(system("perl -T -c $file >/dev/null 2>&1") eq 0, $file);
15 }
16 foreach my $file (@libs) {
17         ok(system("perl -c $file >/dev/null 2>&1") eq 0, $file);
18 }