Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test to at least make sure it can make a simple build.
- Loading branch information
1 parent
38fc7c5
commit 0b57773
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/usr/bin/env perl | ||
use utf8; | ||
|
||
# AUTHOR: Carnë Draug <carandraug+dev@gmail.com | ||
# OWNER: 2017 Carnë Draug | ||
# LICENSE: Perl_5 | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use Test::More; | ||
|
||
use Test::DZil; | ||
use Test::Fatal; | ||
|
||
my $module_text = <<'END'; | ||
package Foo::Bar; | ||
# AUTHOR: this guy | ||
# OWNER: that other guy | ||
# LICENSE: Perl_5 | ||
1; | ||
END | ||
|
||
|
||
my $dzil_ini = simple_ini ( | ||
{name => 'Foo-Bar', version => '0.010'}, | ||
'@BioPerl', | ||
); | ||
|
||
my $tzil = Test::DZil->Builder->from_config ( | ||
{dist_root => 'does-not-exist'}, | ||
{ | ||
add_files => { | ||
"source/dist.ini" => $dzil_ini, | ||
"source/lib/Foo/Bar.pm" => $module_text, | ||
"source/Changes" => "", | ||
}, | ||
} | ||
); | ||
$tzil->chrome->logger->set_debug (1); | ||
|
||
## At the very least, check that we can make a build with it. | ||
is (exception { $tzil->build },undef, 'build completes'); | ||
|
||
done_testing; |