12
12
parser .add_argument ('-n' , action = 'store_true' , help = "No force rebuild" )
13
13
parser .add_argument ('-r' , action = 'store_true' , help = "Raw results only" )
14
14
parser .add_argument ('-c' , action = 'store_true' , help = "Display cycles (so passing test are displayed)" )
15
+ parser .add_argument ('-l' , action = 'store_true' , help = "Local run (not github action)" )
15
16
16
17
args = parser .parse_args ()
17
18
19
+
18
20
DEBUG = False
19
21
if args .d :
20
22
DEBUG = True
@@ -112,9 +114,19 @@ def run(*args,mustPrint=False,dumpStdErr=True):
112
114
}
113
115
114
116
# Windows executable
115
- # (At some point this script will also support
116
- # unix)
117
- avhExe = {
117
+ avhUnixExe = {
118
+ "CS310" :"FVP_Corstone_SSE-310_Ethos-U65" ,
119
+ "CS300" :"FVP_Corstone_SSE-300_Ethos-U55" ,
120
+ "M55" :"FVP_MPS2_Cortex-M55" ,
121
+ "M33_DSP_FP" :"FVP_MPS2_Cortex-M33" ,
122
+ "M7DP" :"FVP_MPS2_Cortex-M7" ,
123
+ "M4FP" :"FVP_MPS2_Cortex-M4" ,
124
+ "M3" :"FVP_MPS2_Cortex-M3" ,
125
+ "M23" :"FVP_MPS2_Cortex-M23" ,
126
+ "M0plus" :"FVP_MPS2_Cortex-M0plus" ,
127
+ }
128
+
129
+ avhWindowsExe = {
118
130
"CS310" :"VHT_Corstone_SSE-310.exe" ,
119
131
"CS300" :"VHT_Corstone_SSE-300_Ethos-U55.exe" ,
120
132
"M55" :"VHT_MPS2_Cortex-M55.exe" ,
@@ -138,7 +150,20 @@ def runAVH(build,core):
138
150
if os .path .exists (elf ):
139
151
app = elf
140
152
config = os .path .join ("configs" ,configFiles [core ])
141
- avh = os .path .join (AVHROOT ,avhExe [core ])
153
+
154
+ if AVHROOT :
155
+ avhAttempt = os .path .join (AVHROOT ,avhWindowsExe [core ])
156
+ if os .path .exists (avhAttempt ):
157
+ avh = avhAttempt
158
+
159
+ avhAttempt = os .path .join (AVHROOT ,avhUnixExe [core ])
160
+ if os .path .exists (avhAttempt ):
161
+ avh = avhAttempt
162
+ else :
163
+ avh = avhUnixExe [core ]
164
+
165
+
166
+
142
167
res = run (avh ,"-f" ,config ,app )
143
168
return (res )
144
169
@@ -160,50 +185,14 @@ def runAVH(build,core):
160
185
# Test suite and output pickle needed to decode the result
161
186
#print(allSuites)
162
187
163
- #allSuites=[
164
- #("MFCCQ15","../Output.pickle"),
165
- #("MFCCQ31","../Output.pickle"),
166
- #("SupportTestsF16","../Output_f16.pickle"),
167
- #]
168
188
169
- #allSuites=[("ComplexTestsF32","../Output.pickle"),
170
- #("DistanceTestsF32","../Output.pickle"),
171
- #("UnaryTestsF32","../Output.pickle"),
172
- #("QuaternionTestsF32","../Output.pickle"),
173
- #("StatsTestsF32","../Output.pickle")
174
- #]
175
189
176
190
#allSuites=[
177
- #("TransformCF64","../Output.pickle"),
178
- #("TransformCF32","../Output.pickle"),
179
- #("TransformCQ31","../Output.pickle"),
180
- #("TransformCQ15","../Output.pickle"),
181
- #
182
- #("TransformRF64","../Output.pickle"),
183
- #("TransformRF32","../Output.pickle"),
184
- #("TransformRQ31","../Output.pickle"),
185
- #("TransformRQ15","../Output.pickle"),
186
- #
187
- #("MFCCF32","../Output.pickle"),
188
- #("MFCCQ31","../Output.pickle"),
189
- #("MFCCQ15","../Output.pickle"),
190
- #
191
- #("MFCCF16","../Output_f16.pickle"),
192
- #("TransformCF16","../Output_f16.pickle"),
193
- #("TransformRF16","../Output_f16.pickle")
191
+ #("DECIMF64","../Output.pickle"),
192
+ #("UnaryTestsF32","../Output.pickle"),
193
+ #("UnaryTestsF16","../Output_f16.pickle"),
194
194
#]
195
195
196
- #allSuites=[("StatsTestsQ7","../Output.pickle")]
197
-
198
- allSuites = [
199
- ("UnaryTestsF64" ,"../Output.pickle" ),
200
- ("UnaryTestsF32" ,"../Output.pickle" ),
201
- ("UnaryTestsF16" ,"../Output_f16.pickle" ),
202
- #("MISCQ15","../Output.pickle"),
203
- #("MISCQ7","../Output.pickle"),
204
- #("FIRF16","../Output_f16.pickle")
205
- ]
206
-
207
196
# Solution and build file for all
208
197
# the tests
209
198
# It is a pair : csolution target type and AVH identification
@@ -213,7 +202,7 @@ def runAVH(build,core):
213
202
'test_ac6.csolution.yml' :[
214
203
# ("VHT-Corstone-310","CS310"),
215
204
("VHT-Corstone-300" ,"CS300" ),
216
- # ("VHT-Corstone-300-NOMVE","CS300"),
205
+ ("VHT-Corstone-300-NOMVE" ,"CS300" ),
217
206
("VHT_M33" ,"M33_DSP_FP" ),
218
207
("VHT_M7" ,"M7DP" ),
219
208
("VHT_M7_UNROLLED" ,"M7DP" ),
@@ -222,24 +211,31 @@ def runAVH(build,core):
222
211
# #("VHT_M23","M23"),
223
212
("VHT_M0P" ,"M0plus" )
224
213
],
225
- 'test_gcc.csolution.yml' :[
226
- # ("VHT-Corstone-310 ","CS310 "),
214
+ # 'test_gcc.csolution.yml':[
215
+ # ("VHT-Corstone-300 ","CS300 "),
227
216
#("VHT_M55","M55"),
228
217
##("VHT_M33","M33_DSP_FP"),
229
- ("VHT_M7" ,"M7DP" ),
230
- ("VHT_M7_UNROLLED" ,"M7DP" ),
231
- ("VHT_M4" ,"M4FP" ),
218
+ # ("VHT_M7","M7DP"),
219
+ # ("VHT_M7_UNROLLED","M7DP"),
220
+ # ("VHT_M4","M4FP"),
232
221
##("VHT_M3","M3"),
233
222
##("VHT_M23","M23"),
234
- ("VHT_M0P" ,"M0plus" )
235
- ]
223
+ # ("VHT_M0P","M0plus")
224
+ # ]
236
225
}
237
226
238
227
# Override previous solutions for more restricted testing.
239
228
#solutions={
240
229
# 'test_ac6.csolution.yml':[
241
- # #("VHT-Corstone-300","CS300"),
242
- # ("VHT_M7_UNROLLED","M7DP"),
230
+ # ("VHT-Corstone-300","CS300"),
231
+ # #("VHT_M7_UNROLLED","M7DP"),
232
+ # ]
233
+ #}
234
+ #
235
+ #solutions={
236
+ # 'test_gcc.csolution.yml':[
237
+ # ("VHT-Corstone-300","CS300"),
238
+ # #("VHT_M7_UNROLLED","M7DP"),
243
239
# ]
244
240
#}
245
241
@@ -336,7 +332,8 @@ def runAVH(build,core):
336
332
print (res .msg ,file = f )
337
333
print (HTMLFOOTER ,file = f )
338
334
339
- if ERROR_OCCURED :
340
- sys .exit ("Error occurred" )
341
- else :
342
- sys .exit (0 )
335
+ if args .l :
336
+ if ERROR_OCCURED :
337
+ sys .exit ("Error occurred" )
338
+ else :
339
+ sys .exit (0 )
0 commit comments