2006-05-03 22:06:31 +02:00
|
|
|
#!/usr/bin/perl
|
|
|
|
use warnings;
|
|
|
|
use strict;
|
2006-09-25 22:15:02 +02:00
|
|
|
use Test::More;
|
2006-05-03 22:06:31 +02:00
|
|
|
|
2006-11-20 23:12:43 +01:00
|
|
|
my @progs="ikiwiki.in";
|
2006-05-03 22:06:31 +02:00
|
|
|
my @libs="IkiWiki.pm";
|
2008-05-09 19:10:08 +02:00
|
|
|
# monotone, external, amazon_s3 skipped since they need perl modules
|
|
|
|
push @libs, map { chomp; $_ } `find IkiWiki -type f -name \\*.pm | grep -v IkiWiki/Rcs/monotone.pm | grep -v IkiWiki/Plugin/external.pm | grep -v IkiWiki/Plugin/amazon_s3.pm`;
|
2006-05-03 22:06:31 +02:00
|
|
|
|
|
|
|
plan(tests => (@progs + @libs));
|
|
|
|
|
|
|
|
foreach my $file (@progs) {
|
2006-09-25 22:15:02 +02:00
|
|
|
ok(system("perl -T -c $file >/dev/null 2>&1") eq 0, $file);
|
2006-05-03 22:06:31 +02:00
|
|
|
}
|
|
|
|
foreach my $file (@libs) {
|
2006-09-25 22:15:02 +02:00
|
|
|
ok(system("perl -c $file >/dev/null 2>&1") eq 0, $file);
|
2006-05-03 22:06:31 +02:00
|
|
|
}
|