lib/Test/Smoke/Util.pm

filter: Statementstmt 75.0% 428 / 570 Branchbran 64.6% 273 / 422 Conditioncond 67.4% 180 / 267 MC/DCmcdc 19.6% 23 / 117 Subroutinesub 87.5% 28 / 32 Podpod 100% 24 / 24 totaltotal 66.7% 956 / 1432 CC 312 SCAR 39.0
CC
312
Cov
70%
vms_whereis
156.0
get_ncpu
119.2
skip_filter
102.2
CRAP 49.3
« blib/lib/Test/Smoke/Reporter.pm ↑ Summary blib/lib/Test/Smoke/Patcher.pm »
1 package Test::Smoke::Util;
2 46 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 46 our $VERSION = '0.58';
5  
6 46 ▶use Exporter 'import';
Subroutine BEGIN: called CC=1 SCAR=0.0
7 46 our @EXPORT = qw(
8 &Configure_win32
9 &get_cfg_filename &get_config
10 &get_patch
11 &skip_config &skip_filter
12 );
13  
14 46 our @EXPORT_OK = qw(
15 &grepccmsg &grepnonfatal &get_local_patches &set_local_patch
16 &get_ncpu &get_smoked_Config &parse_report_Config
17 &get_regen_headers &run_regen_headers
18 &whereis &clean_filename &read_logfile
19 &calc_timeout &time_in_hhmm
20 &do_pod2usage
21 &set_vms_rooted_logical
22 );
23  
24 46 ▶use Text::ParseWords;
Subroutine BEGIN: called CC=1 SCAR=0.0
25 46 ▶use File::Spec::Functions;
Subroutine BEGIN: called CC=1 SCAR=0.0
26 46 ▶use Encode qw ( decode );
Subroutine BEGIN: called CC=1 SCAR=0.0
27 46 ▶use File::Find;
Subroutine BEGIN: called CC=1 SCAR=0.0
28 46 ▶use Cwd;
Subroutine BEGIN: called CC=1 SCAR=0.0
29 46 ▶use Test::Smoke::LogMixin;
Subroutine BEGIN: called CC=1 SCAR=0.0
30  
31 46 our $NOCASE = $^O eq 'VMS';
32  
33 =head1 NAME
34  
35 Test::Smoke::Util - Take out some of the functions of the smoke suite.
36  
37 =head1 FUNCTIONS
38  
39 I've taken out some of the general stuff and put it here.
40 Now I can write some tests!
41  
42 =head2 Configure_win32( $command[, $win32_maker[, @args]] )
43  
44 C<Configure_win32()> alters the settings of the makefile for MSWin32.
45  
46 C<$command> is in the form of './Configure -des -Dusedevel ...'
47  
48 C<$win32_maker> should either be C<nmake> or C<gmake>, the default
49 is C<nmake>.
50  
51 C<@args> is a list of C<< option=value >> pairs that will (eventually)
52 be passed to L<Config.pm>.
53  
54 PLEASE read README.win32 and study the comments in the makefile.
55  
56 It supports these options:
57  
58 =over 4
59  
60 =item * B<-Duseperlio>
61  
62 set USE_PERLIO = define (default) [should be depricated]
63  
64 =item * B<-Dusethreads>
65  
66 set USE_ITHREADS = define (also sets USE_MULTI and USE_IMP_SYS)
67  
68 =item * B<-Duseithreads>
69  
70 set USE_ITHREADS = define (also sets USE_MULTI and USE_IMP_SYS)
71  
72 =item * B<-Dusemultiplicity>
73  
74 sets USE_MULTI = define (also sets USE_ITHREADS and USE_IMP_SYS)
75  
76 =item * B<-Duseimpsys>
77  
78 sets USE_IMP_SYS = define (also sets USE_ITHREADS and USE_MULTI)
79  
80 =item * B<-Uusethreads> or B<-Uuseithreads>
81  
82 unset C<USE_MULTI>, C<USE_IMP_SYS> and C<USE_ITHREADS>
83  
84 =item * B<-Dusemymalloc>
85  
86 set C<PERL_MALLOC := define>
87  
88 =item * B<-Duselargefiles>
89  
90 set C<USE_LARGE_FILES := define>
91  
92 =item * B<-Duse64bint>
93  
94 set C<USE_64_BIT_INT := define> (always for win64, needed for -UWIN64)
95  
96 =item * B<-Duselongdouble>
97  
98 set C<USE_LONG_DOUBLE := define> (GCC only)
99  
100 =item * B<-Dusequadmath>
101  
102 set both C<USE_QUADMATH := define> and C<I_QUADMATH := define> (GCC only)
103  
104 =item * B<-Dusesitecustomize>
105  
106 set C<USE_SITECUST := define>
107  
108 =item * B<-Udefault_inc_excludes_dot>
109  
110 unsets C<# DEFAULT_INC_EXCLUDES_DOT := define> (comments out the line)
111  
112 =item * B<-Dbccold>
113  
114 set BCCOLD = define (this is for bcc32 <= 5.4)
115  
116 =item * B<-Dgcc_v3_2>
117  
118 set USE_GCC_V3_2 = define (this is for gcc >= 3.2)
119  
120 =item * B<-DDEBUGGING>
121  
122 sets CFG = Debug
123  
124 =item * B<-DINST_DRV=...>
125  
126 sets INST_DRV to a new value (default is "c:")
127  
128 =item * B<-DINST_TOP=...> or B<-Dprefix=...>
129  
130 sets INST_TOp to a new value (default is "$(INST_DRV)\perl"), this is
131 where perl will be installed when C<< [ng]make install >> is run.
132  
133 =item * B<-DINST_VER=...>
134  
135 sets INST_VER to a new value (default is forced not set), this is also used
136 as part of the installation path to get a more unixy installation.
137 Without C<INST_VER> and C<INST_ARCH> you get an ActiveState like
138 installation.
139  
140 =item * B<-DINST_ARCH=...>
141  
142 sets INST_ARCH to a new value (default is forced not set), this is also used
143 as part of the installation path to get a more unixy installation.
144 Without C<INST_VER> and C<INST_ARCH> you get an ActiveState like
145 installation.
146  
147 =item * B<-DCCHOME=...>
148  
149 Set the base directory for the C compiler.
150 B<$(CCHOME)\bin> still needs to be in the path!
151  
152 =item * B<-DIS_WIN95>
153  
154 sets IS_WIN95 to 'define' to indicate this is Win9[58]
155  
156 =item * B<-DCRYPT_SRC=...>
157  
158 The file to use as source for des_fcrypt()
159  
160 =item * B<-DCRYPT_LIB=...>
161  
162 The library to use for des_fcrypt()
163  
164 =item * B<-Dcf_email=...>
165  
166 Set the cf_email option (Config.pm)
167  
168 =item * B<-Accflags=...>
169  
170 Sets C<BUILDOPTEXTRA>
171  
172 =item * B<-Aldflags=...>
173  
174 Adds and sets C<PRIV_LINK_FLAGS>
175  
176 =back
177  
178 =cut
179  
180 46 my %win32_makefile_map = (
181 nmake => "Makefile",
182 gmake => "GNUmakefile",
183 );
184  
185 28 ▶sub Configure_win32 {
Subroutine Configure_win32: called CC=54 SCAR=41.7
Pod documented
186 28 my($command, $win32_maker, @args ) = @_;
187 28 ▶ $win32_maker ||= 'nmake'; $win32_maker = lc $win32_maker;
Condition50%1/2
$win32_maker ||= "nmake"
l!l
280
MC/DC0%0/1
$win32_maker ||= "nmake"
$win32_maker
Truth table50%1/2
A
A= $win32_maker
Aresult
11
00
188 28 my $is_nmake = $win32_maker eq 'nmake';
189 28 my $is_gmake = $win32_maker eq 'gmake';
190  
191 28 local $_;
192 28 my %opt_map = (
193 "-Dusethreads" => "USE_ITHREADS",
194 "-Duseithreads" => "USE_ITHREADS",
195 "-Duseperlio" => "USE_PERLIO",
196 "-Dusemultiplicity" => "USE_MULTI",
197 "-Duseimpsys" => "USE_IMP_SYS",
198 "-Uuseimpsys" => "USE_IMP_SYS",
199 "-Dusemymalloc" => "PERL_MALLOC",
200 "-Duselargefiles" => "USE_LARGE_FILES",
201 "-Duse64bitint" => "USE_64_BIT_INT",
202 "-Duselongdouble" => "USE_LONG_DOUBLE",
203 "-Dusequadmath" => "USE_QUADMATH",
204 "-Dusesitecustomize" => "USE_SITECUST",
205 "-Uuseshrplib" => "BUILD_STATIC",
206 "-Udefault_inc_excludes_dot" => "DEFAULT_INC_EXCLUDES_DOT",
207 "-UWIN64" => "WIN64",
208 "-Uusethreads" => "USE_ITHREADS",
209 "-Uuseithreads" => "USE_ITHREADS",
210 "-UUSE_MINGW_ANSI_STDIO" => "USE_MINGW_ANSI_STDIO",
211 "-DDEBUGGING" => "USE_DEBUGGING",
212 "-DINST_DRV" => "INST_DRV",
213 "-DINST_TOP" => "INST_TOP",
214 "-Dprefix" => "INST_TOP",
215 "-DINST_VER" => "INST_VER",
216 "-DINST_ARCH" => "INST_ARCH",
217 "-Dcf_email" => "EMAIL",
218 "-DCCTYPE" => "CCTYPE",
219 "-Dgcc_v3_2" => "USE_GCC_V3_2",
220 "-DGCC_4XX" => "GCC_4XX",
221 "-DGCCWRAPV" => "GCCWRAPV",
222 "-DGCCHELPERDLL" => "GCCHELPERDLL",
223 "-Dbccold" => "BCCOLD",
224 "-DCCHOME" => "CCHOME",
225 "-DGCCBIN" => "GCCBIN",
226 "-DIS_WIN95" => "IS_WIN95",
227 "-DCRYPT_SRC" => "CRYPT_SRC",
228 "-DCRYPT_LIB" => "CRYPT_LIB",
229 "-DEXTRALIBDIRS" => "EXTRALIBDIRS",
230 );
231 # %opts hash-values:
232 # undef => leave option as-is when no override (makefile default)
233 # 0 => disable option when no override (forced default)
234 # (true) => enable option when no override (change value, unless
235 # $key =~ /^(?:PERL|USE)_/) (forced default)
236 28 my %opts = (
237 USE_MULTI => 1,
238 USE_ITHREADS => 1,
239 USE_IMP_SYS => 1,
240 USE_PERLIO => 1,
241 USE_LARGE_FILES => 0, # default define
242 PERL_MALLOC => 0,
243 BUILD_STATIC => 0,
244 USE_64_BIT_INT => 0,
245 USE_LONG_DOUBLE => 0,
246 USE_QUADMATH => 0,
247 I_QUADMATH => 0,
248 WIN64 => 1,
249 USE_SITECUST => 0,
250 DEFAULT_INC_EXCLUDES_DOT => 1,
251 USE_MINGW_ANSI_STDIO => 1,
252 USE_DEBUGGING => 0,
253 INST_DRV => undef,
254 INST_TOP => undef,
255 INST_VER => '',
256 INST_ARCH => '',
257 EMAIL => undef, # used to be $smoker,
258 CCTYPE => undef, # used to be $win32_cctype,
259 USE_GCC_V3_2 => 0,
260 GCC_4XX => 0,
261 GCCWRAPV => 0,
262 GCCHELPERDLL => undef,
263 BCCOLD => 0,
264 CCHOME => undef,
265 GCCBIN => 'GCC',
266 IS_WIN95 => 0,
267 CRYPT_SRC => undef,
268 CRYPT_LIB => undef,
269 EXTRALIBDIRS => undef,
270 );
271  
272 # $undef_re: regex for options that should be UNcommented for -Uxxx
273 28 my $undef_re = qr/WIN64/;
274  
275 # $def_re: regex for options that should be UNcommented for -Dxxx
276 28 my $def_re = qr/((?:(?:DEFAULT|PERL|USE|IS|GCC|I)_\w+)|BCCOLD|GCCWRAPV)/;
277  
278 28 my @w32_opts = grep ! /^$def_re/, keys %opts;
279 28 my $config_args = join " ",
280 grep /^-[DU][a-z_]+/, quotewords( '\s+', 1, $command );
281 28 push @args, "config_args=$config_args";
282  
283 my @adjust_opts = grep {
284 28 /^-A(?:ccflags|ldflags)=/
285 } quotewords('\s+', 1, $command);
286 my $adjust_ccflags = join(
287 " ",
288 map {
289 6 ▶ s/^-Accflags=(["']?)(.+?)\1// ? $2 : ()
Branch: 1 branch
BranchTrueFalseTotal
s/^-Accflags=(["']?)(.+?)\1// ? : 6 0 6
290 28 } grep { /^-Accflags=/ } @adjust_opts
291 );
292 my $adjust_ldflags = join(
293 " ",
294 map {
295 0 ▶ s/^-Aldflags=(["']?)(.+?)\1// ? $2 : ()
Branch: 1 branch
BranchTrueFalseTotal
s/^-Aldflags=(["']?)(.+?)\1// ? : 0 0 0
296 28 } grep { /^-Aldflags=/ } @adjust_opts
297 );
298  
299 28 ▶ $command =~ m{^\s*\./Configure\s+(.*)} or die "unable to parse command";
Branch: 1 branch
BranchTrueFalseTotal
$command =~ m[^\s*\./Configure\s+(.*)] or die "unable to parse command" 28 0 28
300 28 my $cmdln = $1;
301 28 foreach ( quotewords( '\s+', 1, $cmdln ) ) {
302 72 ▶ m/^-[des]{1,3}$/ and next;
Branch: 1 branch
BranchTrueFalseTotal
/^-[des]{1,3}$/ and next 8 64 72
303 64 ▶ m/^-Dusedevel$/ and next;
Branch: 1 branch
BranchTrueFalseTotal
/^-Dusedevel$/ and next 8 56 64
304 56 ▶ m/^-A(ccflags|ldflags)/ and next;
Branch: 1 branch
BranchTrueFalseTotal
/^-A(ccflags|ldflags)/ and next 6 50 56
305 50 ▶ if (my( $option, $value ) = /^(-[DU]\w+)(?:=(.+))?$/) {
Branch: 1 branch
BranchTrueFalseTotal
if (() = /^(-[DU]\w+)(?:=(.+))?$/) 50 0 50
306 50 ▶ die "invalid option '$_'" unless exists $opt_map{$option};
Branch: 1 branch
BranchTrueFalseTotal
unless exists $opt_map{$option} 0 50 50
307 50 ▶ $opts{$opt_map{$option}} = $value ? $value : 1;
Branch: 1 branch
BranchTrueFalseTotal
$value ? : 12 38 50
308 50 ▶ $option =~ /^-U/ and $opts{$opt_map{$option}} = 0;
Branch: 1 branch
BranchTrueFalseTotal
$option =~ /^-U/ and $opts{$opt_map{$option}} = 0 8 42 50
309 }
310 }
311  
312 # Handle some switches that impact more make-vars
313 28 ▶ if ( $cmdln =~ /-Uusei?threads\b/ ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($cmdln =~ /-Uusei?threads\b/) 2 26 28
314 2 $opts{USE_MULTI} = $opts{USE_ITHREADS} = $opts{USE_IMP_SYS} = 0;
315  
316 }
317 28 ▶ if ( $cmdln =~ /-Dusequadmath\b/ ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($cmdln =~ /-Dusequadmath\b/) 0 28 28
318 0 $opts{USE_QUADMATH} = $opts{I_QUADMATH} = 1;
319 }
320 # If you set one, we do all, so you can have fork()
321 # unless you set -Uuseimpsys
322 28 ▶ if ( $cmdln !~ /-Uuseimpsys\b/ ) {
Branch: 1 branch
BranchTrueFalseTotal
if (not $cmdln =~ /-Uuseimpsys\b/) { } 26 2 28
323 26 ▶ if ( $opts{USE_MULTI} || $opts{USE_ITHREADS} || $opts{USE_IMP_SYS} ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($opts{"USE_MULTI"} or $opts{"USE_ITHREADS"} or $opts{"USE_IMP_SYS"}) 24 2 26
Condition66%4/6
$opts{"USE_MULTI"} or $opts{"USE_ITHREADS"} or $opts{"USE_IMP_SYS"}
l!l&&r!l&&!r
2402
$opts{"USE_MULTI"} or $opts{"USE_ITHREADS"}
l!l&&r!l&&!r
2402
MC/DC33%1/3
$opts{"USE_MULTI"} or $opts{"USE_ITHREADS"} or $opts{"USE_IMP_SYS"}
$opts{"USE_MULTI"} $opts{"USE_ITHREADS"} $opts{"USE_IMP_SYS"}
Truth table50%2/4
A or B or C
A= $opts{"USE_MULTI"}B= $opts{"USE_ITHREADS"}C= $opts{"USE_IMP_SYS"}
ABCresult
1XX1
01X1
0011
0000
324 24 $opts{USE_MULTI} = $opts{USE_ITHREADS} = $opts{USE_IMP_SYS} = 1;
325 }
326 }
327 else {
328 2 ▶ if ( $opts{USE_MULTI} || $opts{USE_ITHREADS} ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($opts{"USE_MULTI"} or $opts{"USE_ITHREADS"}) 2 0 2
Condition33%1/3
$opts{"USE_MULTI"} or $opts{"USE_ITHREADS"}
l!l&&r!l&&!r
200
MC/DC0%0/2
$opts{"USE_MULTI"} or $opts{"USE_ITHREADS"}
$opts{"USE_MULTI"} $opts{"USE_ITHREADS"}
Truth table33%1/3
A or B
A= $opts{"USE_MULTI"}B= $opts{"USE_ITHREADS"}
ABresult
1X1
011
000
329 2 $opts{USE_MULTI} = $opts{USE_ITHREADS} = 1;
330 }
331 }
332  
333 # If you -Dgcc_v3_2 you 'll *want* CCTYPE = GCC
334 28 ▶ $opts{CCTYPE} = "GCC" if $opts{USE_GCC_V3_2};
Branch: 1 branch
BranchTrueFalseTotal
if $opts{"USE_GCC_V3_2"} 0 28 28
335  
336 # If you -DGCC_4XX you 'll *want* CCTYPE = GCC
337 28 ▶ $opts{CCTYPE} = "GCC" if $opts{GCC_4XX};
Branch: 1 branch
BranchTrueFalseTotal
if $opts{"GCC_4XX"} 0 28 28
338  
339 # If you -Dbccold you 'll *want* CCTYPE = BORLAND
340 28 ▶ $opts{CCTYPE} = "BORLAND" if $opts{BCCOLD};
Branch: 1 branch
BranchTrueFalseTotal
if $opts{"BCCOLD"} 0 28 28
341  
342 28 printf "* %-25s = %s\n", $_, $opts{$_} for grep $opts{$_}, sort keys %opts;
343  
344 28 local (*ORG, *NEW);
345 28 ▶ my $maker = $win32_makefile_map{ $win32_maker }
Branch: 1 branch
BranchTrueFalseTotal
my $maker = $win32_makefile_map{$win32_maker} or die "no make file for $win32_maker" 28 0 28
346 or die "no make file for $win32_maker";
347 28 my $in = "win32/$maker";
348 28 my $out = "win32/smoke.mk";
349 28 ▶ open(ORG, "<:raw", $in) or die "Cannot line-end-check '$in': $!";
Branch: 1 branch
BranchTrueFalseTotal
open ORG, "<:raw", $in or die "Cannot line-end-check '${in}': $!" 28 0 28
350 28 my $dummy = <ORG>;
351 28 close(ORG); undef(*ORG);
352 28 ▶ my $layer = $dummy =~ /\015\012\Z/ ? ':crlf' : '';
Branch: 1 branch
BranchTrueFalseTotal
$dummy =~ /\015\012\Z/ ? : 0 28 28
353  
354 28 ▶ open ORG, "<$layer", $in or die "unable to open '$in': $!";
Branch: 1 branch
BranchTrueFalseTotal
open ORG, "<$layer", $in or die "unable to open '${in}': $!" 28 0 28
355 28 ▶ open NEW, ">:crlf", $out or die "unable to open '$out': $!";
Branch: 1 branch
BranchTrueFalseTotal
open NEW, ">:crlf", $out or die "unable to open '${out}': $!" 28 0 28
356 28 my $donot_change = 0;
357 28 ▶ my $check_linkflags = $adjust_ldflags ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$adjust_ldflags ? : 0 28 28
358 28 ▶ while (<ORG>) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined($_ = readline ORG)) 2450 28 2478
359 2450 ▶ if ( $donot_change ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($donot_change) { } 532 1918 2450
360 # need to help the Win95 build
361 532 ▶ if (m/^\s*CFG_VARS\s*=/) {
Branch: 1 branch
BranchTrueFalseTotal
if (/^\s*CFG_VARS\s*=/) 28 504 532
362 28 ▶ my( $extra_char, $quote ) = ($is_nmake || $is_gmake)
Branch: 1 branch
BranchTrueFalseTotal
$is_nmake || $is_gmake ? : 28 0 28
Condition66%2/3
$is_nmake or $is_gmake
l!l&&r!l&&!r
14140
MC/DC0%0/2
$is_nmake or $is_gmake
$is_nmake $is_gmake
Truth table66%2/3
A or B
A= $is_nmakeB= $is_gmake
ABresult
1X1
011
000
363 ? ( "\t", '"' ) : ("~", "" );
364 28 $_ .= join "", map "\t\t$quote$_$quote\t${extra_char}\t\\\n",
365 grep /\w+=/, @args;
366 }
367 532 print NEW $_;
368 532 next;
369 } else {
370 1918 $donot_change = /^#+ CHANGE THESE ONLY IF YOU MUST #+/;
371 }
372  
373 # Only change config stuff _above_ that line!
374 1918 ▶ if ( m/^\s*#?\s*$def_re(\s*[\*:]?=\s*define)$/ ) {
Branch: 5 branches
BranchTrueFalseTotal
if (/^\s*#?\s*$def_re(\s*[\*:]?=\s*define)$/) { } 266 1652 1918
elsif (/\s*#?\s*($undef_re)(\s*[*:]?=\s*undef)$/) { } 28 1624 1652
elsif (/^\s*#?\s*(CFG\s*[*:]?=\s*Debug)$/) { } 28 1596 1624
elsif (/^\s*#?\s*(BUILD_STATIC)\s*([*:]?=)\s*(.*)$/) { } 28 1568 1596
elsif (/^\s*#?\s*(BUILDOPT)\s*([*:]?)=\s*\$\(BUILDOPTEXTRA\)/) { } 28 1540 1568
375 266 ▶ $_ = ($opts{$1} ? "" : "#") . $1 . $2 . "\n";
Branch: 1 branch
BranchTrueFalseTotal
$opts{$1} ? : 120 146 266
376 }
377 elsif (m/\s*#?\s*($undef_re)(\s*[*:]?=\s*undef)$/) {
378 28 ▶ $_ = ($opts{$1} ? "#" : "") . "$1$2\n";
Branch: 1 branch
BranchTrueFalseTotal
$opts{$1} ? : 26 2 28
379 }
380 elsif (m/^\s*#?\s*(CFG\s*[*:]?=\s*Debug)$/) {
381 28 ▶ $_ = ($opts{USE_DEBUGGING} ? "" : "#") . $1 . "\n";
Branch: 1 branch
BranchTrueFalseTotal
$opts{'USE_DEBUGGING'} ? : 0 28 28
382 }
383 elsif (m/^\s*#?\s*(BUILD_STATIC)\s*([*:]?=)\s*(.*)$/) {
384 28 my( $macro, $op, $mval ) = ( $1, $2, $3);
385 28 ▶ if ( $config_args =~ /-([UD])useshrplib\b/ ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($config_args =~ /-([UD])useshrplib\b/) 2 26 28
386 2 ▶ $_ = ( $1 eq 'D' ? "#" : "" ) . "$macro $op $mval\n";
Branch: 1 branch
BranchTrueFalseTotal
$1 eq 'D' ? : 0 2 2
387 }
388 }
389 elsif (m/^\s*#?\s*(BUILDOPT)\s*([*:]?)=\s*\$\(BUILDOPTEXTRA\)/) {
390 28 ▶ my $prf = $2 ? $2 : '';
Branch: 1 branch
BranchTrueFalseTotal
$2 ? : 14 14 28
391 28 ▶ if ($adjust_ccflags) {
Branch: 1 branch
BranchTrueFalseTotal
if ($adjust_ccflags) 4 24 28
392 # Set BUILDOPTEXTRA to $adjust_ccflags
393 4 s/^\s*#\s*//;
394 4 $_ = "BUILDOPTEXTRA\t${prf}= $adjust_ccflags\n$_";
395 }
396 28 ▶ if ($adjust_ldflags) {
Branch: 1 branch
BranchTrueFalseTotal
if ($adjust_ldflags) 0 28 28
397 0 $_ .= "\n# Additional linker flags\n"
398 . "PRIV_LINK_FLAGS\t${prf}= $adjust_ldflags\n";
399 }
400 }
401 else {
402 1540 foreach my $cfg_var ( grep defined $opts{ $_ }, @w32_opts ) {
403 8029 ▶ if ( m/^\s*#?\s*($cfg_var\s*(\*|:)?=)\s*(.*)$/ ) {
Branch: 1 branch
BranchTrueFalseTotal
if (/^\s*#?\s*($cfg_var\s*(\*|:)?=)\s*(.*)$/) 72 7957 8029
404 72 my ($name, $val) = ($1, $2);
405 72 ▶ next if $_ =~ /^#/ and !$opts{ $cfg_var };
Branch: 1 branch
BranchTrueFalseTotal
if $_ =~ /^#/ and not $opts{$cfg_var} 26 46 72
Condition100%3/3
$_ =~ /^#/ and not $opts{$cfg_var}
!ll&&!rl&&r
301626
MC/DC100%2/2
$_ =~ /^#/ and not $opts{$cfg_var}
$_ =~ /^#/ not $opts{$cfg_var}
Truth table100%3/3
A and not(B)
A= $_ =~ /^#/B= not $opts{$cfg_var}
ABresult
0X0
100
111
406 46 ▶ $_ = $opts{ $cfg_var } ?
Branch: 1 branch
BranchTrueFalseTotal
$opts{$cfg_var} ? : 20 26 46
407 "$name $opts{ $cfg_var }\n":
408 "#$name $val\n";
409 46 last;
410 }
411 }
412 }
413 1918 print NEW $_;
414 }
415 28 close ORG;
416 28 close NEW;
417 28 return $out;
418 } # Configure_win32
419  
420 =head2 set_vms_rooted_logical( $logical, $dir )
421  
422 This will set a VMS rooted logical like:
423  
424 define/translation=concealed $logical $dir
425  
426 =cut
427  
428 0 ▶sub set_vms_rooted_logical {
Subroutine set_vms_rooted_logical: not called CC=7 SCAR=40.3
Pod documented
429 0 my( $logical, $dir ) = @_;
430 0 ▶ return unless $^O eq 'VMS';
Branch: 1 branch
BranchTrueFalseTotal
unless $^O eq "VMS" 0 0 0
431  
432 0 my $cwd = cwd();
433 0 ▶ $dir ||= $cwd;
Condition0%0/3
$dir ||= $cwd
l!l&&r!l&&!r
000
MC/DC0%0/2
$dir ||= $cwd
$dir $cwd
Truth table0%0/3
A ||= B
A= $dirB= $cwd
ABresult
1X1
011
000
434  
435 0 ▶ -d $dir or do {
Branch: 1 branch
BranchTrueFalseTotal
-d $dir or do { require File::Path; File::Path::mkpath($dir) } 0 0 0
436 0 require File::Path;
437 0 File::Path::mkpath( $dir );
438 };
439 0 ▶ chdir $dir or die "Cannot chdir($dir): $!";
Branch: 1 branch
BranchTrueFalseTotal
chdir $dir or die "Cannot chdir($dir): $!" 0 0 0
440  
441 # On older systems we might exceed the 8-level directory depth limit
442 # imposed by RMS. We get around this with a rooted logical, but we
443 # can't create logical names with attributes in Perl, so we do it
444 # in a DCL subprocess and put it in the job table so the parent sees it.
445  
446 0 ▶ open TSBRL, '> tsbuildrl.com' or die "Error creating DCL-file; $!";
Branch: 1 branch
BranchTrueFalseTotal
open TSBRL, "> tsbuildrl.com" or die "Error creating DCL-file; $!" 0 0 0
447  
448 0 print TSBRL <<COMMAND;
449 \$ $logical = F\$PARSE("SYS\$DISK:[]",,,,"NO_CONCEAL")-".][000000"-"]["-"].;"+".]"
450 \$ DEFINE/JOB/NOLOG/TRANSLATION=CONCEALED $logical '$logical'
451 COMMAND
452 0 close TSBRL;
453  
454 0 my $result = system '@tsbuildrl.com';
455 0 ▶ 1 while unlink 'tsbuildrl.com';
Branch: 1 branch
BranchTrueFalseTotal
unlink "tsbuildrl.com" and do { '???' } 0 0 0
456 0 chdir $cwd;
457 0 return $result == 0;
458 }
459  
460 =head2 get_cfg_filename( )
461  
462 C<get_cfg_filename()> tries to find a B<cfg file> and returns it.
463  
464 =cut
465  
466 5 ▶sub get_cfg_filename {
Subroutine get_cfg_filename: called CC=8 SCAR=22.7
Pod documented
467 5 my( $cfg_name ) = @_;
468 5 ▶ return $cfg_name if defined $cfg_name && -f $cfg_name;
Branch: 1 branch
BranchTrueFalseTotal
if defined $cfg_name and -f $cfg_name 3 2 5
Condition100%3/3
defined $cfg_name and -f $cfg_name
!ll&&!rl&&r
113
MC/DC100%2/2
defined $cfg_name and -f $cfg_name
defined $cfg_name -f $cfg_name
Truth table100%3/3
A and B
A= defined $cfg_nameB= -f $cfg_name
ABresult
0X0
100
111
469  
470 2 ▶ my( $base_dir ) = ( $0 =~ m|^(.*)/| ) || File::Spec->curdir;
Condition33%1/3
$0 =~ m[^(.*)/] || 'File::Spec'->curdir
l!l&&r!l&&!r
200
MC/DC0%0/2
$0 =~ m[^(.*)/] || 'File::Spec'->curdir
$0 =~ m[^(.*)/] 'File::Spec'->curdir
Truth table33%1/3
A || B
A= $0 =~ m[^(.*)/]B= 'File::Spec'->curdir
ABresult
1X1
011
000
471 2 $cfg_name = File::Spec->catfile( $base_dir, 'smoke.cfg' );
472 2 ▶ return $cfg_name if -f $cfg_name && -s _;
Branch: 1 branch
BranchTrueFalseTotal
if -f $cfg_name and -s _ 0 2 2
Condition33%1/3
-f $cfg_name and -s _
!ll&&!rl&&r
200
MC/DC0%0/2
-f $cfg_name and -s _
-f $cfg_name -s _
Truth table33%1/3
A and B
A= -f $cfg_nameB= -s _
ABresult
0X0
100
111
473  
474 2 $base_dir = File::Spec->curdir;
475 2 $cfg_name = File::Spec->catfile( $base_dir, 'smoke.cfg' );
476 2 ▶ return $cfg_name if -f $cfg_name && -s _;
Branch: 1 branch
BranchTrueFalseTotal
if -f $cfg_name and -s _ 0 2 2
Condition33%1/3
-f $cfg_name and -s _
!ll&&!rl&&r
200
MC/DC0%0/2
-f $cfg_name and -s _
-f $cfg_name -s _
Truth table33%1/3
A and B
A= -f $cfg_nameB= -s _
ABresult
0X0
100
111
477  
478 2 return undef;
479 }
480  
481 =head2 read_logfile( )
482  
483 Read the logfile. If an argument is passed, force to (re)read the log
484 If no argument is passed, return the stored log if available otherwise
485 read the logfile
486  
487 =cut
488  
489 16 ▶sub read_logfile {
Subroutine read_logfile: called CC=7 SCAR=21.1
Pod documented
490 16 my ($logfile, $verbose) = @_;
491 16 ▶ return if ! defined $logfile;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $logfile 0 16 16
492  
493 16 ▶ open my $fh, "<", $logfile or return undef;
Branch: 1 branch
BranchTrueFalseTotal
open my $fh, "<", $logfile or return undef 16 0 16
494 16 my $log = do { local $/; <$fh> };
495 16 close $fh;
496  
497 16 my $es = eval { decode("utf-8", $log, Encode::FB_CROAK ) };
498 0 ▶ $@ and eval { $es = decode("cp1252", $log, Encode::FB_CROAK ) };
Branch: 1 branch
BranchTrueFalseTotal
$@ and eval { do { $es = &decode("cp1252", $log, 1) } } 0 16 16
499 0 ▶ $@ and eval { $es = decode("iso-8859-1", $log, Encode::FB_CROAK ) };
Branch: 1 branch
BranchTrueFalseTotal
$@ and eval { do { $es = &decode("iso-8859-1", $log, 1) } } 0 16 16
500  
501 16 ▶ warn("Couldn't decode logfile($logfile): $@") if $@;
Branch: 1 branch
BranchTrueFalseTotal
if $@ 0 16 16
502 16 ▶ return $@ ? $log : $es;
Branch: 1 branch
BranchTrueFalseTotal
$@ ? : 0 16 16
503 }
504  
505 =head2 grepccmsg( $cc, $logfile, $verbose )
506  
507 This is a port of Jarkko Hietaniemi's grepccerr script.
508  
509 =cut
510  
511 70 ▶sub grepccmsg {
Subroutine grepccmsg: called CC=12 SCAR=27.2
Pod documented
512 70 my( $cc, $smokelog, $verbose ) = @_;
513 70 ▶ defined $smokelog or return;
Branch: 1 branch
BranchTrueFalseTotal
defined $smokelog or return 70 0 70
514 70 ▶ $cc = 'gcc' if !$cc || $cc eq 'g++' || $cc eq 'clang';
Branch: 1 branch
BranchTrueFalseTotal
if not $cc or $cc eq "g++" or $cc eq "clang" 0 70 70
Condition33%2/6
not $cc or $cc eq "g++" or $cc eq "clang"
l!l&&r!l&&!r
0070
not $cc or $cc eq "g++"
l!l&&r!l&&!r
0070
MC/DC0%0/3
not $cc or $cc eq "g++" or $cc eq "clang"
not $cc $cc eq "g++" $cc eq "clang"
Truth table25%1/4
not(A) or B or C
A= not $ccB= $cc eq "g++"C= $cc eq "clang"
ABCresult
1XX1
01X1
0011
0000
515 70 my %OS2PAT = (
516 'aix' =>
517 # "foo.c", line n.c: pppp-qqq (W) ...error description...
518 # "foo.c", line n.c: pppp-qqq (S) ...error description...
519 '(^".+?", line \d+\.\d+: \d+-\d+ \([WS]\) .+?$)',
520  
521 'dec_osf' =>
522 # DEC OSF/1, Digital UNIX, Tru64 (notice also VMS)
523 # cc: Warning: foo.c, line nnn: ...error description...(error_tag)
524 # ...error line...
525 # ------^
526 # cc: Error: foo.c, line nnn: ...error description... (error_tag)
527 # ...error line...
528 # ------^
529 '(^cc: (?:Warning|Error): .+?^-*\^$)',
530  
531 'hpux' =>
532 # cc: "foo.c"" line nnn: warning ppp: ...error description...
533 # cc: "foo.c"" line nnn: error ppp: ...error description...
534 '(^cc: ".+?", line \d+: (?:warning|error) \d+: .+?$)',
535  
536 'irix' =>
537 # cc-pppp cc: WARNING File = foo.c, Line = nnnn
538 # ...error description...
539 #
540 # ...error line...
541 # ^
542 # cc-pppp cc: ERROR File = foo.c, Line = nnnn
543 # ...error description...
544 #
545 # ...error line...
546 # ^
547 '^(cc-\d+ cc: (?:WARNING|ERROR) File = .+?, ' .
548 'Line = \d+.+?^\s*\^$)',
549  
550 'solaris' =>
551 # "foo.c", line nnn: warning: ...error description...
552 # "foo.c", line nnn: warning: ...:
553 # ...error description...
554 # "foo.c", line nnn: syntax error ...
555 '(^".+?", line \d+: ' .
556 '(?:warning: (?:(?:.+?:$)?.+?$)|syntax error.+?$))',
557  
558 'vms' => # same compiler as Tru64, different message syntax
559 # ...error line...
560 # ......^
561 # %CC-W-MESSAGEID, ...error description...
562 # at line number nnn in file foo.c
563 '(^\n.+?\n^\.+?\^\n^\%CC-(?:I|W|E|F)-\w+, ' .
564 '.+?\nat line number \d+ in file \S+?$)',
565  
566 'gcc' =>
567 # foo.c: In function `foo':
568 # foo.c:nnn: warning: ...
569 # foo.c: In function `foo':
570 # foo.c:nnn:ppp: warning: ...
571 # Sometimes also the column is mentioned.
572 # foo.c: In function `foo':
573 # foo.c:nnn: error: ...
574 # foo.c(:nn)?: undefined reference to ...
575 '(^(?-s:.+?):(?: In function .+?:$|' .
576 '(?: undefined reference to .+?$)|' .
577 '\d+(?:\:\d+)?: ' . '(?:warning:|error:|note:|invalid) .+?$))',
578  
579 'mswin32' => # MSVC(?:60)*
580 # foo.c : error LNKnnn: error description
581 # full\path\to\fooc.c : fatal error LNKnnn: error description
582 # foo.c(nnn) : warning Cnnn: warning description
583 '(^(?!NMAKE)(?-s:.+?) : (?-s:.+?)\d+: .+?$)',
584  
585 'bcc32' => # BORLAND 5.5 on MSWin32
586 # Warning Wnnn filename line: warning description
587 # Error Ennn:: error description
588 '(^(?:(?:Warning W)|(?:Error E))\d+ .+? \d+: .+?$)',
589  
590 'icc' => # Intel C on Linux
591 # pp_sys.c(4412): warning #num: text
592 # SETi( getpriority(which, who) );
593 # ^
594 '(^.*?\([0-9]+\): (?:warning #[0-9]+|error): .+$)',
595 'icpc' => # Intel C++
596 '(^.*?\([0-9]+\): (?:warning #[0-9]+|error): .+$)',
597 );
598 70 ▶ exists $OS2PAT{ lc $cc } or $cc = 'gcc';
Branch: 1 branch
BranchTrueFalseTotal
exists $OS2PAT{lc $cc} or $cc = "gcc" 70 0 70
599 70 my $pat = $OS2PAT{ lc $cc };
600  
601 70 my( $indx, %error ) = ( 1 );
602 70 ▶ if ($smokelog) {
Branch: 1 branch
BranchTrueFalseTotal
if ($smokelog) { } 70 0 70
603 70 ▶ $verbose and print "Pattern($cc): /$pat/\n";
Branch: 1 branch
BranchTrueFalseTotal
$verbose and print "Pattern($cc): /$pat/\n" 0 70 70
604 } else {
605 0 $error{ "Couldn't examine logfile for compiler warnings." } = 1;
606 }
607  
608 70 ▶ while ($smokelog =~ m/$pat/mg) {
Branch: 1 branch
BranchTrueFalseTotal
if ($smokelog =~ /$pat/gm) 1260 70 1330
609 1260 (my $msg = $1) =~ s/^\s+//;
610 1260 $msg =~ s/[\s\r\n]+\Z//;
611  
612 # Skip known junk from Configure
613 1260 ▶ $msg =~ m{^try\.c:[ :0-9]+\bwarning:} and next;
Branch: 1 branch
BranchTrueFalseTotal
$msg =~ /^try\.c:[ :0-9]+\bwarning:/ and next 0 1260 1260
614  
615 # We need to think about this IRIX/$Config{cc} thing
616 # $cc eq "irix" && $Config{cc} =~ m/-n32|-64/ &&
617 # $msg =~ m/cc-(?:1009|1110|1047) / and next;
618  
619 1260 ▶ $error{ $msg } ||= $indx++;
Condition66%2/3
$error{$msg} ||= $indx++
l!l&&r!l&&!r
11561040
MC/DC0%0/2
$error{$msg} ||= $indx++
$error{$msg} $indx++
Truth table66%2/3
A ||= B
A= $error{$msg}B= $indx++
ABresult
1X1
011
000
620 }
621  
622 70 my @errors = sort { $error{ $a } <=> $error{ $b } } keys %error;
623  
624 70 ▶ return wantarray ? @errors : \@errors;
Branch: 1 branch
BranchTrueFalseTotal
wantarray ? : 9 61 70
625 }
626  
627 =head2 grepnonfatal( $cc, $logfile, $verbose )
628  
629 This is a way to find known failures that do not cause the tests to
630 fail but are important enough to report, like being unable to install
631 manual pages.
632  
633 =cut
634  
635 68 ▶sub grepnonfatal {
Subroutine grepnonfatal: called CC=5 SCAR=16.3
Pod documented
636 68 my( $cc, $smokelog, $verbose ) = @_;
637 68 ▶ $smokelog or return;
Branch: 1 branch
BranchTrueFalseTotal
$smokelog or return 68 0 68
638  
639 68 my( $indx, %error ) = ( 1 );
640  
641 68 my $kf = qr{
642 # Pod::Man is not available: Can't load module Encode, dynamic loading not available in this perl.
643 (\b (\S+) (?-x: is not available: Can't load module )
644 (\S+?) , (?-x: dynamic loading not available) )
645 }xi;
646  
647 68 ▶ while ($smokelog =~ m{$kf}g) {
Branch: 1 branch
BranchTrueFalseTotal
if ($smokelog =~ /$kf/g) 24 68 92
648 24 my $fail = $1; # $2 = "Pod::Man", $3 = "Encode"
649  
650 24 ▶ $error{ $fail } ||= $indx++;
Condition66%2/3
$error{$fail} ||= $indx++
l!l&&r!l&&!r
2310
MC/DC0%0/2
$error{$fail} ||= $indx++
$error{$fail} $indx++
Truth table66%2/3
A ||= B
A= $error{$fail}B= $indx++
ABresult
1X1
011
000
651 }
652  
653 0 my @errors = sort { $error{ $a } <=> $error{ $b } } keys %error;
654  
655 68 ▶ return wantarray ? @errors : \@errors;
Branch: 1 branch
BranchTrueFalseTotal
wantarray ? : 8 60 68
656 }
657  
658 =head2 get_local_patches( $ddir )
659  
660 C<get_local_patches()> reads F<patchlevel.h> to scan for the locally
661 applied patches array.
662  
663 =cut
664  
665 82 ▶sub get_local_patches {
Subroutine get_local_patches: called CC=9 SCAR=22.0
Pod documented
666 82 my( $ddir, $verbose ) = @_;
667 82 ▶ $ddir = shift || cwd();
Condition33%1/3
shift() || cwd()
l!l&&r!l&&!r
8200
MC/DC0%0/2
shift() || cwd()
shift() cwd()
Truth table33%1/3
A || B
A= shift()B= cwd()
ABresult
1X1
011
000
668 82 my $plevel = catfile( $ddir, 'patchlevel.h' );
669  
670 82 my $logger = Test::Smoke::Logger->new(v => $verbose);
671  
672 82 my @lpatches = ( );
673 82 local *PLEVEL;
674 82 $logger->log_info("Locally applied patches from '%s'", $plevel);
675 82 ▶ unless ( open PLEVEL, "< $plevel" ) {
Branch: 1 branch
BranchTrueFalseTotal
unless (open PLEVEL, "< $plevel") 59 23 82
676 59 $logger->log_warn("open(%s) error: %s", $plevel, $!);
677 59 return @lpatches;
678 }
679 23 my( $seen, $patchnum );
680 23 ▶ while ( <PLEVEL> ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined($_ = readline PLEVEL)) 3945 23 3968
681 3945 ▶ $patchnum = $1 if /#define PERL_PATCHNUM\s+(\d+)/;
Branch: 1 branch
BranchTrueFalseTotal
if /#define PERL_PATCHNUM\s+(\d+)/ 2 3943 3945
682 3945 ▶ $seen && /^\s*,"(.+)"/ and push @lpatches, $1;
Branch: 1 branch
BranchTrueFalseTotal
$seen and /^\s*,"(.+)"/ and push @lpatches, $1 38 3907 3945
Condition100%3/3
$seen and /^\s*,"(.+)"/
!ll&&!rl&&r
356234538
MC/DC100%2/2
$seen and /^\s*,"(.+)"/
$seen /^\s*,"(.+)"/
Truth table100%3/3
A and B
A= $seenB= /^\s*,"(.+)"/
ABresult
0X0
100
111
683 3945 ▶ /^\s*static.+?local_patches\[\]/ and $seen++;
Branch: 1 branch
BranchTrueFalseTotal
/^\s*static.+?local_patches\[\]/ and ++$seen 23 3922 3945
684 }
685 23 close PLEVEL;
686 23 ▶ if ( defined $patchnum ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $patchnum) 2 21 23
687 @lpatches = map {
688 2 s/^(MAINT|DEVEL)$/$1$patchnum/;
689 4 $_;
690 } @lpatches;
691 }
692 23 $logger->log_info("Patches: '%s'", join(';', @lpatches));
693 23 return @lpatches;
694 }
695  
696 =head2 set_local_patch( $ddir, @descr )
697  
698 Copy the code from F<patchlevel.h>. Older (pre 5.8.1) perls do not
699 have it and it doesn't work on MSWin32.
700  
701 =cut
702  
703 7 ▶sub set_local_patch {
Subroutine set_local_patch: called CC=15 SCAR=31.5
Pod documented
704 7 my( $ddir, @descr ) = @_;
705  
706 7 my $plh = catfile( $ddir, 'patchlevel.h' );
707 7 my $pln = catfile( $ddir, 'patchlevel.new' );
708 7 my $plb = catfile( $ddir, 'patchlevel.bak' );
709 7 local( *PLIN, *PLOUT );
710 7 ▶ open PLIN, "< $plh" or return 0;
Branch: 1 branch
BranchTrueFalseTotal
open PLIN, "< $plh" or return 0 7 0 7
711 7 ▶ open PLOUT, "> $pln" or return 0;
Branch: 1 branch
BranchTrueFalseTotal
open PLOUT, "> $pln" or return 0 7 0 7
712 7 my $seen=0;
713 7 my $done=0;
714 7 ▶ while ( <PLIN> ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined($_ = readline PLIN)) 1182 7 1189
715 1182 ▶ if ( /^(\s+),NULL/ and $seen ) {
Branch: 1 branch
BranchTrueFalseTotal
if (/^(\s+),NULL/ and $seen) 7 1175 1182
Condition100%3/3
/^(\s+),NULL/ and $seen
!ll&&!rl&&r
1161147
MC/DC100%2/2
/^(\s+),NULL/ and $seen
/^(\s+),NULL/ $seen
Truth table100%3/3
A and B
A= /^(\s+),NULL/B= $seen
ABresult
0X0
100
111
716 7 $done++;
717 7 ▶ while ( my $c = shift @descr ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $c = shift @descr) 9 7 16
718 9 print PLOUT qq{$1,"$c"\n};
719 }
720 }
721 1182 ▶ $seen++ if /local_patches\[\]/;
Branch: 1 branch
BranchTrueFalseTotal
if /local_patches\[\]/ 7 1175 1182
722 1182 print PLOUT;
723 }
724 7 close PLIN;
725 7 ▶ close PLOUT or return 0;
Branch: 1 branch
BranchTrueFalseTotal
close PLOUT or return 0 7 0 7
726  
727 7 ▶ if ( not $done ) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($done) 0 7 7
728 0 require Carp;
729 0 Carp::carp("Failed to update patchlevel.h. Content not as expected?");
730 0 return 0;
731 }
732  
733 7 ▶ -e $plb and 1 while unlink $plb;
Branch: 2 branches
BranchTrueFalseTotal
unlink $plb and do { -e $plb and '???' } 0 7 7
-e $plb and '???' 0 0 0
734 7 my $errno = "$!";
735 7 ▶ if ( -e $plb ) {
Branch: 1 branch
BranchTrueFalseTotal
if (-e $plb) 0 7 7
736 0 require Carp;
737 0 Carp::carp( "Could not unlink $plb : $errno" );
738 0 return 0;
739 }
740  
741 7 ▶ unless ( rename $plh, $plb ) {
Branch: 1 branch
BranchTrueFalseTotal
unless (rename $plh, $plb) 0 7 7
742 0 require Carp;
743 0 Carp::carp( "Could not rename $plh to $plb : $!" );
744 0 return 0;
745 }
746 7 ▶ unless ( rename $pln, $plh ) {
Branch: 1 branch
BranchTrueFalseTotal
unless (rename $pln, $plh) 0 7 7
747 0 require Carp;
748 0 Carp::carp( "Could not rename '$pln' to '$plh' : $!" );
749 0 return 0;
750 }
751  
752 7 return 1;
753 }
754  
755 =head2 get_config( $filename )
756  
757 Read and parse the configuration from file, or return the default
758 config.
759  
760 =cut
761  
762 3 ▶sub get_config {
Subroutine get_config: called CC=18 SCAR=29.5
Pod documented
763 3 my( $config_file ) = @_;
764  
765 return (
766 3 ▶ [ "",
Branch: 1 branch
BranchTrueFalseTotal
unless defined $config_file 2 1 3
767 "-Dusethreads -Duseithreads"
768 ],
769 [ "",
770 "-Duse64bitint",
771 "-Duse64bitall",
772 "-Duselongdouble",
773 "-Dusemorebits",
774 "-Duse64bitall -Duselongdouble"
775 ],
776 { policy_target => "-DDEBUGGING",
777 args => [ "", "-DDEBUGGING" ]
778 },
779 ) unless defined $config_file;
780  
781 1 ▶ open CONF, "< $config_file" or do {
Branch: 1 branch
BranchTrueFalseTotal
open CONF, "< $config_file" or do { warn "Can't open '${config_file}': $!\nUsing standard configuration"; return get_config(undef) } 1 0 1
782 0 warn "Can't open '$config_file': $!\nUsing standard configuration";
783 0 return get_config( undef );
784 };
785 1 my( @conf, @cnf_stack, @target );
786  
787 # Cheat. Force a break marker as a line after the last line.
788 1 foreach (<CONF>, "=") {
789 14 ▶ m/^#/ and next;
Branch: 1 branch
BranchTrueFalseTotal
/^#/ and next 2 12 14
790 12 ▶ s/\s+$// if m/\s/; # Blanks, new-lines and carriage returns. M$
Branch: 1 branch
BranchTrueFalseTotal
if /\s/ 11 1 12
791 12 ▶ if (m:^/:) {
Branch: 1 branch
BranchTrueFalseTotal
if (m[^/]) 1 11 12
792 1 m:^/(.*)/$:;
793 1 ▶ defined $1 or die "Policy target line didn't end with '/': '$_'";
Branch: 1 branch
BranchTrueFalseTotal
defined $1 or die "Policy target line didn't end with '/': '${_}'" 1 0 1
794 1 push @target, $1;
795 1 next;
796 }
797  
798 11 ▶ if (!m/^=/) {
Branch: 1 branch
BranchTrueFalseTotal
unless (/^=/) 7 4 11
799 # Not a break marker
800 7 push @conf, $_;
801 7 next;
802 }
803  
804 # Break marker, so process the lines we have.
805 4 ▶ if (@target > 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (@target > 1) 0 4 4
806 warn "Multiple policy target lines " .
807 0 join (", ", map {"'$_'"} @target) . " - will use first";
808 }
809 4 my %conf = map { $_ => 1 } @conf;
810 4 ▶ if (keys %conf == 1 and exists $conf{""} and !@target) {
Branch: 1 branch
BranchTrueFalseTotal
if (keys %conf == 1 and exists $conf{""} and not @target) 1 3 4
Condition66%4/6
keys %conf == 1 and exists $conf{""} and not @target
!ll&&!rl&&r
301
keys %conf == 1 and exists $conf{""}
!ll&&!rl&&r
301
MC/DC33%1/3
keys %conf == 1 and exists $conf{""} and not @target
keys %conf == 1 exists $conf{""} not @target
Truth table50%2/4
A and B and not(C)
A= keys %conf == 1B= exists $conf{""}C= not @target
ABCresult
0XX0
10X0
1100
1111
811 # There are only blank lines - treat it as if there were no lines
812 # (Lets people have blank sections in configuration files without
813 # warnings.)
814 # Unless there is a policy target. (substituting '' in place of
815 # target is a valid thing to do.)
816 1 @conf = ();
817 }
818  
819 4 ▶ unless (@conf) {
Branch: 1 branch
BranchTrueFalseTotal
unless (@conf) 1 3 4
820 # They have no target lines
821 1 ▶ @target and
Branch: 1 branch
BranchTrueFalseTotal
@target and warn "Policy target '$target[0]' has no configuration lines, " . 'so it will not be used' 0 1 1
822 warn "Policy target '$target[0]' has no configuration lines, ".
823 "so it will not be used";
824 1 @target = ();
825 1 next;
826 }
827  
828 3 ▶ while (my ($key, $val) = each %conf) {
Branch: 1 branch
BranchTrueFalseTotal
if (() = each %conf) 6 3 9
829 6 ▶ $val > 1 and
Branch: 1 branch
BranchTrueFalseTotal
$val > 1 and warn "Configuration line '${key}' duplicated $val times" 0 6 6
830 warn "Configuration line '$key' duplicated $val times";
831 }
832 3 my $args = [@conf];
833 3 @conf = ();
834 3 ▶ if (@target) {
Branch: 1 branch
BranchTrueFalseTotal
if (@target) 1 2 3
835 1 push @cnf_stack, { policy_target => $target[0], args => $args };
836 1 @target = ();
837 1 next;
838 }
839  
840 2 push @cnf_stack, $args;
841 }
842 1 close CONF;
843 1 return @cnf_stack;
844 }
845  
846 =head2 get_patch( [$ddir] )
847  
848 Try to find the patchlevel, look for B<.patch> or try to get it from
849 B<patchlevel.h> as a fallback.
850  
851 =cut
852  
853 14 ▶sub get_patch {
Subroutine get_patch: called CC=26 SCAR=38.2
Pod documented
854 14 my( $ddir ) = @_;
855 14 ▶ $ddir ||= File::Spec->curdir;
Condition66%2/3
$ddir ||= "File::Spec"->curdir
l!l&&r!l&&!r
770
MC/DC0%0/2
$ddir ||= "File::Spec"->curdir
$ddir "File::Spec"->curdir
Truth table66%2/3
A ||= B
A= $ddirB= "File::Spec"->curdir
ABresult
1X1
011
000
856  
857 14 my $dot_patch = File::Spec->catfile( $ddir, '.patch' );
858 14 local *DOTPATCH;
859 14 my $patch_level = '?????';
860 14 ▶ if ( open DOTPATCH, "< $dot_patch" ) {
Branch: 1 branch
BranchTrueFalseTotal
if (open DOTPATCH, "< $dot_patch") 5 9 14
861 5 ▶ chomp( $patch_level = <DOTPATCH> || '' );
Condition50%1/2
readline DOTPATCH || ''
l!l
50
MC/DC0%0/1
readline DOTPATCH || ''
readline DOTPATCH
Truth table50%1/2
A
A= readline DOTPATCH
Aresult
11
00
862 5 close DOTPATCH;
863  
864 5 ▶ if ( $patch_level ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($patch_level) 5 0 5
865 5 ▶ if ($patch_level =~ /\s/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($patch_level =~ /\s/) 4 1 5
866 4 my ($branch, $sha, $describe) = (split ' ', $patch_level)[0, -2, -1];
867 4 return [$sha, $describe, $branch];
868 }
869 1 return [$patch_level];
870 }
871 0 return [ '' ];
872 }
873  
874 9 my $dot_git_patch = File::Spec->catfile( $ddir, '.git_patch' );
875  
876 9 local *DOTGITPATCH;
877 9 ▶ if ( open DOTGITPATCH, "< $dot_git_patch" ) {
Branch: 1 branch
BranchTrueFalseTotal
if (open DOTGITPATCH, "< $dot_git_patch") 0 9 9
878 0 chomp( $patch_level = <DOTGITPATCH> );
879 0 close DOTGITPATCH;
880 0 ▶ if ( $patch_level ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($patch_level) 0 0 0
881  
882 0 ▶ return undef if ( $patch_level =~ /^\$Format/ ); # Not expanded
Branch: 1 branch
BranchTrueFalseTotal
if $patch_level =~ /^\$Format/ 0 0 0
883  
884 0 my @dot_git_patch = split '\|', $patch_level;
885  
886 # As we do not use time information, we can just pick the first and
887 # the last two elements
888 0 my ($sha, $describe, $names) = @dot_git_patch[0, -2, -1];
889 0 my @names = split /,\s*/, $names;
890  
891 0 my $branch = undef; # or blead?
892  
893 0 my ($first, $last) = @names[0, -1];
894 0 ▶ if ($first =~ /^HEAD -> (.*)/ ) {
Branch: 3 branches
BranchTrueFalseTotal
if ($first =~ /^HEAD -> (.*)/) { } 0 0 0
elsif ($first =~ /^tag: .*/) { } 0 0 0
elsif ($first ne $last) { } 0 0 0
895 # HEAD -> my_branch
896 # https://github.com/Perl/perl5/archive/refs/heads/blead.tar.gz
897 0 $branch = $1;
898 } elsif ( $first =~ /^tag: .*/ ) {
899 # tag: v5.41.6
900 # https://github.com/Perl/perl5/archive/refs/tags/v5.41.6.tar.gz
901 0 $branch = $1;
902 } elsif ( $first ne $last ) {
903 # Pull request with source branch in Perl/perl5 repo
904 # https://github.com/Perl/perl5/archive/refs/pull/22991/head.tar.gz
905 # OR
906 # branch pushed on Perl/perl5
907 # https://github.com/Perl/perl5/archive/refs/heads/yves/handle_weird_preprocessor_stmt_in_HeaderParser_pm.tar.gz
908 0 $branch = $last;
909 } else { #( $first eq $last ) {
910 # Pull request with source branch in fork
911 # https://github.com/Perl/perl5/archive/refs/pull/22989/head.tar.gz
912 0 $last =~ /^ref\/pull\/(.*)\/head/;
913 0 $branch = $1;
914 }
915  
916 0 return [$sha, $describe, $branch];
917 }
918 }
919  
920  
921 # There does not seem to be a '.patch', try 'git_version.h'
922 # We are looking for the line: #define PERL_PATCHNUM "v5.21.6-224-g6324db4"
923 9 my $git_version_h = File::Spec->catfile($ddir, 'git_version.h');
924 9 ▶ if (open my $gvh, '<', $git_version_h) {
Branch: 1 branch
BranchTrueFalseTotal
if (open my $gvh, "<", $git_version_h) 2 7 9
925 2 ▶ while (my $line = <$gvh>) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined(my $line = readline $gvh)) 14 1 15
926 14 ▶ if ($line =~ /^#define PERL_PATCHNUM "(.+)"$/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($line =~ /^#define PERL_PATCHNUM "(.+)"$/) 1 13 14
927 1 return [$1];
928 }
929 }
930 1 close $gvh;
931 }
932 # This only applies to
933 # There does not seem to be a '.patch', and we couldn't find git_version.h
934 # Now try 'patchlevel.h'
935 # We are looking for the line: ,"DEVEL19999" (within local_patches[] = {}
936 8 local *PATCHLEVEL_H;
937 8 my $patchlevel_h = File::Spec->catfile( $ddir, 'patchlevel.h' );
938 8 ▶ if ( open PATCHLEVEL_H, "< $patchlevel_h" ) {
Branch: 1 branch
BranchTrueFalseTotal
if (open PATCHLEVEL_H, "< $patchlevel_h") 5 3 8
939 5 my( $declaration_seen, $patchnum ) = ( 0, 0 );
940 5 ▶ while ( <PATCHLEVEL_H> ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined($_ = readline PATCHLEVEL_H)) 299 5 304
941 299 ▶ $patchnum = $1 if /#define PERL_PATCHNUM\s+(\d+)/;
Branch: 1 branch
BranchTrueFalseTotal
if /#define PERL_PATCHNUM\s+(\d+)/ 2 297 299
942 299 ▶ $declaration_seen ||= /local_patches\[\]/;
Condition100%3/3
$declaration_seen ||= /local_patches\[\]/
l!l&&r!l&&!r
445250
MC/DC100%2/2
$declaration_seen ||= /local_patches\[\]/
$declaration_seen /local_patches\[\]/
Truth table100%3/3
A ||= B
A= $declaration_seenB= /local_patches\[\]/
ABresult
1X1
011
000
943 299 ▶ $declaration_seen &&
Branch: 1 branch
BranchTrueFalseTotal
$declaration_seen and /^\s+,"(?:(?:DEVEL|MAINT)(\d+)?)|(RC\d+)"/ or next 5 294 299
Condition100%3/3
$declaration_seen and /^\s+,"(?:(?:DEVEL|MAINT)(\d+)?)|(RC\d+)"/
!ll&&!rl&&r
250445
MC/DC100%2/2
$declaration_seen and /^\s+,"(?:(?:DEVEL|MAINT)(\d+)?)|(RC\d+)"/
$declaration_seen /^\s+,"(?:(?:DEVEL|MAINT)(\d+)?)|(RC\d+)"/
Truth table100%3/3
A and B
A= $declaration_seenB= /^\s+,"(?:(?:DEVEL|MAINT)(\d+)?)|(RC\d+)"/
ABresult
0X0
100
111
944 /^\s+,"(?:(?:DEVEL|MAINT)(\d+)?)|(RC\d+)"/ or next;
945 5 ▶ $patch_level = $patchnum || $1 || $2 || '?????';
Condition75%6/8
$patchnum || $1 || $2 || '?????'
l!l
50
$patchnum or $1 or $2
l!l&&r!l&&!r
410
$patchnum or $1
l!l&&r!l&&!r
221
MC/DC0%0/3
$patchnum || $1 || $2 || '?????'
$patchnum $1 $2
Truth table75%3/4
A or B or C
A= $patchnumB= $1C= $2
ABCresult
1XX1
01X1
0011
0000
946 5 ▶ if ( $patch_level =~ /^RC/ ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($patch_level =~ /^RC/) { } 1 4 5
947 1 $patch_level = version_from_patchlevel_h( $ddir ) .
948 "-$patch_level";
949 } else {
950 4 ▶ $patch_level .= $patchnum ? "" : '(+)';
Branch: 1 branch
BranchTrueFalseTotal
$patchnum ? : 2 2 4
951 }
952 }
953 }
954 8 return [ $patch_level ];
955 }
956  
957 =head2 version_from_patchlevel_h( $ddir )
958  
959 C<version_from_patchlevel_h()> returns a "dotted" version as derived
960 from the F<patchlevel.h> file in the distribution.
961  
962 =cut
963  
964 20 ▶sub version_from_patchlevel_h {
Subroutine version_from_patchlevel_h: called CC=8 SCAR=21.3
Pod documented
965 20 my( $ddir ) = @_;
966 20 ▶ $ddir ||= File::Spec->curdir;
Condition33%1/3
$ddir ||= "File::Spec"->curdir
l!l&&r!l&&!r
2000
MC/DC0%0/2
$ddir ||= "File::Spec"->curdir
$ddir "File::Spec"->curdir
Truth table33%1/3
A ||= B
A= $ddirB= "File::Spec"->curdir
ABresult
1X1
011
000
967 20 my $file = File::Spec->catfile( $ddir, 'patchlevel.h' );
968  
969 20 my( $revision, $version, $subversion ) = qw( 5 ? ? );
970 20 local *PATCHLEVEL;
971 20 ▶ if ( open PATCHLEVEL, "< $file" ) {
Branch: 1 branch
BranchTrueFalseTotal
if (open PATCHLEVEL, "< $file") 5 15 20
972 5 my $patchlevel = do { local $/; <PATCHLEVEL> };
973 5 close PATCHLEVEL;
974  
975 5 ▶ if ( $patchlevel =~ /^#define PATCHLEVEL\s+(\d+)/m ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($patchlevel =~ /^#define PATCHLEVEL\s+(\d+)/m) 1 4 5
976 # Also support perl < 5.6
977 1 $version = sprintf "%03u", $1;
978 1 ▶ $subversion = $patchlevel =~ /^#define SUBVERSION\s+(\d+)/m
Branch: 1 branch
BranchTrueFalseTotal
$patchlevel =~ /^#define SUBVERSION\s+(\d+)/m ? : 1 0 1
979 ? sprintf "%02u", $1 : '??';
980 1 return "$revision.$version$subversion";
981 }
982  
983 4 ▶ $revision = $patchlevel =~ /^#define PERL_REVISION\s+(\d+)/m
Branch: 1 branch
BranchTrueFalseTotal
$patchlevel =~ /^#define PERL_REVISION\s+(\d+)/m ? : 4 0 4
984 ? $1 : '?';
985 4 ▶ $version = $patchlevel =~ /^#define PERL_VERSION\s+(\d+)/m
Branch: 1 branch
BranchTrueFalseTotal
$patchlevel =~ /^#define PERL_VERSION\s+(\d+)/m ? : 4 0 4
986 ? $1 : '?';
987 4 ▶ $subversion = $patchlevel =~ /^#define PERL_SUBVERSION\s+(\d+)/m
Branch: 1 branch
BranchTrueFalseTotal
$patchlevel =~ /^#define PERL_SUBVERSION\s+(\d+)/m ? : 4 0 4
988 ? $1 : '?';
989 }
990 19 return "$revision.$version.$subversion";
991 }
992  
993 =head2 get_ncpu( $osname )
994  
995 C<get_ncpu()> returns the number of available (online/active/enabled) CPUs.
996  
997 It does this by using some operating system specific trick (usually
998 by running some external command and parsing the output).
999  
1000 If it cannot recognize your operating system an empty string is returned.
1001 If it can recognize it but the external command failed, C<"? cpus">
1002 is returned.
1003  
1004 In the first case (where we really have no idea how to proceed),
1005 also a warning (C<get_ncpu: unknown operating system>) is sent to STDERR.
1006  
1007 =over
1008  
1009 =item B<WARNINGS>
1010  
1011 If you get the warning C<get_ncpu: unknown operating system>, you will
1012 need to help us-- how does one tell the number of available CPUs in
1013 your operating system? Sometimes there are several different ways:
1014 please try to find the fastest one, and a one that does not require
1015 superuser (administrator) rights.
1016  
1017 Thanks to Jarkko Hietaniemi for donating this!
1018  
1019 =back
1020  
1021 =cut
1022  
1023 1 ▶sub get_ncpu {
Subroutine get_ncpu: called CC=18 SCAR=47.8
Pod documented
1024 # Only *nixy osses need this, so use ':'
1025 1 local $ENV{PATH} = "$ENV{PATH}:/usr/sbin:/sbin";
1026  
1027 1 my $cpus = "?";
1028 OS_CHECK: {
1029 1 ▶ local $_ = shift or return "";
Branch: 1 branch
BranchTrueFalseTotal
local $_ = shift() or return "" 1 0 1
1030  
1031 1 ▶ /aix/i && do {
Branch: 1 branch
BranchTrueFalseTotal
/aix/i and do { my(@output) = `lsdev -C -c processor -S Available`; $cpus = scalar @output; last OS_CHECK } 0 1 1
1032 0 my @output = `lsdev -C -c processor -S Available`;
1033 0 $cpus = scalar @output;
1034 0 last OS_CHECK;
1035 };
1036  
1037 1 ▶ /(?:darwin|.*bsd)/i && do {
Branch: 1 branch
BranchTrueFalseTotal
/(?:darwin|.*bsd)/i and do { chomp(my(@output) = `sysctl -n hw.ncpu`); $cpus = $output[0]; last OS_CHECK } 0 1 1
1038 0 chomp( my @output = `sysctl -n hw.ncpu` );
1039 0 $cpus = $output[0];
1040 0 last OS_CHECK;
1041 };
1042  
1043 1 ▶ /hp-?ux/i && do {
Branch: 1 branch
BranchTrueFalseTotal
/hp-?ux/i and do { my(@output) = grep(/^processor/, `ioscan -fnkC processor`); $cpus = scalar @output; last OS_CHECK } 0 1 1
1044 0 my @output = grep /^processor/ => `ioscan -fnkC processor`;
1045 0 $cpus = scalar @output;
1046 0 last OS_CHECK;
1047 };
1048  
1049 1 ▶ /irix/i && do {
Branch: 1 branch
BranchTrueFalseTotal
/irix/i and do { my(@output) = grep(/\s+processors?$/i, `hinv -c processor`); $cpus = (split(' ', $output[0], 0))[0]; last OS_CHECK } 0 1 1
1050 0 my @output = grep /\s+processors?$/i => `hinv -c processor`;
1051 0 $cpus = (split " ", $output[0])[0];
1052 0 last OS_CHECK;
1053 };
1054  
1055 1 ▶ /linux/i && do {
Branch: 1 branch
BranchTrueFalseTotal
/linux/i and do { my @output; local *PROC; if (open PROC, "< /proc/cpuinfo") { @output = grep(/^processor/, readline PROC); close PROC; } ; $cpus = @output ? scalar @output : ""; last OS_CHECK } 1 0 1
1056 1 my @output; local *PROC;
1057 1 ▶ if ( open PROC, "< /proc/cpuinfo" ) {
Branch: 1 branch
BranchTrueFalseTotal
if (open PROC, "< /proc/cpuinfo") 1 0 1
1058 1 @output = grep /^processor/ => <PROC>;
1059 1 close PROC;
1060 }
1061 1 ▶ $cpus = @output ? scalar @output : '';
Branch: 1 branch
BranchTrueFalseTotal
@output ? : 1 0 1
1062 1 last OS_CHECK;
1063 };
1064  
1065 0 ▶ /solaris|sunos|osf/i && do {
Branch: 1 branch
BranchTrueFalseTotal
/solaris|sunos|osf/i and do { my(@output) = grep(/on-line/, `psrinfo`); $cpus = scalar @output; last OS_CHECK } 0 0 0
1066 0 my @output = grep /on-line/ => `psrinfo`;
1067 0 $cpus = scalar @output;
1068 0 last OS_CHECK;
1069 };
1070  
1071 0 ▶ /mswin32|cygwin/i && do {
Branch: 1 branch
BranchTrueFalseTotal
/mswin32|cygwin/i and do { $cpus = exists $ENV{"NUMBER_OF_PROCESSORS"} ? $ENV{"NUMBER_OF_PROCESSORS"} : ""; last OS_CHECK } 0 0 0
1072 $cpus = exists $ENV{NUMBER_OF_PROCESSORS}
1073 0 ▶ ? $ENV{NUMBER_OF_PROCESSORS} : '';
Branch: 1 branch
BranchTrueFalseTotal
exists $ENV{'NUMBER_OF_PROCESSORS'} ? : 0 0 0
1074 0 last OS_CHECK;
1075 };
1076  
1077 0 ▶ /vms/i && do {
Branch: 1 branch
BranchTrueFalseTotal
/vms/i and do { my(@output) = grep(/CPU \d+ is in RUN state/, `show cpu/active`); $cpus = @output ? scalar @output : ""; last OS_CHECK } 0 0 0
1078 0 my @output = grep /CPU \d+ is in RUN state/ => `show cpu/active`;
1079 0 ▶ $cpus = @output ? scalar @output : '';
Branch: 1 branch
BranchTrueFalseTotal
@output ? : 0 0 0
1080 0 last OS_CHECK;
1081 };
1082  
1083 0 ▶ /haiku/i && do {
Branch: 1 branch
BranchTrueFalseTotal
/haiku/i and do { eval { do { require Haiku::SysInfo } }; unless ($@) { my $hsi = "Haiku::SysInfo"->new; $cpus = $hsi->cpu_count; last OS_CHECK; } } 0 0 0
1084 0 eval { require Haiku::SysInfo };
1085 0 ▶ if (!$@) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($@) 0 0 0
1086 0 my $hsi = Haiku::SysInfo->new();
1087 0 $cpus = $hsi->cpu_count();
1088 0 last OS_CHECK;
1089 }
1090 };
1091  
1092 0 $cpus = "";
1093 0 require Carp;
1094 0 Carp::carp( "get_ncpu: unknown operationg system" );
1095 }
1096  
1097 1 ▶ return $cpus ? sprintf( "%s cpu%s", $cpus, $cpus ne "1" ? 's' : '' ) : "";
Branch: 2 branches
BranchTrueFalseTotal
$cpus ? : 1 0 1
$cpus ne '1' ? : 1 0 1
1098 }
1099  
1100 =head2 get_smoked_Config( $dir, @keys )
1101  
1102 C<get_smoked_Config()> returns a hash (a listified hash) with the
1103 specified keys. It will try to find F<lib/Config.pm> to get those
1104 values, if that cannot be found (make error?) we can try F<config.sh>
1105 which is used to build F<lib/Config.pm>.
1106 If F<config.sh> is not there (./Configure error?) we try to get some
1107 fallback information from C<POSIX::uname()> and F<patchlevel.h>.
1108  
1109 =cut
1110  
1111 172 ▶sub get_smoked_Config {
Subroutine get_smoked_Config: called CC=23 SCAR=31.4
Pod documented
1112 172 my( $dir, @fields ) = @_;
1113 172 my %Config = map { ( lc $_ => undef ) } @fields;
1114  
1115 172 my $perl_Config_heavy = catfile ($dir, "lib", "Config_heavy.pl");
1116 172 my $perl_Config_pm = catfile ($dir, "lib", "Config.pm");
1117 172 my $perl_config_sh = catfile( $dir, 'config.sh' );
1118 172 local *CONF;
1119 172 ▶ if ( open CONF, "< $perl_Config_heavy" ) {
Branch: 1 branch
BranchTrueFalseTotal
if (open CONF, "< $perl_Config_heavy") 1 171 172
1120  
1121 1 ▶ while (<CONF>) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined($_ = readline CONF)) 15 1 16
1122 15 ▶ if ( m/^(?:
Branch: 1 branch
BranchTrueFalseTotal
if (/^(?: (?:our|my)\ \$[cC]onfig_[sS][hH].* | \$_ )\ =\ <<'!END!';/x .. /^!END!/) 8 7 15
1123 (?:our|my)\ \$[cC]onfig_[sS][hH].*
1124 |
1125 \$_
1126 )\ =\ <<'!END!';/x..m/^!END!/){
1127 8 ▶ m/!END!(?:';)?$/ and next;
Branch: 1 branch
BranchTrueFalseTotal
/!END!(?:';)?$/ and next 2 6 8
1128 6 ▶ m/^([^=]+)='([^']*)'/ or next;
Branch: 1 branch
BranchTrueFalseTotal
/^([^=]+)='([^']*)'/ or next 5 1 6
1129 5 ▶ exists $Config{lc $1} and $Config{lc $1} = $2;
Branch: 1 branch
BranchTrueFalseTotal
exists $Config{lc $1} and $Config{lc $1} = $2 5 0 5
1130 }
1131 }
1132 1 close CONF;
1133 }
1134 my %conf2 = map {
1135 423 ( $_ => undef )
1136 172 } grep !defined $Config{ $_ } => keys %Config;
1137 172 ▶ if ( open CONF, "< $perl_Config_pm" ) {
Branch: 1 branch
BranchTrueFalseTotal
if (open CONF, "< $perl_Config_pm") 2 170 172
1138  
1139 2 ▶ while (<CONF>) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined($_ = readline CONF)) 31 2 33
1140 31 ▶ if ( m/^(?:
Branch: 1 branch
BranchTrueFalseTotal
if (/^(?: (?:our|my)\ \$[cC]onfig_[sS][hH].* | \$_ )\ =\ <<'!END!';/x .. /^!END!/) 16 15 31
1141 (?:our|my)\ \$[cC]onfig_[sS][hH].*
1142 |
1143 \$_
1144 )\ =\ <<'!END!';/x..m/^!END!/){
1145 16 ▶ m/!END!(?:';)?$/ and next;
Branch: 1 branch
BranchTrueFalseTotal
/!END!(?:';)?$/ and next 4 12 16
1146 12 ▶ m/^([^=]+)='([^']*)'/ or next;
Branch: 1 branch
BranchTrueFalseTotal
/^([^=]+)='([^']*)'/ or next 10 2 12
1147 10 ▶ exists $conf2{lc $1} and $Config{lc $1} = $2;
Branch: 1 branch
BranchTrueFalseTotal
exists $conf2{lc $1} and $Config{lc $1} = $2 10 0 10
1148 }
1149 }
1150 2 close CONF;
1151 }
1152 %conf2 = map {
1153 413 ( $_ => undef )
1154 172 } grep !defined $Config{ $_ } => keys %Config;
1155 172 ▶ if ( open CONF, "< $perl_config_sh" ) {
Branch: 1 branch
BranchTrueFalseTotal
if (open CONF, "< $perl_config_sh") 144 28 172
1156 144 ▶ while ( <CONF> ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined($_ = readline CONF)) 444 144 588
1157 444 ▶ m/^([^=]+)='([^']*)'/ or next; # '
Branch: 1 branch
BranchTrueFalseTotal
/^([^=]+)='([^']*)'/ or next 148 296 444
1158 148 ▶ exists $conf2{ $1} and $Config{ lc $1 } = $2;
Branch: 1 branch
BranchTrueFalseTotal
exists $conf2{$1} and $Config{lc $1} = $2 101 47 148
1159 }
1160 144 close CONF;
1161 }
1162 %conf2 = map {
1163 312 ( $_ => undef )
1164 172 } grep !defined $Config{ $_ } => keys %Config;
1165 172 ▶ if ( keys %conf2 ) {
Branch: 1 branch
BranchTrueFalseTotal
if (keys %conf2) 119 53 172
1166 # Fall-back values from POSIX::uname() (not reliable)
1167 119 require POSIX;
1168 119 my( $osname, undef, $osvers, undef, $arch) = POSIX::uname();
1169 119 ▶ $Config{osname} = lc $osname if exists $conf2{osname};
Branch: 1 branch
BranchTrueFalseTotal
if exists $conf2{"osname"} 3 116 119
1170 119 ▶ $Config{osvers} = lc $osvers if exists $conf2{osvers};
Branch: 1 branch
BranchTrueFalseTotal
if exists $conf2{"osvers"} 3 116 119
1171 119 ▶ $Config{archname} = lc $arch if exists $conf2{archname};
Branch: 1 branch
BranchTrueFalseTotal
if exists $conf2{"archname"} 3 116 119
1172 $Config{version} = version_from_patchlevel_h( $dir )
1173 119 ▶ if exists $conf2{version};
Branch: 1 branch
BranchTrueFalseTotal
if exists $conf2{"version"} 19 100 119
1174 }
1175  
1176 # There should be no under-bars in perl versions!
1177 172 ▶ exists $Config{version} and $Config{version} =~ s/_/./g;
Branch: 1 branch
BranchTrueFalseTotal
exists $Config{"version"} and $Config{"version"} =~ s/_/./g 119 53 172
1178 172 return %Config;
1179 }
1180  
1181 =head2 parse_report_Config( $report )
1182  
1183 C<parse_report_Config()> returns a list attributes from a smoke report.
1184  
1185 my( $version, $plevel, $os, $osvers, $archname, $summary, $branch ) =
1186 parse_report_Config( $rpt );
1187  
1188 =cut
1189  
1190 10 ▶sub parse_report_Config {
Subroutine parse_report_Config: called CC=10 SCAR=27.0
Pod documented
1191 10 my( $report ) = @_;
1192  
1193 10 ▶ my $branch = $report =~ /^Automated.+branch (.+?) / ? $1 : 'blead';
Branch: 1 branch
BranchTrueFalseTotal
$report =~ /^Automated.+branch (.+?) / ? : 0 10 10
1194 10 ▶ my $version = $report =~ /^Automated.*for(?: branch \S+)? (.+) patch/ ? $1 : '';
Branch: 1 branch
BranchTrueFalseTotal
$report =~ /^Automated.*for(?: branch \S+)? (.+) patch/ ? : 10 0 10
1195 10 ▶ my $plevel = $report =~ /^Automated.+?(\S+)$/m
Branch: 1 branch
BranchTrueFalseTotal
$report =~ /^Automated.+?(\S+)$/m ? : 10 0 10
1196 ? $1 : '';
1197 10 ▶ if ( !$plevel ) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($plevel) 0 10 10
1198 0 ▶ $plevel = $report =~ /^Auto.*patch\s+\S+\s+(\S+)/ ? $1 : '';
Branch: 1 branch
BranchTrueFalseTotal
$report =~ /^Auto.*patch\s+\S+\s+(\S+)/ ? : 0 0 0
1199 }
1200 10 ▶ my $osname = $report =~ /\bon\s+(.*) - / ? $1 : '';
Branch: 1 branch
BranchTrueFalseTotal
$report =~ /\bon\s+(.*) - / ? : 10 0 10
1201 10 ▶ my $osvers = $report =~ /\bon\s+.* - (.*)/? $1 : '';
Branch: 1 branch
BranchTrueFalseTotal
$report =~ /\bon\s+.* - (.*)/ ? : 10 0 10
1202 10 $osvers =~ s/\s+\(.*//;
1203 10 ▶ my $archname = $report =~ /:.* \((.*)\)/ ? $1 : '';
Branch: 1 branch
BranchTrueFalseTotal
$report =~ /:.* \((.*)\)/ ? : 10 0 10
1204 10 ▶ my $summary = $report =~ /^Summary: (.*)/m ? $1 : '';
Branch: 1 branch
BranchTrueFalseTotal
$report =~ /^Summary: (.*)/m ? : 10 0 10
1205  
1206 10 return ( $version, $plevel, $osname, $osvers, $archname, $summary, $branch );
1207 }
1208  
1209 =head2 get_regen_headers( $ddir )
1210  
1211 C<get_regen_headers()> looks in C<$ddir> to find either
1212 F<regen_headers.pl> or F<regen.pl> (change 18851).
1213  
1214 Returns undef if not found or a string like C<< $^X "$regen_headers_pl" >>
1215  
1216 =cut
1217  
1218 5 ▶sub get_regen_headers {
Subroutine get_regen_headers: called CC=4 SCAR=14.0
Pod documented
1219 5 my( $ddir ) = @_;
1220  
1221 5 ▶ $ddir ||= File::Spec->curdir; # Don't smoke in a dir "0"!
Condition33%1/3
$ddir ||= "File::Spec"->curdir
l!l&&r!l&&!r
500
MC/DC0%0/2
$ddir ||= "File::Spec"->curdir
$ddir "File::Spec"->curdir
Truth table33%1/3
A ||= B
A= $ddirB= "File::Spec"->curdir
ABresult
1X1
011
000
1222  
1223 5 my $regen_headers_pl = File::Spec->catfile( $ddir, "regen_headers.pl" );
1224  
1225 5 ▶ -f $regen_headers_pl and return qq[$^X "$regen_headers_pl"];
Branch: 1 branch
BranchTrueFalseTotal
-f $regen_headers_pl and return qq[$^X "$regen_headers_pl"] 2 3 5
1226  
1227 3 $regen_headers_pl = File::Spec->catfile( $ddir, "regen.pl" );
1228 3 ▶ -f $regen_headers_pl and return qq[$^X "$regen_headers_pl"];
Branch: 1 branch
BranchTrueFalseTotal
-f $regen_headers_pl and return qq[$^X "$regen_headers_pl"] 2 1 3
1229  
1230 1 return; # Should this be "make regen_headers"?
1231 }
1232  
1233 =head2 run_regen_headers( $ddir, $verbose );
1234  
1235 C<run_regen_headers()> gets its executable from C<get_regen_headers()>
1236 and opens a pipe from it. warn()s on error.
1237  
1238 =cut
1239  
1240 0 ▶sub run_regen_headers {
Subroutine run_regen_headers: not called CC=7 SCAR=40.3
Pod documented
1241 0 my( $ddir, $verbose ) = @_;
1242  
1243 0 my $regen_headers = get_regen_headers( $ddir );
1244  
1245 0 ▶ defined $regen_headers or do {
Branch: 1 branch
BranchTrueFalseTotal
defined $regen_headers or do { warn "Cannot find a regen_headers script\n"; return } 0 0 0
1246 0 warn "Cannot find a regen_headers script\n";
1247 0 return;
1248 };
1249  
1250 0 ▶ $verbose and print "Running [$regen_headers]\n";
Branch: 1 branch
BranchTrueFalseTotal
$verbose and print "Running [$regen_headers]\n" 0 0 0
1251 0 local *REGENH;
1252 0 ▶ if ( open REGENH, "$regen_headers |" ) {
Branch: 1 branch
BranchTrueFalseTotal
if (open REGENH, "$regen_headers |") { } 0 0 0
1253 0 ▶ while ( <REGENH> ) { $verbose > 1 and print }
Branch: 2 branches
BranchTrueFalseTotal
if (defined($_ = readline REGENH)) 0 0 0
$verbose > 1 and print $_ 0 0 0
1254 0 ▶ close REGENH or do {
Branch: 1 branch
BranchTrueFalseTotal
close REGENH or do { warn "Error in pipe [$regen_headers]\n"; return } 0 0 0
1255 0 warn "Error in pipe [$regen_headers]\n";
1256 0 return;
1257 }
1258 } else {
1259 0 warn "Cannot fork [$regen_headers]\n";
1260 0 return;
1261 }
1262 0 return 1;
1263 }
1264  
1265 =head2 whereis( $prog )
1266  
1267 Try to find an executable instance of C<$prog> in $ENV{PATH}.
1268  
1269 Rreturns a full file-path (with extension) to it.
1270  
1271 =cut
1272  
1273 28 ▶sub whereis {
Subroutine whereis: called CC=8 SCAR=21.0
Pod documented
1274 28 my $prog = shift;
1275 28 ▶ return undef unless $prog; # you shouldn't call it '0'!
Branch: 1 branch
BranchTrueFalseTotal
unless $prog 0 28 28
1276 28 ▶ $^O eq 'VMS' and return vms_whereis( $prog );
Branch: 1 branch
BranchTrueFalseTotal
$^O eq "VMS" and return vms_whereis($prog) 0 28 28
1277 28 ▶ my $logger = Test::Smoke::Logger->new(v => shift || 0);
Condition50%1/2
shift() || 0
l!l
028
MC/DC0%0/1
shift() || 0
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
1278  
1279 28 my $p_sep = $Config::Config{path_sep};
1280 28 my @path = split /\Q$p_sep\E/, $ENV{PATH};
1281 28 ▶ my @pext = split /\Q$p_sep\E/, $ENV{PATHEXT} || '';
Condition50%1/2
$ENV{'PATHEXT'} || ''
l!l
028
MC/DC0%0/1
$ENV{'PATHEXT'} || ''
$ENV{'PATHEXT'}
Truth table50%1/2
A
A= $ENV{'PATHEXT'}
Aresult
11
00
1282 28 unshift @pext, '';
1283  
1284 28 foreach my $dir ( @path ) {
1285 251 $logger->log_debug("Looking in %s for %s", $dir, $prog);
1286 251 foreach my $ext ( @pext ) {
1287 251 my $fname = File::Spec->catfile( $dir, "$prog$ext" );
1288 251 $logger->log_debug(" check executable %s", $fname);
1289 251 ▶ if ( -x $fname ) {
Branch: 1 branch
BranchTrueFalseTotal
if (-x $fname) 15 236 251
1290 15 $logger->log_info("Found %s as %s", $prog, $fname);
1291 15 return $fname;
1292 #return $fname =~ /\s/ ? qq/"$fname"/ : $fname;
1293 }
1294 }
1295 }
1296 13 $logger->log_info("Could not find %s", $prog);
1297 13 return '';
1298 }
1299  
1300 =head2 vms_whereis( $prog )
1301  
1302 First look in the SYMBOLS to see if C<$prog> is there.
1303 Next look in the KFE-table C<INSTALL LIST> if it is there.
1304 As a last resort we can scan C<DCL$PATH> like we do on *nix/Win32
1305  
1306 =cut
1307  
1308 0 ▶sub vms_whereis {
Subroutine vms_whereis: not called CC=12 SCAR=50.5
Pod documented
1309 0 my $prog = shift;
1310  
1311 # Check SYMBOLS
1312 0 eval { require VMS::DCLsym };
1313 0 ▶ if ( $@ ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($@) { } 0 0 0
1314 0 require Carp;
1315 0 Carp::carp( "Oops, cannot load VMS::DCLsym: $@" );
1316 } else {
1317 0 my $syms = VMS::DCLsym->new;
1318 0 ▶ return $prog if scalar $syms->getsym( $prog );
Branch: 1 branch
BranchTrueFalseTotal
if scalar $syms->getsym($prog) 0 0 0
1319 }
1320 # Check Known File Entry table (INSTALL LIST)
1321 0 my $img_re = '^\s+([\w\$]+);\d+';
1322 my %kfe = map {
1323 0 ▶ my $img = /$img_re/ ? $1 : '';
Branch: 1 branch
BranchTrueFalseTotal
/$img_re/ ? : 0 0 0
1324 0 ( uc $img => undef )
1325 } grep /$img_re/ => qx/INSTALL LIST/;
1326 0 ▶ return $prog if exists $kfe{ uc $prog };
Branch: 1 branch
BranchTrueFalseTotal
if exists $kfe{uc $prog} 0 0 0
1327  
1328 0 require Config;
1329 0 my $dclp_env = 'DCL$PATH';
1330 0 ▶ my $p_sep = $Config::Config{path_sep} || '|';
Condition0%0/2
$Config::Config{'path_sep'} || '|'
l!l
00
MC/DC0%0/1
$Config::Config{'path_sep'} || '|'
$Config::Config{'path_sep'}
Truth table0%0/2
A
A= $Config::Config{'path_sep'}
Aresult
11
00
1331 0 ▶ my @path = split /\Q$p_sep\E/, $ENV{ $dclp_env }||"";
Condition0%0/2
$ENV{$dclp_env} || ''
l!l
00
MC/DC0%0/1
$ENV{$dclp_env} || ''
$ENV{$dclp_env}
Truth table0%0/2
A
A= $ENV{$dclp_env}
Aresult
11
00
1332 0 ▶ my @pext = ( $Config::Config{exe_ext} || $Config::Config{_exe}, '.COM' );
Condition0%0/3
$Config::Config{'exe_ext'} || $Config::Config{'_exe'}
l!l&&r!l&&!r
000
MC/DC0%0/2
$Config::Config{'exe_ext'} || $Config::Config{'_exe'}
$Config::Config{'exe_ext'} $Config::Config{'_exe'}
Truth table0%0/3
A || B
A= $Config::Config{'exe_ext'}B= $Config::Config{'_exe'}
ABresult
1X1
011
000
1333  
1334 0 foreach my $dir ( @path ) {
1335 0 foreach my $ext ( @pext ) {
1336 0 my $fname = File::Spec->catfile( $dir, "$prog$ext" );
1337 0 ▶ if ( -x $fname ) {
Branch: 1 branch
BranchTrueFalseTotal
if (-x $fname) 0 0 0
1338 0 ▶ return $ext eq '.COM' ? "\@$fname" : "MCR $fname";
Branch: 1 branch
BranchTrueFalseTotal
$ext eq '.COM' ? : 0 0 0
1339 }
1340 }
1341 }
1342 0 return '';
1343 }
1344  
1345 =head2 clean_filename( $fname )
1346  
1347 C<clean_filename()> basically returns a vmsify() type of filename for
1348 VMS, and returns an upcase filename for case-ignorant filesystems.
1349  
1350 =cut
1351  
1352 305 ▶sub clean_filename {
Subroutine clean_filename: called CC=5 SCAR=25.2
Pod documented
1353 305 my $fname = shift;
1354  
1355 305 ▶ if ( $^O eq 'VMS' ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($^O eq "VMS") 0 305 305
1356 0 my @parts = split /[.@#]/, $fname;
1357 0 ▶ if ( @parts > 1 ) {
Branch: 1 branch
BranchTrueFalseTotal
if (@parts > 1) 0 0 0
1358 0 ▶ my $ext = ( pop @parts ) || '';
Condition0%0/2
pop @parts || ''
l!l
00
MC/DC0%0/1
pop @parts || ''
pop @parts
Truth table0%0/2
A
A= pop @parts
Aresult
11
00
1359 0 $fname = join( "_", @parts ) . ".$ext";
1360 }
1361 }
1362 305 ▶ return $NOCASE ? uc $fname : $fname;
Branch: 1 branch
BranchTrueFalseTotal
$Test::Smoke::Util::NOCASE ? : 0 305 305
1363 }
1364  
1365 =head2 calc_timeout( $killtime[, $from] )
1366  
1367 C<calc_timeout()> calculates the timeout in seconds.
1368 C<$killtime> can be one of two formats:
1369  
1370 =over 8
1371  
1372 =item B<+hh:mm>
1373  
1374 This format represents a duration and is the easy format as we only need
1375 to translate that to seconds.
1376  
1377 =item B<hh:mm>
1378  
1379 This format represents a clock time (localtime). Calculate minutes
1380 from midnight for both C<$killtime> and C<localtime($from)>, and get
1381 the difference. If C<$from> is omitted, C<time()> is used.
1382  
1383 If C<$killtime> is the actual time, the timeout will be 24 hours!
1384  
1385 =back
1386  
1387 =cut
1388  
1389 9 ▶sub calc_timeout {
Subroutine calc_timeout: called CC=5 SCAR=16.1
Pod documented
1390 9 my( $killtime, $from ) = @_;
1391 9 my $timeout = 0;
1392 9 ▶ if ( $killtime =~ /^\+(\d+):([0-5]?[0-9])$/ ) {
Branch: 2 branches
BranchTrueFalseTotal
if ($killtime =~ /^\+(\d+):([0-5]?[0-9])$/) { } 2 7 9
elsif ($killtime =~ /^((?:[0-1]?[0-9])|(?:2[0-3])):([0-5]?[0-9])$/) { } 6 1 7
1393 2 $timeout = 60 * (60 * $1 + $2 );
1394 } elsif ( $killtime =~ /^((?:[0-1]?[0-9])|(?:2[0-3])):([0-5]?[0-9])$/ ) {
1395 6 ▶ defined $from or $from = time;
Branch: 1 branch
BranchTrueFalseTotal
defined $from or $from = time 3 3 6
1396 6 my $time_min = 60 * $1 + $2;
1397 6 my( $now_m, $now_h ) = (localtime $from)[1, 2];
1398 6 my $now_min = 60 * $now_h + $now_m;
1399 6 my $kill_min = $time_min - $now_min;
1400 6 ▶ $kill_min += 60 * 24 if $kill_min <= 0;
Branch: 1 branch
BranchTrueFalseTotal
if $kill_min <= 0 4 2 6
1401 6 $timeout = 60 * $kill_min;
1402 }
1403 9 return $timeout;
1404 }
1405  
1406 =head2 time_in_hhmm( $diff )
1407  
1408 Create a string telling elapsed time in days, hours, minutes, seconds
1409 from the number of seconds.
1410  
1411 =cut
1412  
1413 136 ▶sub time_in_hhmm {
Subroutine time_in_hhmm: called CC=13 SCAR=25.6
Pod documented
1414 136 my $diff = shift;
1415  
1416 # Only show decimal point for diffs < 5 minutes
1417 136 ▶ my $digits = $diff =~ /\./ ? $diff < 5*60 ? 3 : 0 : 0;
Branch: 2 branches
BranchTrueFalseTotal
$diff =~ /\./ ? : 20 116 136
$diff < 300 ? : 6 14 20
1418 136 my $days = int( $diff / (24*60*60) );
1419 136 $diff -= 24*60*60 * $days;
1420 136 my $hour = int( $diff / (60*60) );
1421 136 $diff -= 60*60 * $hour;
1422 136 my $mins = int( $diff / 60 );
1423 136 $diff -= 60 * $mins;
1424 136 $diff = sprintf "%.${digits}f", $diff;
1425  
1426 # GH#78 that sprintf() can round up to 60 secs
1427 # that can look strange: 18 minutes 60 seconds
1428 136 ▶ $mins++, $diff -= 60 if $diff >= 60;
Branch: 1 branch
BranchTrueFalseTotal
if $diff >= 60 2 134 136
1429  
1430 136 my @parts;
1431 136 ▶ $days and push @parts, sprintf "%d day%s", $days, $days == 1 ? "" : 's';
Branch: 2 branches
BranchTrueFalseTotal
$days and push @parts, sprintf("%d day%s", $days, $days == 1 ? "" : "s") 2 134 136
$days == 1 ? : 1 1 2
1432 136 ▶ $hour and push @parts, sprintf "%d hour%s", $hour, $hour == 1 ? "" : 's';
Branch: 2 branches
BranchTrueFalseTotal
$hour and push @parts, sprintf("%d hour%s", $hour, $hour == 1 ? "" : "s") 19 117 136
$hour == 1 ? : 8 11 19
1433 136 ▶ $mins and push @parts, sprintf "%d minute%s",$mins, $mins == 1 ? "" : 's';
Branch: 2 branches
BranchTrueFalseTotal
$mins and push @parts, sprintf("%d minute%s", $mins, $mins == 1 ? "" : "s") 53 83 136
$mins == 1 ? : 1 52 53
1434 136 ▶ $diff && !$days && !$hour and push @parts, "$diff seconds";
Branch: 1 branch
BranchTrueFalseTotal
$diff and not $days and not $hour and push @parts, "$diff seconds" 105 31 136
Condition100%6/6
$diff and not $days and not $hour
!ll&&!rl&&r
1318105
$diff and not $days
!ll&&!rl&&r
112123
MC/DC100%3/3
$diff and not $days and not $hour
$diff not $days not $hour
Truth table100%4/4
A and not(B) and not(C)
A= $diffB= not $daysC= not $hour
ABCresult
0XX0
10X0
1100
1111
1435  
1436 136 return join " ", @parts;
1437 }
1438  
1439 =head2 do_pod2usage( %pod2usage_options )
1440  
1441 If L<Pod::Usage> is there then call its C<pod2usage()>.
1442 In the other case, print the general message passed with the C<myusage> key.
1443  
1444 =cut
1445  
1446 0 ▶sub do_pod2usage {
Subroutine do_pod2usage: not called CC=5 SCAR=34.0
Pod documented
1447 0 my %p2u_opt = @_;
1448 0 eval { require Pod::Usage };
1449 0 ▶ if ( $@ ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($@) { } 0 0 0
1450 0 ▶ my $usage = $p2u_opt{myusage} || <<__EO_USAGE__;
Condition0%0/2
$p2u_opt{'myusage'} || "Usage: $0 [options]\n"
l!l
00
MC/DC0%0/1
$p2u_opt{'myusage'} || "Usage: $0 [options]\n"
$p2u_opt{'myusage'}
Truth table0%0/2
A
A= $p2u_opt{'myusage'}
Aresult
11
00
1451 Usage: $0 [options]
1452 __EO_USAGE__
1453 0 print <<EO_MSG;
1454 $usage
1455  
1456 Use 'perldoc $0' for the documentation.
1457 Please install 'Pod::Usage' for easy access to the docs.
1458  
1459 EO_MSG
1460 0 ▶ exit( exists $p2u_opt{exitval} ? $p2u_opt{exitval} : 1 );
Branch: 1 branch
BranchTrueFalseTotal
exists $p2u_opt{'exitval'} ? : 0 0 0
1461 } else {
1462 0 ▶ exists $p2u_opt{myusage} and delete $p2u_opt{myusage};
Branch: 1 branch
BranchTrueFalseTotal
exists $p2u_opt{"myusage"} and delete $p2u_opt{"myusage"} 0 0 0
1463 0 Pod::Usage::pod2usage( @_ );
1464 }
1465 }
1466  
1467 =head2 skip_config( $config )
1468  
1469 Returns true if this config should be skipped.
1470 C<$config> should be a B<Test::Smoke::BuildCFG::Config> object.
1471  
1472 =cut
1473  
1474 18 ▶sub skip_config {
Subroutine skip_config: called CC=7 SCAR=19.5
Pod documented
1475 18 my( $config ) = @_;
1476  
1477 18 ▶ my $skip = $config->has_arg(qw( -Uuseperlio -Dusethreads )) ||
Condition100%18/18
$config->has_arg('-Uuseperlio', '-Dusethreads') || $config->has_arg('-Uuseperlio', '-Duseithreads') || $^O eq 'MSWin32' && ($config->has_arg('-Duseithreads', '-Dusemymalloc') && !$config->has_arg('-Uuseimpsys') || $config->has_arg('-Dusethreads', '-Dusemymalloc') && !$config->has_arg('-Uuseimpsys'))
l!l&&r!l&&!r
2214
$config->has_arg("-Uuseperlio", "-Dusethreads") or $config->has_arg("-Uuseperlio", "-Duseithreads")
l!l&&r!l&&!r
1116
$^O eq "MSWin32" and $config->has_arg("-Duseithreads", "-Dusemymalloc") && !$config->has_arg("-Uuseimpsys") || $config->has_arg("-Dusethreads", "-Dusemymalloc") && !$config->has_arg("-Uuseimpsys")
!ll&&!rl&&r
1222
$config->has_arg("-Duseithreads", "-Dusemymalloc") and not $config->has_arg("-Uuseimpsys") or $config->has_arg("-Dusethreads", "-Dusemymalloc") and not $config->has_arg("-Uuseimpsys")
l!l&&r!l&&!r
112
$config->has_arg("-Duseithreads", "-Dusemymalloc") and not $config->has_arg("-Uuseimpsys")
!ll&&!rl&&r
211
$config->has_arg("-Dusethreads", "-Dusemymalloc") and not $config->has_arg("-Uuseimpsys")
!ll&&!rl&&r
111
MC/DC85%6/7
$config->has_arg('-Uuseperlio', '-Dusethreads') || $config->has_arg('-Uuseperlio', '-Duseithreads') || $^O eq 'MSWin32' && ($config->has_arg('-Duseithreads', '-Dusemymalloc') && !$config->has_arg('-Uuseimpsys') || $config->has_arg('-Dusethreads', '-Dusemymalloc') && !$config->has_arg('-Uuseimpsys'))
$config->has_arg("-Uuseperlio", "-Dusethreads") $config->has_arg("-Uuseperlio", "-Duseithreads") $^O eq "MSWin32" $config->has_arg("-Duseithreads", "-Dusemymalloc") not $config->has_arg("-Uuseimpsys") $config->has_arg("-Dusethreads", "-Dusemymalloc") not $config->has_arg("-Uuseimpsys")
Truth table70%7/10
A or B || C and D and not(E) or F and not(G)
A= $config->has_arg("-Uuseperlio", "-Dusethreads")B= $config->has_arg("-Uuseperlio", "-Duseithreads")C= $^O eq "MSWin32"D= $config->has_arg("-Duseithreads", "-Dusemymalloc")E= not $config->has_arg("-Uuseimpsys")F= $config->has_arg("-Dusethreads", "-Dusemymalloc")G= not $config->has_arg("-Uuseimpsys")
ABCDEFGresult
1XXXXXX1
01XXXXX1
00111XX1
0010X111
00110111
000XXXX0
0010X0X0
0010X100
001100X0
00110100
1478 $config->has_arg(qw( -Uuseperlio -Duseithreads )) ||
1479 ( $^O eq 'MSWin32' &&
1480 (( $config->has_arg(qw( -Duseithreads -Dusemymalloc )) &&
1481 !$config->has_arg( '-Uuseimpsys' ) ) ||
1482 ( $config->has_arg(qw( -Dusethreads -Dusemymalloc )) &&
1483 !$config->has_arg( '-Uuseimpsys' ) ))
1484 );
1485 18 return $skip;
1486 }
1487  
1488 =head2 skip_filter( $line )
1489  
1490 C<skip_filter()> returns true if the filter rules apply to C<$line>.
1491  
1492 =cut
1493  
1494 2339 ▶sub skip_filter {
Subroutine skip_filter: called CC=49 SCAR=46.3
Pod documented
1495 2339 local( $_ ) = @_;
1496 # Still to be extended
1497 2339 ▶ return m,^ *$, ||
Condition71%103/144
/^ *$/ || /^\t/ || m[^PERL=./perl\s+./runtests choose] || /^\s+AutoSplitting/ || m[^\./miniperl ] || /^\s*autosplit_lib/ || m[^\s*PATH=\S+\s+./miniperl] || /^\s+Making / || /^make\[[12]/ || m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] || /^make:.*Error\s+\d/ || m[^\s+make\s+lib/] || /^ *cd t &&/ || /^if \(true/ || /^else \\/ || /^fi$/ || m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] || m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] || /^ok$/ || m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] || /^(xlc|cc_r) -c / || /^sh mv-if-diff\b/ || /File \S+ not changed/ || /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i || /^dllwrap: no export definition file provided/ || /^dllwrap: creating one. but that may not be what you want/ || /^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o'/ || /^(GNUm|M)akefile:\d+: warning: ignoring old commands for target `perlmain.o'/ || /^\s+CCCMD\s+=\s+/ || /^Extracting .*with variable substitutions/ || m[cc\s+-o\s+perl.*perlmain.o\s+lib/auto/DynaLoader/DynaLoader\.a\s+libperl\.a] || /^\S+ is up to date/ || /^( )?### / || m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok$) || m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok\s+\d+(\.\d+)?\s*m?s$) || m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok,\s+\d+/\d+\s+skipped:) || m(^(?:\.\.[/\\])?[\w/\\-]+\.*skipped[: ]) || /^\t?x?copy / || /\d+\s+[Ff]ile\(s\) copied/ || m([/\\](?:mini)?perl\.exe ) || /^\t?cd / || /^\b[ng]make\b/ || m[^\s+\d+/\d+ skipped: ] || /^\s+all skipped: / || /^\s*pl2bat\.bat [\w\\]+/ || /^Making / || /^Skip / || /^Creating library file: libExtTest\.dll\.a/ || /^cc: warning 983: /
l!l&&r!l&&!r
2326112
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i or /^dllwrap: no export definition file provided/ or /^dllwrap: creating one. but that may not be what you want/ or /^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o'/ or /^(GNUm|M)akefile:\d+: warning: ignoring old commands for target `perlmain.o'/ or /^\s+CCCMD\s+=\s+/ or /^Extracting .*with variable substitutions/ or m[cc\s+-o\s+perl.*perlmain.o\s+lib/auto/DynaLoader/DynaLoader\.a\s+libperl\.a] or /^\S+ is up to date/ or /^( )?### / or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok\s+\d+(\.\d+)?\s*m?s$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok,\s+\d+/\d+\s+skipped:) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*skipped[: ]) or /^\t?x?copy / or /\d+\s+[Ff]ile\(s\) copied/ or m([/\\](?:mini)?perl\.exe ) or /^\t?cd / or /^\b[ng]make\b/ or m[^\s+\d+/\d+ skipped: ] or /^\s+all skipped: / or /^\s*pl2bat\.bat [\w\\]+/ or /^Making / or /^Skip / or /^Creating library file: libExtTest\.dll\.a/
l!l&&r!l&&!r
2325113
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i or /^dllwrap: no export definition file provided/ or /^dllwrap: creating one. but that may not be what you want/ or /^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o'/ or /^(GNUm|M)akefile:\d+: warning: ignoring old commands for target `perlmain.o'/ or /^\s+CCCMD\s+=\s+/ or /^Extracting .*with variable substitutions/ or m[cc\s+-o\s+perl.*perlmain.o\s+lib/auto/DynaLoader/DynaLoader\.a\s+libperl\.a] or /^\S+ is up to date/ or /^( )?### / or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok\s+\d+(\.\d+)?\s*m?s$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok,\s+\d+/\d+\s+skipped:) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*skipped[: ]) or /^\t?x?copy / or /\d+\s+[Ff]ile\(s\) copied/ or m([/\\](?:mini)?perl\.exe ) or /^\t?cd / or /^\b[ng]make\b/ or m[^\s+\d+/\d+ skipped: ] or /^\s+all skipped: / or /^\s*pl2bat\.bat [\w\\]+/ or /^Making / or /^Skip /
l!l&&r!l&&!r
2325014
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i or /^dllwrap: no export definition file provided/ or /^dllwrap: creating one. but that may not be what you want/ or /^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o'/ or /^(GNUm|M)akefile:\d+: warning: ignoring old commands for target `perlmain.o'/ or /^\s+CCCMD\s+=\s+/ or /^Extracting .*with variable substitutions/ or m[cc\s+-o\s+perl.*perlmain.o\s+lib/auto/DynaLoader/DynaLoader\.a\s+libperl\.a] or /^\S+ is up to date/ or /^( )?### / or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok\s+\d+(\.\d+)?\s*m?s$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok,\s+\d+/\d+\s+skipped:) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*skipped[: ]) or /^\t?x?copy / or /\d+\s+[Ff]ile\(s\) copied/ or m([/\\](?:mini)?perl\.exe ) or /^\t?cd / or /^\b[ng]make\b/ or m[^\s+\d+/\d+ skipped: ] or /^\s+all skipped: / or /^\s*pl2bat\.bat [\w\\]+/ or /^Making /
l!l&&r!l&&!r
2325014
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i or /^dllwrap: no export definition file provided/ or /^dllwrap: creating one. but that may not be what you want/ or /^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o'/ or /^(GNUm|M)akefile:\d+: warning: ignoring old commands for target `perlmain.o'/ or /^\s+CCCMD\s+=\s+/ or /^Extracting .*with variable substitutions/ or m[cc\s+-o\s+perl.*perlmain.o\s+lib/auto/DynaLoader/DynaLoader\.a\s+libperl\.a] or /^\S+ is up to date/ or /^( )?### / or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok\s+\d+(\.\d+)?\s*m?s$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok,\s+\d+/\d+\s+skipped:) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*skipped[: ]) or /^\t?x?copy / or /\d+\s+[Ff]ile\(s\) copied/ or m([/\\](?:mini)?perl\.exe ) or /^\t?cd / or /^\b[ng]make\b/ or m[^\s+\d+/\d+ skipped: ] or /^\s+all skipped: / or /^\s*pl2bat\.bat [\w\\]+/
l!l&&r!l&&!r
2325014
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i or /^dllwrap: no export definition file provided/ or /^dllwrap: creating one. but that may not be what you want/ or /^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o'/ or /^(GNUm|M)akefile:\d+: warning: ignoring old commands for target `perlmain.o'/ or /^\s+CCCMD\s+=\s+/ or /^Extracting .*with variable substitutions/ or m[cc\s+-o\s+perl.*perlmain.o\s+lib/auto/DynaLoader/DynaLoader\.a\s+libperl\.a] or /^\S+ is up to date/ or /^( )?### / or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok\s+\d+(\.\d+)?\s*m?s$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok,\s+\d+/\d+\s+skipped:) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*skipped[: ]) or /^\t?x?copy / or /\d+\s+[Ff]ile\(s\) copied/ or m([/\\](?:mini)?perl\.exe ) or /^\t?cd / or /^\b[ng]make\b/ or m[^\s+\d+/\d+ skipped: ] or /^\s+all skipped: /
l!l&&r!l&&!r
2325014
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i or /^dllwrap: no export definition file provided/ or /^dllwrap: creating one. but that may not be what you want/ or /^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o'/ or /^(GNUm|M)akefile:\d+: warning: ignoring old commands for target `perlmain.o'/ or /^\s+CCCMD\s+=\s+/ or /^Extracting .*with variable substitutions/ or m[cc\s+-o\s+perl.*perlmain.o\s+lib/auto/DynaLoader/DynaLoader\.a\s+libperl\.a] or /^\S+ is up to date/ or /^( )?### / or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok\s+\d+(\.\d+)?\s*m?s$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok,\s+\d+/\d+\s+skipped:) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*skipped[: ]) or /^\t?x?copy / or /\d+\s+[Ff]ile\(s\) copied/ or m([/\\](?:mini)?perl\.exe ) or /^\t?cd / or /^\b[ng]make\b/ or m[^\s+\d+/\d+ skipped: ]
l!l&&r!l&&!r
2325014
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i or /^dllwrap: no export definition file provided/ or /^dllwrap: creating one. but that may not be what you want/ or /^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o'/ or /^(GNUm|M)akefile:\d+: warning: ignoring old commands for target `perlmain.o'/ or /^\s+CCCMD\s+=\s+/ or /^Extracting .*with variable substitutions/ or m[cc\s+-o\s+perl.*perlmain.o\s+lib/auto/DynaLoader/DynaLoader\.a\s+libperl\.a] or /^\S+ is up to date/ or /^( )?### / or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok\s+\d+(\.\d+)?\s*m?s$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok,\s+\d+/\d+\s+skipped:) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*skipped[: ]) or /^\t?x?copy / or /\d+\s+[Ff]ile\(s\) copied/ or m([/\\](?:mini)?perl\.exe ) or /^\t?cd / or /^\b[ng]make\b/
l!l&&r!l&&!r
2325014
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i or /^dllwrap: no export definition file provided/ or /^dllwrap: creating one. but that may not be what you want/ or /^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o'/ or /^(GNUm|M)akefile:\d+: warning: ignoring old commands for target `perlmain.o'/ or /^\s+CCCMD\s+=\s+/ or /^Extracting .*with variable substitutions/ or m[cc\s+-o\s+perl.*perlmain.o\s+lib/auto/DynaLoader/DynaLoader\.a\s+libperl\.a] or /^\S+ is up to date/ or /^( )?### / or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok\s+\d+(\.\d+)?\s*m?s$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok,\s+\d+/\d+\s+skipped:) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*skipped[: ]) or /^\t?x?copy / or /\d+\s+[Ff]ile\(s\) copied/ or m([/\\](?:mini)?perl\.exe ) or /^\t?cd /
l!l&&r!l&&!r
2325014
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i or /^dllwrap: no export definition file provided/ or /^dllwrap: creating one. but that may not be what you want/ or /^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o'/ or /^(GNUm|M)akefile:\d+: warning: ignoring old commands for target `perlmain.o'/ or /^\s+CCCMD\s+=\s+/ or /^Extracting .*with variable substitutions/ or m[cc\s+-o\s+perl.*perlmain.o\s+lib/auto/DynaLoader/DynaLoader\.a\s+libperl\.a] or /^\S+ is up to date/ or /^( )?### / or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok\s+\d+(\.\d+)?\s*m?s$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok,\s+\d+/\d+\s+skipped:) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*skipped[: ]) or /^\t?x?copy / or /\d+\s+[Ff]ile\(s\) copied/ or m([/\\](?:mini)?perl\.exe )
l!l&&r!l&&!r
2323214
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i or /^dllwrap: no export definition file provided/ or /^dllwrap: creating one. but that may not be what you want/ or /^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o'/ or /^(GNUm|M)akefile:\d+: warning: ignoring old commands for target `perlmain.o'/ or /^\s+CCCMD\s+=\s+/ or /^Extracting .*with variable substitutions/ or m[cc\s+-o\s+perl.*perlmain.o\s+lib/auto/DynaLoader/DynaLoader\.a\s+libperl\.a] or /^\S+ is up to date/ or /^( )?### / or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok\s+\d+(\.\d+)?\s*m?s$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok,\s+\d+/\d+\s+skipped:) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*skipped[: ]) or /^\t?x?copy / or /\d+\s+[Ff]ile\(s\) copied/
l!l&&r!l&&!r
2323016
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i or /^dllwrap: no export definition file provided/ or /^dllwrap: creating one. but that may not be what you want/ or /^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o'/ or /^(GNUm|M)akefile:\d+: warning: ignoring old commands for target `perlmain.o'/ or /^\s+CCCMD\s+=\s+/ or /^Extracting .*with variable substitutions/ or m[cc\s+-o\s+perl.*perlmain.o\s+lib/auto/DynaLoader/DynaLoader\.a\s+libperl\.a] or /^\S+ is up to date/ or /^( )?### / or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok\s+\d+(\.\d+)?\s*m?s$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok,\s+\d+/\d+\s+skipped:) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*skipped[: ]) or /^\t?x?copy /
l!l&&r!l&&!r
2323016
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i or /^dllwrap: no export definition file provided/ or /^dllwrap: creating one. but that may not be what you want/ or /^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o'/ or /^(GNUm|M)akefile:\d+: warning: ignoring old commands for target `perlmain.o'/ or /^\s+CCCMD\s+=\s+/ or /^Extracting .*with variable substitutions/ or m[cc\s+-o\s+perl.*perlmain.o\s+lib/auto/DynaLoader/DynaLoader\.a\s+libperl\.a] or /^\S+ is up to date/ or /^( )?### / or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok\s+\d+(\.\d+)?\s*m?s$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok,\s+\d+/\d+\s+skipped:) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*skipped[: ])
l!l&&r!l&&!r
2323016
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i or /^dllwrap: no export definition file provided/ or /^dllwrap: creating one. but that may not be what you want/ or /^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o'/ or /^(GNUm|M)akefile:\d+: warning: ignoring old commands for target `perlmain.o'/ or /^\s+CCCMD\s+=\s+/ or /^Extracting .*with variable substitutions/ or m[cc\s+-o\s+perl.*perlmain.o\s+lib/auto/DynaLoader/DynaLoader\.a\s+libperl\.a] or /^\S+ is up to date/ or /^( )?### / or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok\s+\d+(\.\d+)?\s*m?s$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok,\s+\d+/\d+\s+skipped:)
l!l&&r!l&&!r
2323016
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i or /^dllwrap: no export definition file provided/ or /^dllwrap: creating one. but that may not be what you want/ or /^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o'/ or /^(GNUm|M)akefile:\d+: warning: ignoring old commands for target `perlmain.o'/ or /^\s+CCCMD\s+=\s+/ or /^Extracting .*with variable substitutions/ or m[cc\s+-o\s+perl.*perlmain.o\s+lib/auto/DynaLoader/DynaLoader\.a\s+libperl\.a] or /^\S+ is up to date/ or /^( )?### / or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok$) or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok\s+\d+(\.\d+)?\s*m?s$)
l!l&&r!l&&!r
2321216
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i or /^dllwrap: no export definition file provided/ or /^dllwrap: creating one. but that may not be what you want/ or /^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o'/ or /^(GNUm|M)akefile:\d+: warning: ignoring old commands for target `perlmain.o'/ or /^\s+CCCMD\s+=\s+/ or /^Extracting .*with variable substitutions/ or m[cc\s+-o\s+perl.*perlmain.o\s+lib/auto/DynaLoader/DynaLoader\.a\s+libperl\.a] or /^\S+ is up to date/ or /^( )?### / or m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok$)
l!l&&r!l&&!r
2321018
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i or /^dllwrap: no export definition file provided/ or /^dllwrap: creating one. but that may not be what you want/ or /^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o'/ or /^(GNUm|M)akefile:\d+: warning: ignoring old commands for target `perlmain.o'/ or /^\s+CCCMD\s+=\s+/ or /^Extracting .*with variable substitutions/ or m[cc\s+-o\s+perl.*perlmain.o\s+lib/auto/DynaLoader/DynaLoader\.a\s+libperl\.a] or /^\S+ is up to date/ or /^( )?### /
l!l&&r!l&&!r
2321018
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i or /^dllwrap: no export definition file provided/ or /^dllwrap: creating one. but that may not be what you want/ or /^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o'/ or /^(GNUm|M)akefile:\d+: warning: ignoring old commands for target `perlmain.o'/ or /^\s+CCCMD\s+=\s+/ or /^Extracting .*with variable substitutions/ or m[cc\s+-o\s+perl.*perlmain.o\s+lib/auto/DynaLoader/DynaLoader\.a\s+libperl\.a] or /^\S+ is up to date/
l!l&&r!l&&!r
2321018
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i or /^dllwrap: no export definition file provided/ or /^dllwrap: creating one. but that may not be what you want/ or /^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o'/ or /^(GNUm|M)akefile:\d+: warning: ignoring old commands for target `perlmain.o'/ or /^\s+CCCMD\s+=\s+/ or /^Extracting .*with variable substitutions/ or m[cc\s+-o\s+perl.*perlmain.o\s+lib/auto/DynaLoader/DynaLoader\.a\s+libperl\.a]
l!l&&r!l&&!r
2321018
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i or /^dllwrap: no export definition file provided/ or /^dllwrap: creating one. but that may not be what you want/ or /^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o'/ or /^(GNUm|M)akefile:\d+: warning: ignoring old commands for target `perlmain.o'/ or /^\s+CCCMD\s+=\s+/ or /^Extracting .*with variable substitutions/
l!l&&r!l&&!r
2321018
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i or /^dllwrap: no export definition file provided/ or /^dllwrap: creating one. but that may not be what you want/ or /^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o'/ or /^(GNUm|M)akefile:\d+: warning: ignoring old commands for target `perlmain.o'/ or /^\s+CCCMD\s+=\s+/
l!l&&r!l&&!r
2321018
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i or /^dllwrap: no export definition file provided/ or /^dllwrap: creating one. but that may not be what you want/ or /^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o'/ or /^(GNUm|M)akefile:\d+: warning: ignoring old commands for target `perlmain.o'/
l!l&&r!l&&!r
2321018
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i or /^dllwrap: no export definition file provided/ or /^dllwrap: creating one. but that may not be what you want/ or /^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o'/
l!l&&r!l&&!r
2321018
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i or /^dllwrap: no export definition file provided/ or /^dllwrap: creating one. but that may not be what you want/
l!l&&r!l&&!r
2321018
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i or /^dllwrap: no export definition file provided/
l!l&&r!l&&!r
2321018
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/ or /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i
l!l&&r!l&&!r
2320118
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/ or /File \S+ not changed/
l!l&&r!l&&!r
2320019
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c / or /^sh mv-if-diff\b/
l!l&&r!l&&!r
2320019
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] or /^(xlc|cc_r) -c /
l!l&&r!l&&!r
2320019
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/ or m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$]
l!l&&r!l&&!r
2231819
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or /^ok$/
l!l&&r!l&&!r
202337
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] or m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe]
l!l&&r!l&&!r
202337
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/ or m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe]
l!l&&r!l&&!r
202337
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/ or /^fi$/
l!l&&r!l&&!r
202337
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/ or /^else \\/
l!l&&r!l&&!r
202337
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/ or /^if \(true/
l!l&&r!l&&!r
202337
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/] or /^ *cd t &&/
l!l&&r!l&&!r
202337
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/ or m[^\s+make\s+lib/]
l!l&&r!l&&!r
202337
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] or /^make:.*Error\s+\d/
l!l&&r!l&&!r
202337
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/ or m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)]
l!l&&r!l&&!r
202337
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making / or /^make\[[12]/
l!l&&r!l&&!r
202337
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl] or /^\s+Making /
l!l&&r!l&&!r
202337
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/ or m[^\s*PATH=\S+\s+./miniperl]
l!l&&r!l&&!r
202337
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ] or /^\s*autosplit_lib/
l!l&&r!l&&!r
202337
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/ or m[^\./miniperl ]
l!l&&r!l&&!r
202337
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose] or /^\s+AutoSplitting/
l!l&&r!l&&!r
202337
/^ *$/ or /^\t/ or m[^PERL=./perl\s+./runtests choose]
l!l&&r!l&&!r
112337
/^ *$/ or /^\t/
l!l&&r!l&&!r
012338
MC/DC0%0/49
/^ *$/ || /^\t/ || m[^PERL=./perl\s+./runtests choose] || /^\s+AutoSplitting/ || m[^\./miniperl ] || /^\s*autosplit_lib/ || m[^\s*PATH=\S+\s+./miniperl] || /^\s+Making / || /^make\[[12]/ || m[make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm)] || /^make:.*Error\s+\d/ || m[^\s+make\s+lib/] || /^ *cd t &&/ || /^if \(true/ || /^else \\/ || /^fi$/ || m[^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] || m[^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe] || /^ok$/ || m[^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$] || /^(xlc|cc_r) -c / || /^sh mv-if-diff\b/ || /File \S+ not changed/ || /^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ])/i || /^dllwrap: no export definition file provided/ || /^dllwrap: creating one. but that may not be what you want/ || /^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o'/ || /^(GNUm|M)akefile:\d+: warning: ignoring old commands for target `perlmain.o'/ || /^\s+CCCMD\s+=\s+/ || /^Extracting .*with variable substitutions/ || m[cc\s+-o\s+perl.*perlmain.o\s+lib/auto/DynaLoader/DynaLoader\.a\s+libperl\.a] || /^\S+ is up to date/ || /^( )?### / || m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok$) || m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok\s+\d+(\.\d+)?\s*m?s$) || m(^(?:\.\.[/\\])?[\w/\\-]+\.*ok,\s+\d+/\d+\s+skipped:) || m(^(?:\.\.[/\\])?[\w/\\-]+\.*skipped[: ]) || /^\t?x?copy / || /\d+\s+[Ff]ile\(s\) copied/ || m([/\\](?:mini)?perl\.exe ) || /^\t?cd / || /^\b[ng]make\b/ || m[^\s+\d+/\d+ skipped: ] || /^\s+all skipped: / || /^\s*pl2bat\.bat [\w\\]+/ || /^Making / || /^Skip / || /^Creating library file: libExtTest\.dll\.a/ || /^cc: warning 983: /
too many conditions
1498 m,^\t, ||
1499 m,^PERL=./perl\s+./runtests choose, ||
1500 m,^\s+AutoSplitting, ||
1501 m,^\./miniperl , ||
1502 m,^\s*autosplit_lib, ||
1503 m,^\s*PATH=\S+\s+./miniperl, ||
1504 m,^\s+Making , ||
1505 m,^make\[[12], ||
1506 m,make( TEST_ARGS=)? (_test|TESTFILE=|lib/\w+.pm), ||
1507 m,^make:.*Error\s+\d, ||
1508 m,^\s+make\s+lib/, ||
1509 m,^ *cd t &&, ||
1510 m,^if \(true, ||
1511 m,^else \\, ||
1512 m,^fi$, ||
1513 m,^lib/ftmp-security....File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe, ||
1514 m,^File::Temp::_gettemp: Parent directory \((\.|/tmp/)\) is not safe, ||
1515 m,^ok$, ||
1516 m,^[-a-zA-Z0-9_/.]+\s*\.*\s*(ok|skipped|skipping test on this platform)$, ||
1517 m,^(xlc|cc_r) -c , ||
1518 # m,^\s+$testdir/, ||
1519 m,^sh mv-if-diff\b, ||
1520 m,File \S+ not changed, ||
1521 m,^(not\s+)?ok\s+\d+\s+[-#]\s+(?i:skip\S*[: ]),i ||
1522 # cygwin
1523 m,^dllwrap: no export definition file provided, ||
1524 m,^dllwrap: creating one. but that may not be what you want, ||
1525 m,^(GNUm|M)akefile:\d+: warning: overriding commands for target `perlmain.o', ||
1526 m,^(GNUm|M)akefile:\d+: warning: ignoring old commands for target `perlmain.o', ||
1527 m,^\s+CCCMD\s+=\s+, ||
1528 # Don't know why BSD's make does this
1529 m,^Extracting .*with variable substitutions, ||
1530 # Or these
1531 m,cc\s+-o\s+perl.*perlmain.o\s+lib/auto/DynaLoader/DynaLoader\.a\s+libperl\.a, ||
1532 m,^\S+ is up to date, ||
1533 m,^( )?### , ||
1534 # Clean up Win32's output
1535 m,^(?:\.\.[/\\])?[\w/\\-]+\.*ok$, ||
1536 m,^(?:\.\.[/\\])?[\w/\\-]+\.*ok\s+\d+(\.\d+)?\s*m?s$, ||
1537 m,^(?:\.\.[/\\])?[\w/\\-]+\.*ok\,\s+\d+/\d+\s+skipped:, ||
1538 m,^(?:\.\.[/\\])?[\w/\\-]+\.*skipped[: ], ||
1539 m,^\t?x?copy , ||
1540 m,\d+\s+[Ff]ile\(s\) copied, ||
1541 m,[/\\](?:mini)?perl\.exe ,||
1542 m,^\t?cd , ||
1543 m,^\b[ng]make\b, ||
1544 m,^\s+\d+/\d+ skipped: , ||
1545 m,^\s+all skipped: , ||
1546 m,^\s*pl2bat\.bat [\w\\]+, ||
1547 m,^Making , ||
1548 m,^Skip , ||
1549 m,^Creating library file: libExtTest\.dll\.a, ||
1550 m,^cc: warning 983: ,
1551 }
1552  
1553 46 1;
1554  
1555 =head1 COPYRIGHT
1556  
1557 (c) 2001-2014, All rights reserved.
1558  
1559 * H. Merijn Brand <h.m.brand@hccnet.nl>
1560 * Nicholas Clark <nick@unfortu.net>
1561 * Jarkko Hietaniemi <jhi@iki.fi>
1562 * Abe Timmerman <abeltje@cpan.org>
1563  
1564 This library is free software; you can redistribute it and/or modify
1565 it under the same terms as Perl itself.
1566  
1567 See:
1568  
1569 * <http://www.perl.com/perl/misc/Artistic.html>,
1570 * <http://www.gnu.org/copyleft/gpl.html>
1571  
1572 This program is distributed in the hope that it will be useful,
1573 but WITHOUT ANY WARRANTY; without even the implied warranty of
1574 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1575  
1576 =cut
« blib/lib/Test/Smoke/Reporter.pm ↑ Summary blib/lib/Test/Smoke/Patcher.pm »