Permalink
Browse files

add test compiles check

Signed-off-by: Caleb Cushing <xenoterracide@gmail.com>
  • Loading branch information...
1 parent 7d94635 commit 8de96d90e306ca2ada892c716ad6303d26ab6bbb @xenoterracide committed Apr 4, 2012
Showing with 34 additions and 0 deletions.
  1. +34 −0 t/file.t
View
34 t/file.t
@@ -0,0 +1,34 @@
+use strict;
+use warnings;
+use Test::More;
+use Test::DZil;
+use Test::Script 1.05;
+
+my $tzil
+ = Builder->from_config(
+ {
+ dist_root => 'corpus/a',
+ },
+ {
+ add_files => {
+ 'source/dist.ini' => simple_ini(['Test::PodSpelling'])
+ }
+ },
+ );
+
+$tzil->build;
+
+my $fn
+ = $tzil
+ ->tempdir
+ ->subdir('build')
+ ->subdir('xt')
+ ->subdir('author')
+ ->file('pod-spell.t')
+ ;
+
+ok ( -e $fn, 'test file exists');
+
+script_compiles( '' . $fn->relative, 'check test compiles' );
+
+done_testing;

0 comments on commit 8de96d9

Please sign in to comment.