blib/lib/OpenMP/test-runner.pl untested

filter: Statementstmt 0.0% 0 / 28 Branchbran 0.0% 0 / 10 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 45 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/env perl
2  
3 use strict;
4 use warnings;
5  
6 use File::Copy qw(copy);
7 use File::Path qw(make_path remove_tree);
8  
9 my @tests = @ARGV;
10 @tests = sort glob('t/*.t') unless @tests;
11 @tests = map { m{^t[\\/]} ? $_ : "t/$_" } @tests;
12  
13 die "No tests found\n" unless @tests;
14  
15 remove_tree('blib');
16 make_path('blib/lib/auto/share/dist/OpenMP-Simple');
17  
18 for my $file (qw(openmp-simple.h ppport.h)) {
19 copy("share/$file", "blib/lib/auto/share/dist/OpenMP-Simple/$file")
20 or die "Unable to copy share/$file: $!\n";
21 }
22  
23 my $harness = q{undef *Test::Harness::Switches; test_harness(1, 'blib/lib', 'blib/arch')};
24 my $failed = 0;
25  
26 for my $test (@tests) {
27 local $ENV{PERL_DL_NONLAZY} = 1;
28 my $status = system(
29 $^X,
30 '-Ilib',
31 '-MExtUtils::Command::MM',
32 '-MTest::Harness',
33 '-e',
34 $harness,
35 $test,
36 );
37 ++$failed if $status != 0;
38 }
39  
40 exit($failed > 255 ? 255 : $failed);