From: Joey Hess Date: Thu, 6 May 2010 02:12:31 +0000 (-0400) Subject: add test X-Git-Tag: 3.20100515~87 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=57405061f4176bfa3fdfa686101a726a439d67f9;p=ikiwiki.git add test --- diff --git a/t/template_syntax.t b/t/template_syntax.t new file mode 100755 index 000000000..1e156eed8 --- /dev/null +++ b/t/template_syntax.t @@ -0,0 +1,15 @@ +#!/usr/bin/perl +use warnings; +use strict; +use Test::More; + +my @templates=glob("templates/*.tmpl"), glob("doc/templates/*.mdwn"); +plan(tests => 2*@templates); + +use HTML::Template; + +foreach my $template (@templates) { + my $obj=eval {HTML::Template->new(filename => $template)}; + ok(! $@, $template." $@"); + ok($obj, $template); +}