[libdist-zilla-plugin-test-podspelling-perl] 07/11: add test compiles check
Axel Beckert
abe at deuxchevaux.org
Mon May 25 10:03:11 UTC 2015
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to annotated tag 2.002003
in repository libdist-zilla-plugin-test-podspelling-perl.
commit 8de96d90e306ca2ada892c716ad6303d26ab6bbb
Author: Caleb Cushing <xenoterracide at gmail.com>
Date: Tue Apr 3 23:52:31 2012 -0500
add test compiles check
Signed-off-by: Caleb Cushing <xenoterracide at gmail.com>
---
t/file.t | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/t/file.t b/t/file.t
new file mode 100644
index 0000000..2dbaf94
--- /dev/null
+++ b/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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdist-zilla-plugin-test-podspelling-perl.git
More information about the Pkg-perl-cvs-commits
mailing list