line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::BrewBuild::Plugin::Author; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# default exec command set plugin for Test::BrewBuild |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
my $state = bless {}, __PACKAGE__; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub brewbuild_exec{ |
10
|
0
|
|
|
0
|
1
|
|
shift; # throw away class |
11
|
0
|
|
|
|
|
|
my $log = shift; |
12
|
0
|
|
|
|
|
|
my $clog = $log->child( __PACKAGE__.'::brewbuild_exec' ); |
13
|
0
|
|
|
|
|
|
$clog->_6( 'performing plugin duties' ); |
14
|
0
|
|
|
|
|
|
return _cmd(); |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
sub _cmd { |
17
|
0
|
|
|
0
|
|
|
my $module = shift; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
#FIXME: we have to do the below nonsense, because DATA can't |
20
|
|
|
|
|
|
|
# be opened twice if we get called more than once per run |
21
|
|
|
|
|
|
|
|
22
|
0
|
0
|
|
|
|
|
if (! defined $state->{raw}){ |
23
|
0
|
|
|
|
|
|
@{ $state->{raw} } = ; |
|
0
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
|
|
|
my @cmd = @{ $state->{raw} }; |
|
0
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
|
|
|
return @cmd; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=pod |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 NAME |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Test::BrewBuild::Plugin::Author - Default test run, but installs author test |
37
|
|
|
|
|
|
|
distributions |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 SYNOPSIS |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
# install various POD and MANIFEST testing distributions, then |
42
|
|
|
|
|
|
|
# run the default tests |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
brewbuild --plugin Test::BrewBuild::Plugin::Author |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 DESCRIPTION |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
This distribution/module is exactly the same as the default test execution |
49
|
|
|
|
|
|
|
plugin that is distributed with L, which is |
50
|
|
|
|
|
|
|
L. The only difference is this one will |
51
|
|
|
|
|
|
|
install author-related distributions that will perform the tests typically run |
52
|
|
|
|
|
|
|
when under the environment variable C. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
These installed distributions are: |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Pod::Coverage |
57
|
|
|
|
|
|
|
Test::Pod::Coverage |
58
|
|
|
|
|
|
|
Test::Manifest |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 METHODS |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head2 brewbuild_exec($log) |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Is called by C, executes the test commands provided |
65
|
|
|
|
|
|
|
by this plugin's C section. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
Optionally takes a C object as a parameter. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 AUTHOR |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
Steve Bertrand, C<< >> |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=cut |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
__DATA__ |