]> sipb.mit.edu Git - ikiwiki.git/blob - t/syntax.t
make the 2.0 news item special and non-removable, and link to it again
[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 push @libs, map { chomp; $_ } `find IkiWiki -type f -name \\*.pm`;
9
10 plan(tests => (@progs + @libs));
11
12 foreach my $file (@progs) {
13         ok(system("perl -T -c $file >/dev/null 2>&1") eq 0, $file);
14 }
15 foreach my $file (@libs) {
16         ok(system("perl -c $file >/dev/null 2>&1") eq 0, $file);
17 }