line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TAPPER'; |
2
|
|
|
|
|
|
|
$Tapper::Installer::Precondition::Simnow::VERSION = '5.0.1'; |
3
|
|
|
|
|
|
|
use Moose; |
4
|
4
|
|
|
4
|
|
126602
|
use common::sense; |
|
4
|
|
|
|
|
459663
|
|
|
4
|
|
|
|
|
22
|
|
5
|
4
|
|
|
4
|
|
23425
|
|
|
4
|
|
|
|
|
19
|
|
|
4
|
|
|
|
|
28
|
|
6
|
|
|
|
|
|
|
use Tapper::Installer::Precondition::PRC; |
7
|
4
|
|
|
4
|
|
669
|
use YAML; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
121
|
|
8
|
4
|
|
|
4
|
|
30
|
|
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
1051
|
|
9
|
|
|
|
|
|
|
extends 'Tapper::Installer::Precondition'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
{ |
15
|
|
|
|
|
|
|
my ($self, $config) = @_; |
16
|
|
|
|
|
|
|
my $simnow_script = $config->{files}{simnow_script} || 'startup.simnow'; |
17
|
1
|
|
|
1
|
1
|
3
|
$config->{files}{simnow_script} = $config->{paths}{simnow_path}."/scripts/$simnow_script"; |
18
|
1
|
|
50
|
|
|
6
|
return $config; |
19
|
1
|
|
|
|
|
5
|
} |
20
|
1
|
|
|
|
|
2
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
{ |
25
|
|
|
|
|
|
|
my ($self, $simnow) = @_; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
my $config; |
28
|
1
|
|
|
1
|
1
|
13
|
my $prc = Tapper::Installer::Precondition::PRC->new($self->cfg); |
29
|
|
|
|
|
|
|
$config = $prc->create_common_config(); |
30
|
1
|
|
|
|
|
2
|
$config = $self->create_simnow_config($config); |
31
|
1
|
|
|
|
|
31
|
|
32
|
1
|
|
|
|
|
9
|
my $config_file = $self->cfg->{files}{simnow_config}; |
33
|
1
|
|
|
|
|
6
|
|
34
|
|
|
|
|
|
|
YAML::DumpFile($config_file, $config); |
35
|
1
|
|
|
|
|
28
|
|
36
|
|
|
|
|
|
|
return 0; |
37
|
1
|
|
|
|
|
7
|
} |
38
|
|
|
|
|
|
|
|
39
|
1
|
|
|
|
|
14270
|
|
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=pod |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=encoding UTF-8 |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 NAME |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Tapper::Installer::Precondition::Simnow |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 SYNOPSIS |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
use Tapper::Installer::Precondition::Simnow; |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 NAME |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Tapper::Installer::Precondition::Simnow - Generate configs for Simnow |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 FUNCTIONS |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head2 create_simnow_config |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head2 install |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Install the tools used to control running of programs on the test |
66
|
|
|
|
|
|
|
system. This function is implemented to fullfill the needs of kernel |
67
|
|
|
|
|
|
|
testing and is likely to change dramatically in the future due to |
68
|
|
|
|
|
|
|
limited extensibility. Furthermore, it has the name of the PRC hard |
69
|
|
|
|
|
|
|
coded which isn't a good thing either. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
@param hash ref - contains all information about the simnow instance |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
@return success - 0 |
74
|
|
|
|
|
|
|
@return error - error string |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 AUTHOR |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
AMD OSRC Tapper Team, C<< <tapper at amd64.org> >> |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=head1 BUGS |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
None. |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head1 SUPPORT |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
You can find documentation for this module with the perldoc command. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
perldoc Tapper |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head1 ACKNOWLEDGEMENTS |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
Copyright 2008-2011 AMD OSRC Tapper Team, all rights reserved. |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
This program is released under the following license: freebsd |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=head1 AUTHORS |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=over 4 |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=item * |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
AMD OSRC Tapper Team <tapper@amd64.org> |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=item * |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
Tapper Team <tapper-ops@amazon.com> |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=back |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
This software is Copyright (c) 2022 by Advanced Micro Devices, Inc. |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
This is free software, licensed under: |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
The (two-clause) FreeBSD License |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
=cut |