Updated version 0.29 from 'upstream/0.29'
with Debian dir 072c62f81cbdf30f3971c377644dd3cdf40eddb1
Nuno Carvalho
6 years ago
0 | 0 | Revision history for Perl module CPAN::Reporter::Smoker |
1 | ||
2 | 0.29 2017-04-15 09:52:48-04:00 America/New_York | |
3 | ||
4 | [FIXED] | |
5 | ||
6 | - Fixed tests for perls without '.' in @INC. | |
1 | 7 | |
2 | 8 | 0.28 2016-02-29 19:06:11-05:00 America/New_York |
3 | 9 |
0 | This software is Copyright (c) 2016 by David Golden. | |
0 | This software is Copyright (c) 2017 by David Golden. | |
1 | 1 | |
2 | 2 | This is free software, licensed under: |
3 | 3 |
0 | # This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.043. | |
0 | # This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.009. | |
1 | 1 | CONTRIBUTING.mkdn |
2 | 2 | Changes |
3 | 3 | LICENSE |
33 | 33 | t/CPAN/modules/02packages.details.txt.gz |
34 | 34 | t/CPAN/modules/03modlist.data.gz |
35 | 35 | t/CPAN/update-checksums.pl |
36 | t/DotDirs.pm | |
37 | 36 | t/args.t |
38 | 37 | t/data/MyConfig.pm |
39 | 38 | t/data/disabled.yml |
40 | 39 | t/data/dist-list |
40 | t/lib/DotDirs.pm | |
41 | 41 | t/lib/Test/Reporter.pm |
42 | 42 | t/parse_module_index.t |
43 | 43 | t/parse_module_index/02packages.details.txt |
55 | 55 | xt/author/pod-coverage.t |
56 | 56 | xt/author/pod-spell.t |
57 | 57 | xt/author/pod-syntax.t |
58 | xt/author/portability.t | |
58 | 59 | xt/author/test-version.t |
59 | 60 | xt/release/distmeta.t |
60 | 61 | xt/release/minimum-version.t |
61 | xt/release/portability.t |
3 | 3 | "David Golden <dagolden@cpan.org>" |
4 | 4 | ], |
5 | 5 | "dynamic_config" : 0, |
6 | "generated_by" : "Dist::Zilla version 5.043, CPAN::Meta::Converter version 2.150001", | |
6 | "generated_by" : "Dist::Zilla version 6.009, CPAN::Meta::Converter version 2.150010", | |
7 | 7 | "license" : [ |
8 | 8 | "apache_2_0" |
9 | 9 | ], |
46 | 46 | "Pod::Wordlist" : "0", |
47 | 47 | "Software::License::Apache_2_0" : "0", |
48 | 48 | "Test::CPAN::Meta" : "0", |
49 | "Test::MinimumVersion" : "0", | |
49 | 50 | "Test::More" : "0", |
50 | 51 | "Test::Pod" : "1.41", |
51 | 52 | "Test::Pod::Coverage" : "1.08", |
53 | "Test::Portability::Files" : "0", | |
52 | 54 | "Test::Spelling" : "0.12", |
53 | 55 | "Test::Version" : "1", |
54 | 56 | "blib" : "1.01" |
92 | 94 | "IO::CaptureOutput" : "1.06", |
93 | 95 | "IO::File" : "0", |
94 | 96 | "Test::More" : "0.62", |
97 | "lib" : "0", | |
95 | 98 | "perl" : "5.010", |
96 | 99 | "vars" : "0" |
97 | 100 | } |
100 | 103 | "provides" : { |
101 | 104 | "CPAN::Reporter::Smoker" : { |
102 | 105 | "file" : "lib/CPAN/Reporter/Smoker.pm", |
103 | "version" : "0.28" | |
106 | "version" : "0.29" | |
104 | 107 | } |
105 | 108 | }, |
106 | 109 | "release_status" : "stable", |
115 | 118 | "web" : "https://github.com/cpan-testers/CPAN-Reporter-Smoker" |
116 | 119 | } |
117 | 120 | }, |
118 | "version" : "0.28", | |
121 | "version" : "0.29", | |
119 | 122 | "x_authority" : "cpan:DAGOLDEN", |
120 | 123 | "x_contributors" : [ |
121 | 124 | "Alexandr Ciornii <alexchorny@gmail.com>", |
122 | 125 | "Christian Walde <walde.christian@googlemail.com>", |
123 | 126 | "gregor herrmann <gregoa@cpan.org>" |
124 | ] | |
127 | ], | |
128 | "x_serialization_backend" : "Cpanel::JSON::XS version 3.0225" | |
125 | 129 | } |
126 | 130 |
11 | 11 | IO::CaptureOutput: '1.06' |
12 | 12 | IO::File: '0' |
13 | 13 | Test::More: '0.62' |
14 | lib: '0' | |
14 | 15 | perl: '5.010' |
15 | 16 | vars: '0' |
16 | 17 | configure_requires: |
17 | 18 | ExtUtils::MakeMaker: '6.17' |
18 | 19 | perl: '5.006' |
19 | 20 | dynamic_config: 0 |
20 | generated_by: 'Dist::Zilla version 5.043, CPAN::Meta::Converter version 2.150001' | |
21 | generated_by: 'Dist::Zilla version 6.009, CPAN::Meta::Converter version 2.150010' | |
21 | 22 | license: apache |
22 | 23 | meta-spec: |
23 | 24 | url: http://module-build.sourceforge.net/META-spec-v1.4.html |
34 | 35 | provides: |
35 | 36 | CPAN::Reporter::Smoker: |
36 | 37 | file: lib/CPAN/Reporter/Smoker.pm |
37 | version: '0.28' | |
38 | version: '0.29' | |
38 | 39 | requires: |
39 | 40 | CPAN: '1.93' |
40 | 41 | CPAN::HandleConfig: '0' |
60 | 61 | bugtracker: https://github.com/cpan-testers/CPAN-Reporter-Smoker/issues |
61 | 62 | homepage: https://github.com/cpan-testers/CPAN-Reporter-Smoker |
62 | 63 | repository: https://github.com/cpan-testers/CPAN-Reporter-Smoker.git |
63 | version: '0.28' | |
64 | version: '0.29' | |
64 | 65 | x_authority: cpan:DAGOLDEN |
65 | 66 | x_contributors: |
66 | 67 | - 'Alexandr Ciornii <alexchorny@gmail.com>' |
67 | 68 | - 'Christian Walde <walde.christian@googlemail.com>' |
68 | 69 | - 'gregor herrmann <gregoa@cpan.org>' |
70 | x_serialization_backend: 'YAML::Tiny version 1.69' |
0 | # This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.043. | |
0 | # This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.009. | |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | 3 | |
46 | 46 | "IO::CaptureOutput" => "1.06", |
47 | 47 | "IO::File" => 0, |
48 | 48 | "Test::More" => "0.62", |
49 | "lib" => 0, | |
49 | 50 | "vars" => 0 |
50 | 51 | }, |
51 | "VERSION" => "0.28", | |
52 | "VERSION" => "0.29", | |
52 | 53 | "test" => { |
53 | 54 | "TESTS" => "t/*.t" |
54 | 55 | } |
80 | 81 | "Term::Title" => "0.01", |
81 | 82 | "Test::More" => "0.62", |
82 | 83 | "Test::Reporter" => "1.58", |
84 | "lib" => 0, | |
83 | 85 | "strict" => 0, |
84 | 86 | "vars" => 0, |
85 | 87 | "warnings" => 0 |
1 | 1 | CPAN::Reporter::Smoker - Turnkey CPAN Testers smoking |
2 | 2 | |
3 | 3 | VERSION |
4 | version 0.28 | |
4 | version 0.29 | |
5 | 5 | |
6 | 6 | SYNOPSIS |
7 | 7 | $ perl -MCPAN::Reporter::Smoker -e start |
410 | 410 | * gregor herrmann <gregoa@cpan.org> |
411 | 411 | |
412 | 412 | COPYRIGHT AND LICENSE |
413 | This software is Copyright (c) 2016 by David Golden. | |
413 | This software is Copyright (c) 2017 by David Golden. | |
414 | 414 | |
415 | 415 | This is free software, licensed under: |
416 | 416 |
28 | 28 | requires "IO::CaptureOutput" => "1.06"; |
29 | 29 | requires "IO::File" => "0"; |
30 | 30 | requires "Test::More" => "0.62"; |
31 | requires "lib" => "0"; | |
31 | 32 | requires "perl" => "5.010"; |
32 | 33 | requires "vars" => "0"; |
33 | 34 | }; |
56 | 57 | requires "Pod::Wordlist" => "0"; |
57 | 58 | requires "Software::License::Apache_2_0" => "0"; |
58 | 59 | requires "Test::CPAN::Meta" => "0"; |
60 | requires "Test::MinimumVersion" => "0"; | |
59 | 61 | requires "Test::More" => "0"; |
60 | 62 | requires "Test::Pod" => "1.41"; |
61 | 63 | requires "Test::Pod::Coverage" => "1.08"; |
64 | requires "Test::Portability::Files" => "0"; | |
62 | 65 | requires "Test::Spelling" => "0.12"; |
63 | 66 | requires "Test::Version" => "1"; |
64 | 67 | requires "blib" => "1.01"; |
2 | 2 | use warnings; |
3 | 3 | package CPAN::Reporter::Smoker; |
4 | 4 | |
5 | our $VERSION = '0.28'; | |
5 | our $VERSION = '0.29'; | |
6 | 6 | |
7 | 7 | use Carp; |
8 | 8 | use Config; |
559 | 559 | |
560 | 560 | =head1 VERSION |
561 | 561 | |
562 | version 0.28 | |
562 | version 0.29 | |
563 | 563 | |
564 | 564 | =head1 SYNOPSIS |
565 | 565 | |
1067 | 1067 | |
1068 | 1068 | =head1 COPYRIGHT AND LICENSE |
1069 | 1069 | |
1070 | This software is Copyright (c) 2016 by David Golden. | |
1070 | This software is Copyright (c) 2017 by David Golden. | |
1071 | 1071 | |
1072 | 1072 | This is free software, licensed under: |
1073 | 1073 |
20 | 20 | 'Pod::Wordlist' => '0', |
21 | 21 | 'Software::License::Apache_2_0' => '0', |
22 | 22 | 'Test::CPAN::Meta' => '0', |
23 | 'Test::MinimumVersion' => '0', | |
23 | 24 | 'Test::More' => '0', |
24 | 25 | 'Test::Pod' => '1.41', |
25 | 26 | 'Test::Pod::Coverage' => '1.08', |
27 | 'Test::Portability::Files' => '0', | |
26 | 28 | 'Test::Spelling' => '0.12', |
27 | 29 | 'Test::Version' => '1', |
28 | 30 | 'blib' => '1.01' |
66 | 68 | 'IO::CaptureOutput' => '1.06', |
67 | 69 | 'IO::File' => '0', |
68 | 70 | 'Test::More' => '0.62', |
71 | 'lib' => '0', | |
69 | 72 | 'perl' => '5.010', |
70 | 73 | 'vars' => '0' |
71 | 74 | } |
2 | 2 | use strict; |
3 | 3 | use warnings; |
4 | 4 | |
5 | # This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.024 | |
5 | # This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.025 | |
6 | 6 | |
7 | 7 | use Test::More tests => 1; |
8 | 8 | |
77 | 77 | |
78 | 78 | # Add dynamic prereqs to the included modules list (if we can) |
79 | 79 | my ($source) = grep { -f } 'MYMETA.json', 'MYMETA.yml'; |
80 | if ( $source && $HAS_CPAN_META ) { | |
81 | if ( my $meta = eval { CPAN::Meta->load_file($source) } ) { | |
82 | $full_prereqs = _merge_prereqs($full_prereqs, $meta->prereqs); | |
83 | } | |
80 | if ( $source && $HAS_CPAN_META | |
81 | && (my $meta = eval { CPAN::Meta->load_file($source) } ) | |
82 | ) { | |
83 | $full_prereqs = _merge_prereqs($full_prereqs, $meta->prereqs); | |
84 | 84 | } |
85 | 85 | else { |
86 | 86 | $source = 'static metadata'; |
0 | package t::DotDirs; | |
1 | ||
2 | # stolen/adapted from local_utils.pm in the CPAN.pm distro | |
3 | ||
4 | use Config; | |
5 | use File::Path qw(rmtree mkpath); | |
6 | use File::Spec (); | |
7 | use IO::File; | |
8 | ||
9 | sub _f ($) {File::Spec->rel2abs(File::Spec->catfile(split /\//, shift));} | |
10 | sub _d ($) {File::Spec->rel2abs(File::Spec->catdir(split /\//, shift));} | |
11 | ||
12 | my $dot_cpan = _d("t/dot-cpan$$"); | |
13 | my $dot_cpan_reporter = _d("t/dot-cpanreporter$$"); | |
14 | my $cpanlib = _d("$dot_cpan/lib"); | |
15 | my $testlib = _d("t/lib"); | |
16 | ||
17 | sub _cleanup { | |
18 | my $dir = shift; | |
19 | # suppress warnings | |
20 | local $SIG{__WARN__} = sub { 1 }; | |
21 | # try more than once -- Win32 sometimes fails due to apparent timing issues | |
22 | for ( 0 .. 1 ) { | |
23 | rmtree $dir if -d $dir; | |
24 | } | |
25 | } | |
26 | ||
27 | sub prepare_cpan { | |
28 | my $class = shift; | |
29 | _cleanup $dot_cpan; | |
30 | mkpath $dot_cpan; | |
31 | my $fh = IO::File->new( "t/data/MyConfig.pm" ); | |
32 | my $config = do { local $/; <$fh> }; | |
33 | $config =~ s/DOT_CPAN/dot-cpan$$/; | |
34 | mkpath _d("$cpanlib/CPAN"); | |
35 | $fh = IO::File->new(_f("$cpanlib/CPAN/MyConfig.pm"), "w") or die $!; | |
36 | print {$fh} $config; | |
37 | close $fh; | |
38 | $class->munge_inc($cpanlib); | |
39 | # load early | |
40 | require CPAN::MyConfig; | |
41 | $ENV{PERL5OPT} = join( q{ }, | |
42 | "-I$cpanlib -MCPAN::MyConfig", ( defined $ENV{PERL5OPT} ? $ENV{PERL5OPT} : () ) | |
43 | ); | |
44 | return $dot_cpan; | |
45 | } | |
46 | ||
47 | sub prepare_cpan_reporter { | |
48 | my $class = shift; | |
49 | _cleanup $dot_cpan_reporter; | |
50 | mkpath $dot_cpan_reporter; | |
51 | my $config = IO::File->new( _f"$dot_cpan_reporter\/config.ini", ">" ); | |
52 | print {$config} <DATA>; | |
53 | $config->close; | |
54 | $class->munge_inc( $testlib ); | |
55 | return $dot_cpan_reporter; | |
56 | } | |
57 | ||
58 | sub munge_inc { | |
59 | my $class = shift; | |
60 | my (@dirs) = @_; | |
61 | unshift @INC, @dirs; | |
62 | $ENV{PERL5LIB} = join( $Config{path_sep}, | |
63 | @dirs, ( defined $ENV{PERL5LIB} ? $ENV{PERL5LIB} : () ) | |
64 | ); | |
65 | } | |
66 | ||
67 | END { | |
68 | _cleanup $dot_cpan unless $?; | |
69 | _cleanup $dot_cpan_reporter unless $?; | |
70 | } | |
71 | ||
72 | 1; | |
73 | ||
74 | # standard .cpanreporter/config.ini for testing | |
75 | __DATA__ | |
76 | email_from = johndoe@example.com | |
77 | command_timeout = 30 | |
78 | send_duplicates = yes | |
79 | transport = Null |
4 | 4 | |
5 | 5 | use Config; |
6 | 6 | use File::Spec; |
7 | use t::DotDirs; | |
7 | use lib 't/lib'; | |
8 | use DotDirs; | |
8 | 9 | use IO::CaptureOutput 1.06 qw/capture/; |
9 | 10 | |
10 | 11 | my @good_args = ( |
116 | 117 | #--------------------------------------------------------------------------# |
117 | 118 | |
118 | 119 | # Setup CPAN::Reporter configuration and add mock lib path to @INC |
119 | $ENV{PERL_CPAN_REPORTER_DIR} = t::DotDirs->prepare_cpan_reporter; | |
120 | $ENV{PERL_CPAN_REPORTER_DIR} = DotDirs->prepare_cpan_reporter; | |
120 | 121 | |
121 | 122 | # Setup CPAN dotdir with custom CPAN::MyConfig |
122 | t::DotDirs->prepare_cpan; | |
123 | DotDirs->prepare_cpan; | |
123 | 124 | |
124 | 125 | my ($stdout, $stderr); |
125 | 126 |
0 | package DotDirs; | |
1 | ||
2 | # stolen/adapted from local_utils.pm in the CPAN.pm distro | |
3 | ||
4 | use Config; | |
5 | use File::Path qw(rmtree mkpath); | |
6 | use File::Spec (); | |
7 | use IO::File; | |
8 | ||
9 | sub _f ($) {File::Spec->rel2abs(File::Spec->catfile(split /\//, shift));} | |
10 | sub _d ($) {File::Spec->rel2abs(File::Spec->catdir(split /\//, shift));} | |
11 | ||
12 | my $dot_cpan = _d("t/dot-cpan$$"); | |
13 | my $dot_cpan_reporter = _d("t/dot-cpanreporter$$"); | |
14 | my $cpanlib = _d("$dot_cpan/lib"); | |
15 | my $testlib = _d("t/lib"); | |
16 | ||
17 | sub _cleanup { | |
18 | my $dir = shift; | |
19 | # suppress warnings | |
20 | local $SIG{__WARN__} = sub { 1 }; | |
21 | # try more than once -- Win32 sometimes fails due to apparent timing issues | |
22 | for ( 0 .. 1 ) { | |
23 | rmtree $dir if -d $dir; | |
24 | } | |
25 | } | |
26 | ||
27 | sub prepare_cpan { | |
28 | my $class = shift; | |
29 | _cleanup $dot_cpan; | |
30 | mkpath $dot_cpan; | |
31 | my $fh = IO::File->new( "t/data/MyConfig.pm" ); | |
32 | my $config = do { local $/; <$fh> }; | |
33 | $config =~ s/DOT_CPAN/dot-cpan$$/; | |
34 | mkpath _d("$cpanlib/CPAN"); | |
35 | $fh = IO::File->new(_f("$cpanlib/CPAN/MyConfig.pm"), "w") or die $!; | |
36 | print {$fh} $config; | |
37 | close $fh; | |
38 | $class->munge_inc($cpanlib); | |
39 | # load early | |
40 | require CPAN::MyConfig; | |
41 | $ENV{PERL5OPT} = join( q{ }, | |
42 | "-I$cpanlib -MCPAN::MyConfig", ( defined $ENV{PERL5OPT} ? $ENV{PERL5OPT} : () ) | |
43 | ); | |
44 | return $dot_cpan; | |
45 | } | |
46 | ||
47 | sub prepare_cpan_reporter { | |
48 | my $class = shift; | |
49 | _cleanup $dot_cpan_reporter; | |
50 | mkpath $dot_cpan_reporter; | |
51 | my $config = IO::File->new( _f"$dot_cpan_reporter\/config.ini", ">" ); | |
52 | print {$config} <DATA>; | |
53 | $config->close; | |
54 | $class->munge_inc( $testlib ); | |
55 | return $dot_cpan_reporter; | |
56 | } | |
57 | ||
58 | sub munge_inc { | |
59 | my $class = shift; | |
60 | my (@dirs) = @_; | |
61 | unshift @INC, @dirs; | |
62 | $ENV{PERL5LIB} = join( $Config{path_sep}, | |
63 | @dirs, ( defined $ENV{PERL5LIB} ? $ENV{PERL5LIB} : () ) | |
64 | ); | |
65 | } | |
66 | ||
67 | END { | |
68 | _cleanup $dot_cpan unless $?; | |
69 | _cleanup $dot_cpan_reporter unless $?; | |
70 | } | |
71 | ||
72 | 1; | |
73 | ||
74 | # standard .cpanreporter/config.ini for testing | |
75 | __DATA__ | |
76 | email_from = johndoe@example.com | |
77 | command_timeout = 30 | |
78 | send_duplicates = yes | |
79 | transport = Null |
5 | 5 | use Config; |
6 | 6 | use File::Spec; |
7 | 7 | use IO::CaptureOutput qw/capture/; |
8 | use t::DotDirs; | |
8 | use lib 't/lib'; | |
9 | use DotDirs; | |
9 | 10 | |
10 | 11 | plan tests => 5 ; |
11 | 12 | |
14 | 15 | #--------------------------------------------------------------------------# |
15 | 16 | |
16 | 17 | # Setup CPAN::Reporter configuration and add mock lib path to @INC |
17 | $ENV{PERL_CPAN_REPORTER_DIR} = t::DotDirs->prepare_cpan_reporter; | |
18 | $ENV{PERL_CPAN_REPORTER_DIR} = DotDirs->prepare_cpan_reporter; | |
18 | 19 | |
19 | 20 | # Setup CPAN dotdir with custom CPAN::MyConfig |
20 | t::DotDirs->prepare_cpan; | |
21 | DotDirs->prepare_cpan; | |
21 | 22 | |
22 | 23 | my ($stdout, $stderr); |
23 | 24 |
5 | 5 | use Config; |
6 | 6 | use File::Spec; |
7 | 7 | use IO::CaptureOutput qw/capture/; |
8 | use t::DotDirs; | |
8 | use lib 't/lib'; | |
9 | use DotDirs; | |
9 | 10 | |
10 | 11 | if( eval {require YAML; 1 } ) { |
11 | 12 | plan tests => 5 ; |
19 | 20 | #--------------------------------------------------------------------------# |
20 | 21 | |
21 | 22 | # Setup CPAN::Reporter configuration and add mock lib path to @INC |
22 | $ENV{PERL_CPAN_REPORTER_DIR} = t::DotDirs->prepare_cpan_reporter; | |
23 | $ENV{PERL_CPAN_REPORTER_DIR} = DotDirs->prepare_cpan_reporter; | |
23 | 24 | |
24 | 25 | # Setup CPAN dotdir with custom CPAN::MyConfig |
25 | t::DotDirs->prepare_cpan; | |
26 | DotDirs->prepare_cpan; | |
26 | 27 | |
27 | 28 | my ($stdout, $stderr); |
28 | 29 |
5 | 5 | use Config; |
6 | 6 | use File::Spec; |
7 | 7 | use IO::CaptureOutput qw/capture/; |
8 | use t::DotDirs; | |
8 | use lib 't/lib'; | |
9 | use DotDirs; | |
9 | 10 | |
10 | 11 | plan tests => 6 ; |
11 | 12 | |
14 | 15 | #--------------------------------------------------------------------------# |
15 | 16 | |
16 | 17 | # Setup CPAN::Reporter configuration and add mock lib path to @INC |
17 | $ENV{PERL_CPAN_REPORTER_DIR} = t::DotDirs->prepare_cpan_reporter; | |
18 | $ENV{PERL_CPAN_REPORTER_DIR} = DotDirs->prepare_cpan_reporter; | |
18 | 19 | |
19 | 20 | # Setup CPAN dotdir with custom CPAN::MyConfig |
20 | t::DotDirs->prepare_cpan; | |
21 | DotDirs->prepare_cpan; | |
21 | 22 | |
22 | 23 | my ($stdout, $stderr); |
23 | 24 |
5 | 5 | use Config; |
6 | 6 | use File::Spec; |
7 | 7 | use IO::CaptureOutput qw/capture/; |
8 | use t::DotDirs; | |
8 | use lib 't/lib'; | |
9 | use DotDirs; | |
9 | 10 | |
10 | 11 | plan tests => 6 ; |
11 | 12 | |
14 | 15 | #--------------------------------------------------------------------------# |
15 | 16 | |
16 | 17 | # Setup CPAN::Reporter configuration and add mock lib path to @INC |
17 | $ENV{PERL_CPAN_REPORTER_DIR} = t::DotDirs->prepare_cpan_reporter; | |
18 | $ENV{PERL_CPAN_REPORTER_DIR} = DotDirs->prepare_cpan_reporter; | |
18 | 19 | |
19 | 20 | # Setup CPAN dotdir with custom CPAN::MyConfig |
20 | t::DotDirs->prepare_cpan; | |
21 | DotDirs->prepare_cpan; | |
21 | 22 | |
22 | 23 | my ($stdout, $stderr); |
23 | 24 |
5 | 5 | use Config; |
6 | 6 | use File::Spec; |
7 | 7 | use IO::CaptureOutput qw/capture/; |
8 | use t::DotDirs; | |
8 | use lib 't/lib'; | |
9 | use DotDirs; | |
9 | 10 | |
10 | 11 | plan tests => 6 ; |
11 | 12 | |
14 | 15 | #--------------------------------------------------------------------------# |
15 | 16 | |
16 | 17 | # Setup CPAN::Reporter configuration and add mock lib path to @INC |
17 | $ENV{PERL_CPAN_REPORTER_DIR} = t::DotDirs->prepare_cpan_reporter; | |
18 | $ENV{PERL_CPAN_REPORTER_DIR} = DotDirs->prepare_cpan_reporter; | |
18 | 19 | |
19 | 20 | # Setup CPAN dotdir with custom CPAN::MyConfig |
20 | t::DotDirs->prepare_cpan; | |
21 | DotDirs->prepare_cpan; | |
21 | 22 | |
22 | 23 | my ($stdout, $stderr); |
23 | 24 |
5 | 5 | use Config; |
6 | 6 | use File::Spec; |
7 | 7 | use IO::CaptureOutput qw/capture/; |
8 | use t::DotDirs; | |
8 | use lib 't/lib'; | |
9 | use DotDirs; | |
9 | 10 | |
10 | 11 | plan tests => 7 ; |
11 | 12 | |
14 | 15 | #--------------------------------------------------------------------------# |
15 | 16 | |
16 | 17 | # Setup CPAN::Reporter configuration and add mock lib path to @INC |
17 | $ENV{PERL_CPAN_REPORTER_DIR} = t::DotDirs->prepare_cpan_reporter; | |
18 | $ENV{PERL_CPAN_REPORTER_DIR} = DotDirs->prepare_cpan_reporter; | |
18 | 19 | |
19 | 20 | # Setup CPAN dotdir with custom CPAN::MyConfig |
20 | t::DotDirs->prepare_cpan; | |
21 | DotDirs->prepare_cpan; | |
21 | 22 | |
22 | 23 | my ($stdout, $stderr); |
23 | 24 |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | 3 | |
4 | # this test was generated with Dist::Zilla::Plugin::Test::Compile 2.054 | |
4 | # this test was generated with Dist::Zilla::Plugin::Test::Compile 2.056 | |
5 | 5 | |
6 | 6 | use Test::More; |
7 | 7 | |
18 | 18 | local $ENV{HOME} = File::Temp::tempdir( CLEANUP => 1 ); |
19 | 19 | |
20 | 20 | |
21 | my $inc_switch = -d 'blib' ? '-Mblib' : '-Ilib'; | |
21 | my @switches = ( | |
22 | -d 'blib' ? '-Mblib' : '-Ilib', | |
23 | ); | |
22 | 24 | |
23 | 25 | use File::Spec; |
24 | 26 | use IPC::Open3; |
32 | 34 | # see L<perlfaq8/How can I capture STDERR from an external command?> |
33 | 35 | my $stderr = IO::Handle->new; |
34 | 36 | |
35 | my $pid = open3($stdin, '>&STDERR', $stderr, $^X, $inc_switch, '-e', "require q[$lib]"); | |
37 | diag('Running: ', join(', ', map { my $str = $_; $str =~ s/'/\\'/g; q{'} . $str . q{'} } | |
38 | $^X, @switches, '-e', "require q[$lib]")) | |
39 | if $ENV{PERL_COMPILE_TEST_DEBUG}; | |
40 | ||
41 | my $pid = open3($stdin, '>&STDERR', $stderr, $^X, @switches, '-e', "require q[$lib]"); | |
36 | 42 | binmode $stderr, ':crlf' if $^O eq 'MSWin32'; |
37 | 43 | my @_warnings = <$stderr>; |
38 | 44 | waitpid($pid, 0); |
1 | 1 | use warnings; |
2 | 2 | use Test::More; |
3 | 3 | |
4 | # generated by Dist::Zilla::Plugin::Test::PodSpelling 2.007000 | |
4 | # generated by Dist::Zilla::Plugin::Test::PodSpelling 2.007004 | |
5 | 5 | use Test::Spelling 0.12; |
6 | 6 | use Pod::Wordlist; |
7 | 7 | |
8 | 8 | |
9 | 9 | add_stopwords(<DATA>); |
10 | all_pod_files_spelling_ok( qw( bin lib ) ); | |
10 | all_pod_files_spelling_ok( qw( bin lib ) ); | |
11 | 11 | __DATA__ |
12 | unindexed | |
12 | Alexandr | |
13 | 13 | Bam |
14 | 14 | Baz |
15 | CPAN | |
15 | 16 | CTRL |
17 | Christian | |
18 | Ciornii | |
19 | David | |
16 | 20 | Distroprefs |
21 | Golden | |
22 | Reporter | |
17 | 23 | SIGKILL |
24 | Smoker | |
25 | Walde | |
26 | alexchorny | |
18 | 27 | cpanreporter |
28 | dagolden | |
19 | 29 | defaultdeps |
20 | 30 | distroprefs |
31 | gregoa | |
32 | gregor | |
33 | herrmann | |
21 | 34 | kurila |
35 | lib | |
22 | 36 | minicpanrc |
23 | 37 | prerelease |
24 | 38 | titlebar |
39 | unindexed | |
25 | 40 | untarring |
26 | 41 | urllist |
27 | David | |
28 | Golden | |
29 | dagolden | |
30 | Alexandr | |
31 | Ciornii | |
32 | alexchorny | |
33 | Christian | |
34 | Walde | |
35 | 42 | walde |
36 | gregor | |
37 | herrmann | |
38 | gregoa | |
39 | lib | |
40 | CPAN | |
41 | Reporter | |
42 | Smoker |
0 | use strict; | |
1 | use warnings; | |
2 | ||
3 | use Test::More; | |
4 | ||
5 | eval 'use Test::Portability::Files'; | |
6 | plan skip_all => 'Test::Portability::Files required for testing portability' | |
7 | if $@; | |
8 | options(test_one_dot => 0); | |
9 | run_tests(); |
1 | 1 | use warnings; |
2 | 2 | use Test::More; |
3 | 3 | |
4 | # generated by Dist::Zilla::Plugin::Test::Version 1.05 | |
4 | # generated by Dist::Zilla::Plugin::Test::Version 1.09 | |
5 | 5 | use Test::Version; |
6 | 6 | |
7 | 7 | my @imports = qw( version_all_ok ); |
16 | 16 | push @imports, $params |
17 | 17 | if version->parse( $Test::Version::VERSION ) >= version->parse('1.002'); |
18 | 18 | |
19 | ||
20 | 19 | Test::Version->import(@imports); |
21 | 20 | |
22 | 21 | version_all_ok; |