-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenos_config.xml
230 lines (198 loc) · 5.28 KB
/
enos_config.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<?xml version="1.0"?>
<root>
<targets_list>
<target
name="UEP_SERIAL"
ip="SERIAL_IP"
uid="root"
passw="devops123"
info="UTL test board"
>
<prolog>
<cmd>'killall -9 minicom'</cmd>
<cmd final=".">'minicom'</cmd>
<cmd final="login:" timeout_action="new_line">'exit'</cmd>
<cmd final ="Password:">'root'</cmd>
<cmd>'root'</cmd>
</prolog>
<epilog>
<cmd final=".">'echo Connection Finished'</cmd>
</epilog>
</target>
<target
name="UEP_SERIAL_RELEASE"
ip="SERIAL_IP"
uid="root"
passw="devops123"
info="UTL test board"
>
<prolog>
<cmd>'killall -9 minicom'</cmd>
</prolog>
<epilog>
<cmd final=".">'echo Connection Finished'</cmd>
</epilog>
</target>
</targets_list>
<actions_list>
<action
func= "rauc_swupdate_test_action"
name= "rauc_swupdate_test_action"
target= "UEP_BOARD"
ip="HOST_IP"
>
</action>
<action
func= "rauc_sw_update_install"
name= "rauc_sw_update_install"
target= "UEP_BOARD"
>
</action>
<action
func= "exec_cmdlist"
name= "minicom_release"
target= "UEP_SERIAL_RELEASE"
>
<cmd final=".">'echo "minicom was released'</cmd>
</action>
<action
name= "immideate_reboot"
func= "exec_cmdlist"
target= "UEP_BOARD"
>
<cmd>'sleep ' + str((int(obj.iter_num)+1)*5)</cmd>
<cmd final=".">"reboot;exit "</cmd>
</action>
<action
name= "delay_pwr_off_on"
func= "wait_pwr_down_up"
>
</action>
<action
name= "select_partition"
func= "exec_cmdlist"
target="UEP_SERIAL"
>
<cmd final="."> 'rauc status mark-active ' + obj.bank </cmd>
<cmd final="."> 'reboot ; exit' </cmd>
</action>
<action
func= "sw_update_upload"
name= "sw_update_upload"
target= "UEP_BOARD"
>
</action>
<action
func= "nps_power_down_up"
name= "power_down_up"
>
</action>
</actions_list>
<sessions_list>
<!-- Select partition -->
<session
name="SELECT_PARTITION"
timeout= "9600"
bank="recovery.0"
>
<!-- Select recovery partition and reboot -->
<action >select_partition</action>
<action>minicom_release</action>
<!--Wait for reboot complite -->
<action >alive_wait</action>
</session>
<!-- Linux SW update test in general case -->
<session
name="LINUX_SW_UPDATE_TST"
timeout= "9600"
>
<action >alive_wait</action>
<action >rauc_swupdate_test_action</action>
<action>minicom_release</action>
</session>
<!-- Linux SW update test in general case -->
<session
name="LINUX_SW_UPDATE_TST_UEP2025_131"
host = "build_VM_61"
timeout= "9600"
iterations= "3"
swupdate_file="swupdate_uep2025.raucb"
>
<session target="UEP_UEP2025_14_131">LINUX_SW_UPDATE_TST</session>
</session>
<!-- Linux SW update test race condition test -->
<session
name="LINUX_SW_UPDATE_RACE_TST"
host = "build_VM_61"
target="UEP_UTL_14_132"
timeout= "9600"
iterations= "1"
>
<action>sw_update_upload</action>
<thread_session>RANDOM_DELAY_REBOOT</thread_session>
<action>rauc_sw_update_install</action>
<action>minicom_release</action>
<action>alive_wait</action>
</session>
<!-- Linux SW update test race condition test power down up -->
<session
name="LINUX_SW_UPDATE_RACE_PWR_OFF_DOWN_TST"
host = "build_VM_61"
target="UEP_UTL_14_132"
timeout= "9600"
iterations= "3"
>
<action>sw_update_upload</action>
<thread_action>delay_pwr_off_on</thread_action>
<action>rauc_sw_update_install</action>
<action>alive_wait</action>
</session>
<!-- Linux SW update full test -->
<session
name="LINUX_SW_UPDATE_FULL_TST"
host = "build_VM_61"
timeout= "9900"
iterations= "1"
>
<session iterations= "1">SELECT_PARTITION</session>
<session iterations= "2">LINUX_SW_UPDATE_TST</session>
</session>
<session
name="LINUX_SW_UPDATE_FULL_TST_UEP2025_131"
>
<session>LINUX_SW_UPDATE_FULL_TST</session>
</session>
<!-- Linux SW update switch partitions test -->
<session
name="SWITCH_PARTITIONS_TST"
timeout= "9900"
>
<session bank= "recovery.0">SELECT_PARTITION</session>
<action>minicom_release</action>
<action>alive_wait</action>
<session bank= "rootfs.0">SELECT_PARTITION</session>
<action>minicom_release</action>
<action>alive_wait</action>
<session bank= "rootfs.1">SELECT_PARTITION</session>
<action>minicom_release</action>
<action>alive_wait</action>
</session>
<!-- Linux SW update full test -->
<session
name="LINUX_SW_PWR_OFF_UP"
timeout= "9900"
>
<action>power_down_up</action>
</session>
<!-- Wait for random time interval between start_time
and end_time attributes and then reboot -->
<session
name="RANDOM_DELAY_REBOOT"
host = "build_VM_61"
timeout= "9600"
>
<action>random_delay</action>
<action>immideate_reboot</action>
</session>
</sessions_list>
</root>