Report for Dist-Zilla-Plugin-CheckLib-0.006

Back
From: metabase:user:30ae4450-2aae-11df-837a-5e0a49663a4f
Subject: PASS Dist-Zilla-Plugin-CheckLib-0.006 v5.16.3 
Date: 2015-03-13T18:10:34Z

This distribution has been tested as part of the CPAN Testers
project, supporting the Perl programming language.  See
http://wiki.cpantesters.org/ for more information or email
questions to cpan-testers-discuss@perl.org


--
Dear Karen Etheridge,

This is a computer-generated report for Dist-Zilla-Plugin-CheckLib-0.006
on perl 5.16.3, created by CPAN-Reporter-1.2010_01.

Thank you for uploading your work to CPAN.  Congratulations!
All tests were successful.

Sections of this report:

    * Tester comments
    * Program output
    * Prerequisites
    * Environment and other context

------------------------------
TESTER COMMENTS
------------------------------

Additional comments from tester:

this report is from an automated smoke testing program
and was not reviewed by a human for accuracy

------------------------------
PROGRAM OUTPUT
------------------------------

Output from 'C:\strawberry163\c\bin\dmake.exe test':

C:\strawberry163\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t
# 
# Versions for all modules listed in MYMETA.json (including optional ones):
# 
# === Configure Requires ===
# 
#     Module              Want Have
#     ------------------- ---- ----
#     ExtUtils::MakeMaker  any 6.64
# 
# === Build Requires ===
# 
#     Module              Want Have
#     ------------------- ---- ----
#     ExtUtils::MakeMaker  any 6.64
# 
# === Test Requires ===
# 
#     Module              Want     Have
#     ------------------- ---- --------
#     ExtUtils::MakeMaker  any     6.64
#     File::Spec           any     3.40
#     Path::Tiny           any    0.052
#     Test::DZil           any    5.013
#     Test::Deep           any    0.110
#     Test::Fatal          any    0.010
#     Test::More           any 1.001002
#     Test::Requires       any     0.07
#     if                   any   0.0602
# 
# === Test Recommends ===
# 
#     Module         Want     Have
#     ---------- -------- --------
#     CPAN::Meta 2.120900 2.140640
# 
# === Runtime Requires ===
# 
#     Module                                   Want   Have
#     ------------------------------------ -------- ------
#     Devel::CheckLib                           any   1.01
#     Dist::Zilla::Plugin::MetaResources   4.300039  5.013
#     Dist::Zilla::Plugin::ModuleBuildTiny    0.007  0.009
#     Dist::Zilla::Role::FileMunger             any  5.013
#     Dist::Zilla::Role::InstallTool            any  5.013
#     Dist::Zilla::Role::PrereqSource           any  5.013
#     Moose                                     any 2.1204
#     Scalar::Util                              any   1.38
#     namespace::autoclean                      any   0.13
#     strict                                    any   1.07
#     warnings                                  any   1.13
# 
# === Other Modules ===
# 
#     Module                                         Want     Have
#     ---------------------------------------------- ---- --------
#     CPAN::Meta::Validator                           any 2.140640
#     Dist::Zilla::Plugin::MakeMaker                  any    5.013
#     Dist::Zilla::Plugin::MakeMaker::Awesome         any     0.20
#     Dist::Zilla::Plugin::MakeMaker::Fallback        any  missing
#     Dist::Zilla::Plugin::ModuleBuildTiny            any    0.009
#     Dist::Zilla::Plugin::ModuleBuildTiny::Fallback  any  missing
#     ExtUtils::MakeMaker                             any     6.64
#     Module::Build                                   any   0.4205
#     Module::Build::Tiny                             any    0.039
# 
t/00-report-prereqs.t ............ ok
Class::MOP::load_class is deprecated at C:/strawberry163/perl/site/lib/Class/MOP.pm line 73.
	Class::MOP::load_class('MooseX::Role::Parameterized::Meta::Role::Parameterized') called at C:/strawberry163/perl/vendor/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm line 60
	MooseX::Role::Parameterized::Meta::Role::Parameterizable::generate_role('MooseX::Role::Parameterized::Meta::Role::Parameterizable=HASH...', 'consumer', 'Moose::Meta::Role=HASH(0x1abba3c)', 'parameters', 'HASH(0x1b09ce4)') called at C:/strawberry163/perl/vendor/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm line 104
	MooseX::Role::Parameterized::Meta::Role::Parameterizable::apply('MooseX::Role::Parameterized::Meta::Role::Parameterizable=HASH...', 'Moose::Meta::Role=HASH(0x1abba3c)') called at C:/strawberry163/perl/site/lib/Moose/Util.pm line 166
	Moose::Util::_apply_all_roles('Moose::Meta::Role=HASH(0x1abba3c)', undef, 'MooseX::Getopt::GLD') called at C:/strawberry163/perl/site/lib/Moose/Util.pm line 108
	Moose::Util::apply_all_roles('Moose::Meta::Role=HASH(0x1abba3c)', 'MooseX::Getopt::GLD') called at C:/strawberry163/perl/site/lib/Moose/Role.pm line 27
	Moose::Role::with('Moose::Meta::Role=HASH(0x1abba3c)', 'MooseX::Getopt::GLD') called at C:/strawberry163/perl/site/lib/Moose/Exporter.pm line 405
	Moose::Role::with('MooseX::Getopt::GLD') called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 12
	require MooseX/Getopt.pm called at C:/strawberry163/perl/site/lib/MooseX/Types/Path/Class.pm line 35
	eval {...} called at C:/strawberry163/perl/site/lib/MooseX/Types/Path/Class.pm line 35
	require MooseX/Types/Path/Class.pm called at C:/strawberry163/perl/site/lib/Dist/Zilla/Dist/Builder.pm line 9
	Dist::Zilla::Dist::Builder::BEGIN() called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 0
	eval {...} called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 0
	require Dist/Zilla/Dist/Builder.pm called at C:/strawberry163/perl/site/lib/Module/Runtime.pm line 317
	Module::Runtime::require_module('Dist::Zilla::Dist::Builder') called at C:/strawberry163/perl/site/lib/Module/Runtime.pm line 381
	eval {...} called at C:/strawberry163/perl/site/lib/Module/Runtime.pm line 381
	Module::Runtime::use_package_optimistically('Dist::Zilla::Dist::Builder') called at C:/strawberry163/perl/site/lib/Moose/Util.pm line 343
	Moose::Util::_load_user_class('Dist::Zilla::Dist::Builder', undef) called at C:/strawberry163/perl/site/lib/Moose/Meta/Class.pm line 561
	Moose::Meta::Class::superclasses(undef, 'Dist::Zilla::Dist::Builder') called at C:/strawberry163/perl/site/lib/Moose.pm line 56
	Moose::extends('Moose::Meta::Class=HASH(0x1283ef4)', 'Dist::Zilla::Dist::Builder') called at C:/strawberry163/perl/site/lib/Moose/Exporter.pm line 405
	Moose::extends('Dist::Zilla::Dist::Builder') called at C:/strawberry163/perl/site/lib/Dist/Zilla/Tester.pm line 5
	require Dist/Zilla/Tester.pm called at C:/strawberry163/perl/site/lib/Test/DZil.pm line 6
	Test::DZil::BEGIN() called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 0
	eval {...} called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 0
	require Test/DZil.pm called at t/01-basic.t line 6
	main::BEGIN() called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 0
	eval {...} called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 0
t/01-basic.t ..................... ok
Class::MOP::load_class is deprecated at C:/strawberry163/perl/site/lib/Class/MOP.pm line 73.
	Class::MOP::load_class('MooseX::Role::Parameterized::Meta::Role::Parameterized') called at C:/strawberry163/perl/vendor/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm line 60
	MooseX::Role::Parameterized::Meta::Role::Parameterizable::generate_role('MooseX::Role::Parameterized::Meta::Role::Parameterizable=HASH...', 'consumer', 'Moose::Meta::Role=HASH(0x1b13e5c)', 'parameters', 'HASH(0x1b60f24)') called at C:/strawberry163/perl/vendor/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm line 104
	MooseX::Role::Parameterized::Meta::Role::Parameterizable::apply('MooseX::Role::Parameterized::Meta::Role::Parameterizable=HASH...', 'Moose::Meta::Role=HASH(0x1b13e5c)') called at C:/strawberry163/perl/site/lib/Moose/Util.pm line 166
	Moose::Util::_apply_all_roles('Moose::Meta::Role=HASH(0x1b13e5c)', undef, 'MooseX::Getopt::GLD') called at C:/strawberry163/perl/site/lib/Moose/Util.pm line 108
	Moose::Util::apply_all_roles('Moose::Meta::Role=HASH(0x1b13e5c)', 'MooseX::Getopt::GLD') called at C:/strawberry163/perl/site/lib/Moose/Role.pm line 27
	Moose::Role::with('Moose::Meta::Role=HASH(0x1b13e5c)', 'MooseX::Getopt::GLD') called at C:/strawberry163/perl/site/lib/Moose/Exporter.pm line 405
	Moose::Role::with('MooseX::Getopt::GLD') called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 12
	require MooseX/Getopt.pm called at C:/strawberry163/perl/site/lib/MooseX/Types/Path/Class.pm line 35
	eval {...} called at C:/strawberry163/perl/site/lib/MooseX/Types/Path/Class.pm line 35
	require MooseX/Types/Path/Class.pm called at C:/strawberry163/perl/site/lib/Dist/Zilla/Dist/Builder.pm line 9
	Dist::Zilla::Dist::Builder::BEGIN() called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 0
	eval {...} called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 0
	require Dist/Zilla/Dist/Builder.pm called at C:/strawberry163/perl/site/lib/Module/Runtime.pm line 317
	Module::Runtime::require_module('Dist::Zilla::Dist::Builder') called at C:/strawberry163/perl/site/lib/Module/Runtime.pm line 381
	eval {...} called at C:/strawberry163/perl/site/lib/Module/Runtime.pm line 381
	Module::Runtime::use_package_optimistically('Dist::Zilla::Dist::Builder') called at C:/strawberry163/perl/site/lib/Moose/Util.pm line 343
	Moose::Util::_load_user_class('Dist::Zilla::Dist::Builder', undef) called at C:/strawberry163/perl/site/lib/Moose/Meta/Class.pm line 561
	Moose::Meta::Class::superclasses(undef, 'Dist::Zilla::Dist::Builder') called at C:/strawberry163/perl/site/lib/Moose.pm line 56
	Moose::extends('Moose::Meta::Class=HASH(0x13abe3c)', 'Dist::Zilla::Dist::Builder') called at C:/strawberry163/perl/site/lib/Moose/Exporter.pm line 405
	Moose::extends('Dist::Zilla::Dist::Builder') called at C:/strawberry163/perl/site/lib/Dist/Zilla/Tester.pm line 5
	require Dist/Zilla/Tester.pm called at C:/strawberry163/perl/site/lib/Test/DZil.pm line 6
	Test::DZil::BEGIN() called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 0
	eval {...} called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 0
	require Test/DZil.pm called at (eval 3) line 6
	main::BEGIN() called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 0
	eval {...} called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 0
	eval 'use strict;
use warnings FATAL => \'all\';

use Test::More;
use if $ENV{AUTHOR_TESTING}, \'Test::Warnings\';
use Test::DZil;
use Test::Deep;
use Path::Tiny;
use Test::Fatal;

my $tzil = Builder->from_config(
    { dist_root => \'t/does-not-exist\' },
    {
        add_files => {
            path(qw(source dist.ini)) => simple_ini(
                [ GatherDir => ],
                [ MetaConfig => ],
                [ \'ModuleBuild\' => ],
                [ \'CheckLib\' => {
                        lib => [ qw(iconv jpeg) ],
                        header => \'jpeglib.h\',
                        libpath => \'additional_path\',
                        debug => 0,
                        LIBS => \'-lfoo -lbar -Lkablammo\',
                        incpath => [ qw(inc1 inc2 inc3) ],
                    },
                ],
            ),
            path(qw(source lib Foo.pm)) => "package Foo;\\n1;\\n",
        },
    },
);

$tzil->chrome->logger->set_debug(1);
is(
    exception { $tzil->build },
    undef,
    \'nothing exploded\',
);

my $build_dir = path($tzil->tempdir)->child(\'build\');
my $file = $build_dir->child(\'Build.PL\');
ok(-e $file, \'Build.PL created\');

my $content = $file->slurp_utf8;
unlike($content, qr/[^\\S\\n]\\n/m, \'no trailing whitespace in generated file\');

my $version = Dist::Zilla::Plugin::CheckLib->VERSION || \'<self>\';

my $pattern = <<PATTERN;
use strict;
use warnings;

# inserted by Dist::Zilla::Plugin::CheckLib $version
use Devel::CheckLib;
check_lib_or_exit(
    header => \'jpeglib.h\',
    incpath => [ \'inc1\', \'inc2\', \'inc3\' ],
    lib => [ \'iconv\', \'jpeg\' ],
    libpath => \'additional_path\',
    LIBS => \'-lfoo -lbar -Lkablammo\',
    debug => \'0\',
);
PATTERN

like(
    $content,
    qr/^\\Q$pattern\\E$/m,
    \'code inserted into Build.PL\',
);

cmp_deeply(
    $tzil->distmeta,
    superhashof({
        prereqs => superhashof({
            configure => {
                requires => {
                    \'Devel::CheckLib\' => \'0.9\',
                    \'Module::Build\' => ignore,    # populated by [MakeMaker]
                },
            },
            build => { requires => { \'Module::Build\' => ignore } },
        }),
        x_Dist_Zilla => superhashof({
            plugins => supersetof(
                {
                    class => \'Dist::Zilla::Plugin::CheckLib\',
                    config => {
                        \'Dist::Zilla::Plugin::CheckLib\' => superhashof({
                            header => [\'jpeglib.h\'],
                            incpath => [\'inc1\', \'inc2\', \'inc3\'],
                            lib => [ \'iconv\', \'jpeg\' ],
                            libpath => [ \'additional_path\' ],
                            INC => undef,
                            LIBS => \'-lfoo -lbar -Lkablammo\',
                            debug => \'0\',
                        }),
                    },
                    name => \'CheckLib\',
                    version => ignore,
                },
            ),
        }),
    }),
    \'prereqs are properly injected for the configure phase\',
) or diag \'got distmeta: \', explain $tzil->distmeta;

diag \'got log messages: \', explain $tzil->log_messages
    if not Test::Builder->new->is_passing;

done_testing;

;' called at t/02-module-build.t line 12
t/02-module-build.t .............. ok
Class::MOP::load_class is deprecated at C:/strawberry163/perl/site/lib/Class/MOP.pm line 73.
	Class::MOP::load_class('MooseX::Role::Parameterized::Meta::Role::Parameterized') called at C:/strawberry163/perl/vendor/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm line 60
	MooseX::Role::Parameterized::Meta::Role::Parameterizable::generate_role('MooseX::Role::Parameterized::Meta::Role::Parameterizable=HASH...', 'consumer', 'Moose::Meta::Role=HASH(0x1cb9f7c)', 'parameters', 'HASH(0x1d086e4)') called at C:/strawberry163/perl/vendor/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm line 104
	MooseX::Role::Parameterized::Meta::Role::Parameterizable::apply('MooseX::Role::Parameterized::Meta::Role::Parameterizable=HASH...', 'Moose::Meta::Role=HASH(0x1cb9f7c)') called at C:/strawberry163/perl/site/lib/Moose/Util.pm line 166
	Moose::Util::_apply_all_roles('Moose::Meta::Role=HASH(0x1cb9f7c)', undef, 'MooseX::Getopt::GLD') called at C:/strawberry163/perl/site/lib/Moose/Util.pm line 108
	Moose::Util::apply_all_roles('Moose::Meta::Role=HASH(0x1cb9f7c)', 'MooseX::Getopt::GLD') called at C:/strawberry163/perl/site/lib/Moose/Role.pm line 27
	Moose::Role::with('Moose::Meta::Role=HASH(0x1cb9f7c)', 'MooseX::Getopt::GLD') called at C:/strawberry163/perl/site/lib/Moose/Exporter.pm line 405
	Moose::Role::with('MooseX::Getopt::GLD') called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 12
	require MooseX/Getopt.pm called at C:/strawberry163/perl/site/lib/MooseX/Types/Path/Class.pm line 35
	eval {...} called at C:/strawberry163/perl/site/lib/MooseX/Types/Path/Class.pm line 35
	require MooseX/Types/Path/Class.pm called at C:/strawberry163/perl/site/lib/Dist/Zilla/Dist/Builder.pm line 9
	Dist::Zilla::Dist::Builder::BEGIN() called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 0
	eval {...} called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 0
	require Dist/Zilla/Dist/Builder.pm called at C:/strawberry163/perl/site/lib/Module/Runtime.pm line 317
	Module::Runtime::require_module('Dist::Zilla::Dist::Builder') called at C:/strawberry163/perl/site/lib/Module/Runtime.pm line 381
	eval {...} called at C:/strawberry163/perl/site/lib/Module/Runtime.pm line 381
	Module::Runtime::use_package_optimistically('Dist::Zilla::Dist::Builder') called at C:/strawberry163/perl/site/lib/Moose/Util.pm line 343
	Moose::Util::_load_user_class('Dist::Zilla::Dist::Builder', undef) called at C:/strawberry163/perl/site/lib/Moose/Meta/Class.pm line 561
	Moose::Meta::Class::superclasses(undef, 'Dist::Zilla::Dist::Builder') called at C:/strawberry163/perl/site/lib/Moose.pm line 56
	Moose::extends('Moose::Meta::Class=HASH(0x18e054c)', 'Dist::Zilla::Dist::Builder') called at C:/strawberry163/perl/site/lib/Moose/Exporter.pm line 405
	Moose::extends('Dist::Zilla::Dist::Builder') called at C:/strawberry163/perl/site/lib/Dist/Zilla/Tester.pm line 5
	require Dist/Zilla/Tester.pm called at C:/strawberry163/perl/site/lib/Test/DZil.pm line 6
	Test::DZil::BEGIN() called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 0
	eval {...} called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 0
	require Test/DZil.pm called at (eval 287) line 6
	main::BEGIN() called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 0
	eval {...} called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 0
	eval 'use strict;
use warnings FATAL => \'all\';

use Test::More;
use if $ENV{AUTHOR_TESTING}, \'Test::Warnings\';
use Test::DZil;
use Test::Deep;
use Path::Tiny;
use Test::Fatal;

my $tzil = Builder->from_config(
    { dist_root => \'t/does-not-exist\' },
    {
        add_files => {
            path(qw(source dist.ini)) => simple_ini(
                [ GatherDir => ],
                [ MetaConfig => ],
                [ \'ModuleBuildTiny\' => ],
                [ \'CheckLib\' => {
                        lib => [ qw(iconv jpeg) ],
                        header => \'jpeglib.h\',
                        libpath => \'additional_path\',
                        debug => 0,
                        LIBS => \'-lfoo -lbar -Lkablammo\',
                        incpath => [ qw(inc1 inc2 inc3) ],
                    },
                ],
            ),
            path(qw(source lib Foo.pm)) => "package Foo;\\n1;\\n",
        },
    },
);

$tzil->chrome->logger->set_debug(1);
is(
    exception { $tzil->build },
    undef,
    \'nothing exploded\',
);

my $build_dir = path($tzil->tempdir)->child(\'build\');
my $file = $build_dir->child(\'Build.PL\');
ok(-e $file, \'Build.PL created\');

my $content = $file->slurp_utf8;
unlike($content, qr/[^\\S\\n]\\n/m, \'no trailing whitespace in generated file\');

my $version = Dist::Zilla::Plugin::CheckLib->VERSION || \'<self>\';

my $pattern = <<PATTERN;
use strict;
use warnings;

# inserted by Dist::Zilla::Plugin::CheckLib $version
use Devel::CheckLib;
check_lib_or_exit(
    header => \'jpeglib.h\',
    incpath => [ \'inc1\', \'inc2\', \'inc3\' ],
    lib => [ \'iconv\', \'jpeg\' ],
    libpath => \'additional_path\',
    LIBS => \'-lfoo -lbar -Lkablammo\',
    debug => \'0\',
);
PATTERN

like(
    $content,
    qr/^\\Q$pattern\\E$/m,
    \'code inserted into Build.PL\',
);

cmp_deeply(
    $tzil->distmeta,
    superhashof({
        prereqs => superhashof({
            configure => {
                requires => {
                    \'Devel::CheckLib\' => \'0.9\',
                    \'Module::Build::Tiny\' => ignore,    # populated by [MakeMaker]
                },
            },
            # build prereqs go here
        }),
        x_Dist_Zilla => superhashof({
            plugins => supersetof(
                {
                    class => \'Dist::Zilla::Plugin::CheckLib\',
                    config => {
                        \'Dist::Zilla::Plugin::CheckLib\' => superhashof({
                            header => [\'jpeglib.h\'],
                            incpath => [\'inc1\', \'inc2\', \'inc3\'],
                            lib => [ \'iconv\', \'jpeg\' ],
                            libpath => [ \'additional_path\' ],
                            INC => undef,
                            LIBS => \'-lfoo -lbar -Lkablammo\',
                            debug => \'0\',
                        }),
                    },
                    name => \'CheckLib\',
                    version => ignore,
                },
            ),
        }),
    }),
    \'prereqs are properly injected for the configure phase\',
) or diag \'got distmeta: \', explain $tzil->distmeta;

diag \'got log messages: \', explain $tzil->log_messages
    if not Test::Builder->new->is_passing;

done_testing;

;' called at t/03-module-build-tiny.t line 15
t/03-module-build-tiny.t ......... ok
Class::MOP::load_class is deprecated at C:/strawberry163/perl/site/lib/Class/MOP.pm line 73.
	Class::MOP::load_class('MooseX::Role::Parameterized::Meta::Role::Parameterized') called at C:/strawberry163/perl/vendor/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm line 60
	MooseX::Role::Parameterized::Meta::Role::Parameterizable::generate_role('MooseX::Role::Parameterized::Meta::Role::Parameterizable=HASH...', 'consumer', 'Moose::Meta::Role=HASH(0x1d27964)', 'parameters', 'HASH(0x1d732c4)') called at C:/strawberry163/perl/vendor/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm line 104
	MooseX::Role::Parameterized::Meta::Role::Parameterizable::apply('MooseX::Role::Parameterized::Meta::Role::Parameterizable=HASH...', 'Moose::Meta::Role=HASH(0x1d27964)') called at C:/strawberry163/perl/site/lib/Moose/Util.pm line 166
	Moose::Util::_apply_all_roles('Moose::Meta::Role=HASH(0x1d27964)', undef, 'MooseX::Getopt::GLD') called at C:/strawberry163/perl/site/lib/Moose/Util.pm line 108
	Moose::Util::apply_all_roles('Moose::Meta::Role=HASH(0x1d27964)', 'MooseX::Getopt::GLD') called at C:/strawberry163/perl/site/lib/Moose/Role.pm line 27
	Moose::Role::with('Moose::Meta::Role=HASH(0x1d27964)', 'MooseX::Getopt::GLD') called at C:/strawberry163/perl/site/lib/Moose/Exporter.pm line 405
	Moose::Role::with('MooseX::Getopt::GLD') called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 12
	require MooseX/Getopt.pm called at C:/strawberry163/perl/site/lib/MooseX/Types/Path/Class.pm line 35
	eval {...} called at C:/strawberry163/perl/site/lib/MooseX/Types/Path/Class.pm line 35
	require MooseX/Types/Path/Class.pm called at C:/strawberry163/perl/site/lib/Dist/Zilla/Dist/Builder.pm line 9
	Dist::Zilla::Dist::Builder::BEGIN() called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 0
	eval {...} called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 0
	require Dist/Zilla/Dist/Builder.pm called at C:/strawberry163/perl/site/lib/Module/Runtime.pm line 317
	Module::Runtime::require_module('Dist::Zilla::Dist::Builder') called at C:/strawberry163/perl/site/lib/Module/Runtime.pm line 381
	eval {...} called at C:/strawberry163/perl/site/lib/Module/Runtime.pm line 381
	Module::Runtime::use_package_optimistically('Dist::Zilla::Dist::Builder') called at C:/strawberry163/perl/site/lib/Moose/Util.pm line 343
	Moose::Util::_load_user_class('Dist::Zilla::Dist::Builder', undef) called at C:/strawberry163/perl/site/lib/Moose/Meta/Class.pm line 561
	Moose::Meta::Class::superclasses(undef, 'Dist::Zilla::Dist::Builder') called at C:/strawberry163/perl/site/lib/Moose.pm line 56
	Moose::extends('Moose::Meta::Class=HASH(0x1907324)', 'Dist::Zilla::Dist::Builder') called at C:/strawberry163/perl/site/lib/Moose/Exporter.pm line 405
	Moose::extends('Dist::Zilla::Dist::Builder') called at C:/strawberry163/perl/site/lib/Dist/Zilla/Tester.pm line 5
	require Dist/Zilla/Tester.pm called at C:/strawberry163/perl/site/lib/Test/DZil.pm line 6
	Test::DZil::BEGIN() called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 0
	eval {...} called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 0
	require Test/DZil.pm called at (eval 323) line 6
	main::BEGIN() called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 0
	eval {...} called at C:/strawberry163/perl/site/lib/MooseX/Getopt.pm line 0
	eval 'use strict;
use warnings FATAL => \'all\';

use Test::More;
use if $ENV{AUTHOR_TESTING}, \'Test::Warnings\';
use Test::DZil;
use Test::Deep;
use Path::Tiny;
use Test::Fatal;

my $tzil = Builder->from_config(
    { dist_root => \'t/does-not-exist\' },
    {
        add_files => {
            path(qw(source dist.ini)) => simple_ini(
                [ GatherDir => ],
                [ MetaConfig => ],
                [ \'MakeMaker::Awesome\' => ],
                [ \'CheckLib\' => {
                        lib => [ qw(iconv jpeg) ],
                        header => \'jpeglib.h\',
                        libpath => \'additional_path\',
                        debug => 0,
                        LIBS => \'-lfoo -lbar -Lkablammo\',
                        incpath => [ qw(inc1 inc2 inc3) ],
                    },
                ],
            ),
            path(qw(source lib Foo.pm)) => "package Foo;\\n1;\\n",
        },
    },
);

$tzil->chrome->logger->set_debug(1);
is(
    exception { $tzil->build },
    undef,
    \'nothing exploded\',
);

my $build_dir = path($tzil->tempdir)->child(\'build\');
my $file = $build_dir->child(\'Makefile.PL\');
ok(-e $file, \'Makefile.PL created\');

my $content = $file->slurp_utf8;
unlike($content, qr/[^\\S\\n]\\n/m, \'no trailing whitespace in generated file\');

my $version = Dist::Zilla::Plugin::CheckLib->VERSION || \'<self>\';

my $pattern = <<PATTERN;
use strict;
use warnings;

# inserted by Dist::Zilla::Plugin::CheckLib $version
use Devel::CheckLib;
check_lib_or_exit(
    header => \'jpeglib.h\',
    incpath => [ \'inc1\', \'inc2\', \'inc3\' ],
    lib => [ \'iconv\', \'jpeg\' ],
    libpath => \'additional_path\',
    LIBS => \'-lfoo -lbar -Lkablammo\',
    debug => \'0\',
);
PATTERN

like(
    $content,
    qr/^\\Q$pattern\\E$/m,
    \'code inserted into Makefile.PL\',
);

cmp_deeply(
    $tzil->distmeta,
    superhashof({
        prereqs => superhashof({
            configure => {
                requires => {
                    \'Devel::CheckLib\' => \'0.9\',
                    \'ExtUtils::MakeMaker\' => ignore,    # populated by [MakeMaker]
                },
            },
            # build prereqs go here
        }),
        x_Dist_Zilla => superhashof({
            plugins => supersetof(
                {
                    class => \'Dist::Zilla::Plugin::CheckLib\',
                    config => {
                        \'Dist::Zilla::Plugin::CheckLib\' => superhashof({
                            header => [\'jpeglib.h\'],
                            incpath => [\'inc1\', \'inc2\', \'inc3\'],
                            lib => [ \'iconv\', \'jpeg\' ],
                            libpath => [ \'additional_path\' ],
                            INC => undef,
                            LIBS => \'-lfoo -lbar -Lkablammo\',
                            debug => \'0\',
                        }),
                    },
                    name => \'CheckLib\',
                    version => ignore,
                },
            ),
        }),
    }),
    \'prereqs are properly injected for the configure phase\',
) or diag \'got distmeta: \', explain $tzil->distmeta;

diag \'got log messages: \', explain $tzil->log_messages
    if not Test::Builder->new->is_passing;

done_testing;

;' called at t/04-makemaker-awesome.t line 17
t/04-makemaker-awesome.t ......... ok
t/05-makemaker-fallback.t ........ skipped: Test requires module 'Dist::Zilla::Plugin::MakeMaker::Fallback' but it's not found
t/06-modulebuildtiny-fallback.t .. skipped: Test requires module 'Dist::Zilla::Plugin::ModuleBuildTiny::Fallback' but it's not found
All tests successful.
Files=7, Tests=21, 12 wallclock secs ( 0.06 usr +  0.05 sys =  0.11 CPU)
Result: PASS

------------------------------
PREREQUISITES
------------------------------

Prerequisite modules loaded:

requires:

    Module                               Need     Have    
    ------------------------------------ -------- --------
    Devel::CheckLib                      0        1.01    
    Dist::Zilla::Plugin::MetaResources   4.300039 5.013   
    Dist::Zilla::Plugin::ModuleBuildTiny 0.007    0.009   
    Dist::Zilla::Role::FileMunger        0        5.013   
    Dist::Zilla::Role::InstallTool       0        5.013   
    Dist::Zilla::Role::PrereqSource      0        5.013   
    Moose                                0        2.1204  
    namespace::autoclean                 0        0.13    
    perl                                 5.009005 5.016003
    Scalar::Util                         0        1.38    
    strict                               0        1.07    
    warnings                             0        1.13    

build_requires:

    Module                               Need     Have    
    ------------------------------------ -------- --------
    ExtUtils::MakeMaker                  0        6.64    
    File::Spec                           0        3.40    
    if                                   0        0.0602  
    Path::Tiny                           0        0.052   
    Test::Deep                           0        0.110   
    Test::DZil                           0        5.013   
    Test::Fatal                          0        0.010   
    Test::More                           0        1.001002
    Test::Requires                       0        0.07    

configure_requires:

    Module                               Need     Have    
    ------------------------------------ -------- --------
    ExtUtils::MakeMaker                  0        6.64    
    perl                                 5.006    5.016003


------------------------------
ENVIRONMENT AND OTHER CONTEXT
------------------------------

Environment variables:

    AUTOMATED_TESTING = 1
    COMSPEC = C:\WINDOWS\system32\cmd.exe
    NUMBER_OF_PROCESSORS = 1
    PATH = C:\Program Files\Far Manager\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\strawberry163\c\bin;C:\strawberry163\perl\site\bin;C:\strawberry163\perl\bin
    PERL5LIB = C:\strawberry163\cpan\build\Dist-Zilla-Plugin-ModuleBuildTiny-0.009-pgoUTI/blib/arch;C:\strawberry163\cpan\build\Dist-Zilla-Plugin-ModuleBuildTiny-0.009-pgoUTI/blib/lib;C:\strawberry163\cpan\build\Module-Build-Tiny-0.039-9zrCME/blib/arch;C:\strawberry163\cpan\build\Module-Build-Tiny-0.039-9zrCME/blib/lib
    PERL5OPT = 
    PERL5_CPANPLUS_IS_RUNNING = 1148
    PERL5_CPAN_IS_RUNNING = 1148
    PERL5_CPAN_IS_RUNNING_IN_RECURSION = 260,1148
    PERL_CR_SMOKER_CURRENT = Dist-Zilla-Plugin-CheckLib-0.006
    PERL_EXTUTILS_AUTOINSTALL = --defaultdeps
    PERL_MM_USE_DEFAULT = 1
    PROCESSOR_IDENTIFIER = x86 Family 16 Model 5 Stepping 3, AuthenticAMD
    TEMP = C:\DOCUME~1\c\LOCALS~1\Temp
    TERM = dumb

Perl special variables (and OS-specific diagnostics, for MSWin32):

    $^X = C:\strawberry163\perl\bin\perl.exe
    $UID/$EUID = 0 / 0
    $GID = 0
    $EGID = 0
    Win32::GetOSName = WinXP/.Net
    Win32::GetOSVersion = Service Pack 3, 5, 1, 2600, 2, 3, 0, 256, 1
    Win32::FsType = NTFS
    Win32::IsAdminUser = 1

Perl module toolchain versions installed:

    Module              Have    
    ------------------- --------
    CPAN                2.00    
    CPAN::Meta          2.140640
    Cwd                 3.40    
    ExtUtils::CBuilder  0.280206
    ExtUtils::Command   1.17    
    ExtUtils::Install   1.58    
    ExtUtils::MakeMaker 6.64    
    ExtUtils::Manifest  1.61    
    ExtUtils::ParseXS   3.24    
    File::Spec          3.40    
    JSON                2.90    
    JSON::PP            2.27203 
    Module::Build       0.4205  
    Module::Signature   0.70    
    Parse::CPAN::Meta   1.4414  
    Test::Harness       3.30    
    Test::More          1.001002
    YAML                0.90    
    YAML::Syck          1.24    
    version             0.9902  


--

Summary of my perl5 (revision 5 version 16 subversion 3) configuration:
   
  Platform:
    osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
    uname='Win32 strawberry-perl 5.16.3.1 #1 Tue Mar 12 13:55:20 2013 i386'
    config_args='undef'
    hint=recommended, useposix=true, d_sigaction=undef
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=undef, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags =' -s -O2 -DWIN32  -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields',
    optimize='-s -O2',
    cppflags='-DWIN32'
    ccversion='', gccversion='4.6.3', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='long long', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='g++', ldflags ='-s -L"C:\strawberry163\perl\lib\CORE" -L"C:\strawberry163\c\lib"'
    libpth=C:\strawberry163\c\lib C:\strawberry163\c\i686-w64-mingw32\lib
    libs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32
    perllibs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32
    libc=, so=dll, useshrplib=true, libperl=libperl516.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-mdll -s -L"C:\strawberry163\perl\lib\CORE" -L"C:\strawberry163\c\lib"'


Characteristics of this binary (from libperl): 
  Compile-time options: HAS_TIMES HAVE_INTERP_INTERN MULTIPLICITY
                        PERLIO_LAYERS PERL_DONT_CREATE_GVSV
                        PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
                        PERL_MALLOC_WRAP PERL_PRESERVE_IVUV PL_OP_SLAB_ALLOC
                        USE_ITHREADS USE_LARGE_FILES USE_LOCALE
                        USE_LOCALE_COLLATE USE_LOCALE_CTYPE
                        USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
  Built under MSWin32
  Compiled at Mar 12 2013 14:01:07
  %ENV:
    PERL5LIB="C:\strawberry163\cpan\build\Dist-Zilla-Plugin-ModuleBuildTiny-0.009-pgoUTI/blib/arch;C:\strawberry163\cpan\build\Dist-Zilla-Plugin-ModuleBuildTiny-0.009-pgoUTI/blib/lib;C:\strawberry163\cpan\build\Module-Build-Tiny-0.039-9zrCME/blib/arch;C:\strawberry163\cpan\build\Module-Build-Tiny-0.039-9zrCME/blib/lib"
    PERL5_CPANPLUS_IS_RUNNING="1148"
    PERL5_CPAN_IS_RUNNING="1148"
    PERL5_CPAN_IS_RUNNING_IN_RECURSION="260,1148"
    PERL_CR_SMOKER_CURRENT="Dist-Zilla-Plugin-CheckLib-0.006"
    PERL_EXTUTILS_AUTOINSTALL="--defaultdeps"
    PERL_MM_USE_DEFAULT="1"
  @INC:
    C:\strawberry163\cpan\build\Dist-Zilla-Plugin-ModuleBuildTiny-0.009-pgoUTI/blib/arch
    C:\strawberry163\cpan\build\Dist-Zilla-Plugin-ModuleBuildTiny-0.009-pgoUTI/blib/lib
    C:\strawberry163\cpan\build\Module-Build-Tiny-0.039-9zrCME/blib/arch
    C:\strawberry163\cpan\build\Module-Build-Tiny-0.039-9zrCME/blib/lib
    C:/strawberry163/perl/site/lib
    C:/strawberry163/perl/vendor/lib
    C:/strawberry163/perl/lib
    .