[libdist-zilla-plugin-test-eol-perl] 10/11: add a simple check that test compiles test

Intrigeri intrigeri at moszumanska.debian.org
Sun Aug 16 09:19:50 UTC 2015


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to annotated tag 0.05
in repository libdist-zilla-plugin-test-eol-perl.

commit 5feff8e5139f6e56dade3a55cdd16387d23940e3
Author: Caleb Cushing <xenoterracide at gmail.com>
Date:   Mon Apr 2 12:58:26 2012 -0500

    add a simple check that test compiles test
    
    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..460feac
--- /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::EOL'])
+			}
+		},
+	);
+
+$tzil->build;
+
+my $fn
+	= $tzil
+	->tempdir
+	->subdir('build')
+	->subdir('xt')
+	->subdir('author')
+	->file('test-eol.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-eol-perl.git



More information about the Pkg-perl-cvs-commits mailing list