6 use Test::More tests => 1;
14 return if /\.(?:jpe?g|png|gif|rej|\~)$/i;
16 $File::Find::prune = 1;
20 diag "testing $_" if $ENV{'TEST_VERBOSE'};
21 eval { compile_file($_) } and return;
23 diag "error in ${File::Find::name}:\n$@";
26 ok($ok, "mason syntax is ok");
29 use HTML::Mason::Compiler;
30 use HTML::Mason::Compiler::ToObject;
35 open my $fh, '<:utf8', $file or die "couldn't open '$file': $!";
36 my $text = do { local $/; <$fh> };
37 close $fh or die "couldn't close '$file': $!";
39 my $compiler = new HTML::Mason::Compiler::ToObject;
43 $HTML::Mason::VERSION >= 1.36? (comp_path => 'my'): (),