2010-05-06 04:12:31 +02:00
|
|
|
#!/usr/bin/perl
|
|
|
|
use warnings;
|
|
|
|
use strict;
|
|
|
|
use Test::More;
|
|
|
|
|
2015-11-30 18:33:00 +01:00
|
|
|
plan(skip_all => 'running installed') if $ENV{INSTALLED_TESTS};
|
|
|
|
|
2014-02-21 19:38:10 +01:00
|
|
|
my @templates=(glob("templates/*.tmpl"), glob("doc/templates/*.mdwn"));
|
2010-05-06 04:12:31 +02:00
|
|
|
plan(tests => 2*@templates);
|
|
|
|
|
|
|
|
use HTML::Template;
|
|
|
|
|
|
|
|
foreach my $template (@templates) {
|
|
|
|
my $obj=eval {HTML::Template->new(filename => $template)};
|
|
|
|
ok(! $@, $template." $@");
|
|
|
|
ok($obj, $template);
|
|
|
|
}
|