Skip to content

Commit f104930

Browse files
david-hazi-armurutva
authored andcommitted
ci: Add Corstone315 and Object Detection app tests
Corstone-315 added to the blinky and to the ML/OTA tests too. Signed-off-by: Dávid Házi <[email protected]>
1 parent 9bca6ed commit f104930

File tree

3 files changed

+98
-4
lines changed

3 files changed

+98
-4
lines changed

.github/.cSpellWords.txt

+66
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,39 @@
11

22
AESCMAC
3+
ACAMERA
4+
Acamera
5+
acamera
36
aesni
47
AESNI
8+
AEXP
9+
aframe
510
armar
611
Armv
712
ASYM
813
BBOOL
914
blinky
1015
Blinky
1116
BWCAP
17+
CALIB
1218
cbor
1319
cborencoder
1420
cborerrorstrings
1521
cborparser
1622
cborpretty
23+
cccn
24+
CDMA
25+
cdma
1726
cffi
1827
cmac
1928
CMAC
29+
CMOS
30+
cmos
2031
CMSDK
2132
cmsis
2233
CMSIS
2334
CMSIS's
35+
COEF
36+
coef
2437
compatibil
2538
coremqtt
2639
COSE
@@ -30,13 +43,20 @@ DACTIVATION
3043
DARM
3144
DCMAKE
3245
DCONFIG
46+
DECOMPANDER
47+
decompander
48+
DEMOSAIC
49+
Demosaic
50+
demosaic
3351
demultiplexing
3452
DETHOS
3553
DETHOSU
3654
DFLASH
55+
dgain
3756
dgst
3857
DMCUBOOT
3958
docuemnt
59+
DONGWOON
4060
DPLATFORM
4161
DPROJECT
4262
drbg
@@ -51,20 +71,34 @@ ecdh
5171
ECDH
5272
ECKEY
5373
endpointid
74+
evlog
75+
EVTOLUX
76+
evtolux
5477
FIFOS
5578
fftr
5679
fftwrap
5780
fsanitize
5881
FVPs
82+
fwmem
83+
GBRG
5984
gemmlowp
85+
GLCD
6086
GPIO
6187
havege
88+
HDLCD
89+
Hdlcd
90+
hdlcd
6291
hkdf
6392
HKDF
93+
ICSR
6494
IDAQAB
6595
indet
6696
inkey
97+
ioremap
6798
iotdeviceadvisor
99+
iounmap
100+
IRIDIX
101+
iridix
68102
IRQN
69103
ISRAM
70104
istty
@@ -81,6 +115,10 @@ libspeexdsp
81115
Libseepx
82116
LLMNR
83117
lltoa
118+
luma
119+
LUTS
120+
luts
121+
MACROFIED
84122
MAXR
85123
MAXW
86124
MAXRW
@@ -103,6 +141,8 @@ MQTT's
103141
mqttexample
104142
MVEI
105143
Mzrdfkvi
144+
nents
145+
NIOS
106146
NSPE
107147
NVIC
108148
Onoa
@@ -121,13 +161,22 @@ ppuc
121161
prepoccessor
122162
pyelftools
123163
pyproject
164+
QADD
165+
QDADD
166+
QDSUB
124167
QSPI
125168
Retarget
126169
Rfbo
127170
RIHN
128171
RLATENCY
172+
RGBG
173+
rgbg
174+
RGGB
175+
rggb
176+
ROHM
129177
RSAES
130178
RSASSA
179+
rtrack
131180
SBCON
132181
SECP
133182
sntp
@@ -141,20 +190,37 @@ srecord
141190
srtp
142191
SRTP
143192
SSRAM
193+
SSSZ
144194
suppr
145195
SYSWDOG
196+
TALGORITHMS
197+
TGENERAL
198+
THEIGHT
146199
tinycbor
147200
tinycbor's
148201
TINYCBOR
202+
TISP
149203
tpip
150204
TPIP
151205
TRNG
206+
TSCENE
207+
TSENSOR
208+
TSYSTEM
209+
TWIDTH
210+
UARTTX
152211
UDBL
212+
umean
153213
uncrustify
154214
unusued
155215
USART
216+
UYVY
217+
VCLK
218+
VECTACTIVE
156219
venv
220+
vmean
157221
vsocket
222+
WGHT
223+
wght
158224
WLATENCY
159225
xtea
160226
zeroize

.github/workflows/build.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ jobs:
2222
runs-on: ubuntu-latest
2323
strategy:
2424
matrix:
25-
application: [keyword-detection, speech-recognition]
25+
application: [keyword-detection, speech-recognition, object-detection]
2626
audio: [ROM, VSI]
2727
inference: [ETHOS, SOFTWARE]
2828
exclude:
2929
- application: speech-recognition
3030
inference: SOFTWARE
31+
- application: object-detection
32+
audio: VSI
3133
steps:
3234
- name: Checkout project
3335
uses: actions/checkout@v3
@@ -44,7 +46,7 @@ jobs:
4446
- name: Install build dependencies
4547
shell: bash
4648
run: |
47-
pip install cmake ninja imgtool cffi intelhex cbor2 cbor jinja2 PyYaml pyelftools
49+
pip install cmake ninja imgtool cffi intelhex cbor2 cbor jinja2 PyYaml pyelftools pyhsslms
4850
sudo apt-get -y update
4951
sudo apt-get -y install srecord libsndfile1-dev
5052
- name: Install GNU Arm toolchain

.gitlab-ci.yml

+28-2
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,20 @@ variables:
2020
# Those fragments contain base variables required by pipelines for applications.
2121
# They can be used to set matrix parameters and extended using << : .anchor syntax
2222
.pipeline_config_non_ml_applications: &pipeline_config_non_ml_applications
23-
TARGET: [corstone310, corstone300]
23+
TARGET: [corstone315, corstone310, corstone300]
2424
TOOLCHAIN: [ARMCLANG, GNU]
2525
INFERENCE: [ETHOS]
2626
AUDIO: [ROM]
2727
.pipeline_config_ml_applications: &pipeline_config_ml_applications
28-
TARGET: [corstone310, corstone300]
28+
TARGET: [corstone315, corstone310, corstone300]
2929
TOOLCHAIN: [ARMCLANG, GNU]
3030
AUDIO: [ROM, VSI]
31+
.pipeline_config_object_detection_applications: &pipeline_config_object_detection_applications
32+
TARGET: [corstone315]
33+
TOOLCHAIN: [ARMCLANG, GNU]
34+
INFERENCE: [ETHOS, SOFTWARE]
35+
AUDIO: [ROM]
36+
APP: [object-detection]
3137

3238
stages:
3339
- quality-check
@@ -58,10 +64,15 @@ workflow:
5864
if [ $TARGET == "corstone310" ];then
5965
FVP_BIN=FVP_Corstone_SSE-310
6066
fi
67+
- |
68+
if [ $TARGET == "corstone315" ];then
69+
FVP_BIN=FVP_Corstone_SSE-315
70+
fi
6171
parallel:
6272
matrix:
6373
- *pipeline_config_non_ml_applications
6474
- *pipeline_config_ml_applications
75+
- *pipeline_config_object_detection_applications
6576
variables:
6677
PYTHONUNBUFFERED: 1
6778

@@ -115,6 +126,8 @@ build-applications:
115126
<< : *pipeline_config_ml_applications
116127
APP: [speech-recognition]
117128
INFERENCE: [ETHOS]
129+
-
130+
<< : *pipeline_config_object_detection_applications
118131

119132
artifacts:
120133
paths:
@@ -164,6 +177,17 @@ test-applications:
164177
--pass-output-file "applications/${APP_UNDERSCORED}/tests/pass_output.log" \
165178
--fail-output-file "applications/${APP_UNDERSCORED}/tests/fail_output.log" \
166179
--pythonhome-path "/opt/python/3.9.18"
180+
elif [[ $APP == "object-detection" ]]; then
181+
pytest -s tools/tests/test_applications.py \
182+
--frm-file-path "applications/${APP_UNDERSCORED}/resources/test.frm" \
183+
--build-artefacts-path "build" \
184+
--fvp $FVP_BIN \
185+
--credentials-path "applications/${APP_UNDERSCORED}/configs/aws_configs" \
186+
--merged-elf-name "${APP}_merged.elf" \
187+
--signed-update-bin-name "${APP}-update_signed.bin" \
188+
--timeout-seconds 1800 \
189+
--pass-output-file "applications/${APP_UNDERSCORED}/tests/pass_output.log" \
190+
--fail-output-file "applications/${APP_UNDERSCORED}/tests/fail_output.log"
167191
else
168192
pytest -s tools/tests/test_applications.py \
169193
--build-artefacts-path "build" \
@@ -185,6 +209,8 @@ test-applications:
185209
<< : *pipeline_config_ml_applications
186210
APP: [speech-recognition]
187211
INFERENCE: [ETHOS]
212+
-
213+
<< : *pipeline_config_object_detection_applications
188214

189215
integration-tests:
190216
stage: test

0 commit comments

Comments
 (0)