script/tapper-automatic-test.pl untested

filter: Statementstmt 0.0% 0 / 24 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 6 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 39 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/local/bin/perl
2 # PODNAME: tapper-automatic-test.pl
3 # ABSTRACT: cmdline frontend to Testcontrol.autoinstall
4  
5 use strict;
6 use warnings;
7  
8 use Sys::Hostname;
9 use Tapper::PRC::Testcontrol;
10 use Tapper::Installer::Base;
11  
12 if (@ARGV and $ARGV[0] eq "stop") {
13 exit 0;
14 }
15  
16 # bearable since it never really changes
17 my $logconf = 'log4perl.rootlogger = DEBUG, Screen
18 log4perl.appender.Screen = Log::Log4perl::Appender::Screen
19 log4perl.appender.Screen.layout = PatternLayout
20 # date package category - message in last 2 components of filename (linenumber) newline
21 log4perl.appender.Screen.layout.ConversionPattern = %d %p %c - %m in %F{2} (%L)%n';
22 Log::Log4perl::init(\$logconf);
23  
24  
25 if (@ARGV and $ARGV[0] eq "autoinstall") {
26 my $client = Tapper::Installer::Base->new;
27 $client->system_install("autoinstall");
28 }
29  
30 my $prc = new Tapper::PRC::Testcontrol;
31 $prc->run();
32  
33 __END__
34  
35 =pod
36  
37 =encoding UTF-8
38  
39 =head1 NAME
40  
41 tapper-automatic-test.pl - cmdline frontend to Testcontrol.autoinstall
42  
43 =head1 AUTHORS
44  
45 =over 4
46  
47 =item *
48  
49 AMD OSRC Tapper Team <tapper@amd64.org>
50  
51 =item *
52  
53 Tapper Team <tapper-ops@amazon.com>
54  
55 =back
56  
57 =head1 COPYRIGHT AND LICENSE
58  
59 This software is Copyright (c) 2019 by Advanced Micro Devices, Inc..
60  
61 This is free software, licensed under:
62  
63 The (two-clause) FreeBSD License
64  
65 =cut