Skip to content

Commit cf99d97

Browse files
committed
test: helper: Add devel/integration/test rule for developer to smoketest
This can help to test changes before ci time was mentionned twice, I am adding expect that could be used for tests Origin: #85 Relate-to: SiliconLabsSoftware/z-wave-engine-application-layer#23 Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
1 parent a64a71f commit cf99d97

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

helper.mk

+16-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ packages+=git-lfs unp time file usbutils bsdutils
3838
packages+=nlohmann-json3-dev
3939
# TODO: remove for offline build
4040
packages+=curl wget python3-pip
41-
packages+=time
41+
packages+=expect
4242

4343
# For docs
4444
packages+=graphviz
@@ -243,6 +243,21 @@ test: ${build_dir}
243243

244244
check: test
245245

246+
mapdir?=applications/zpc/components/dotdot_mapper/rules
247+
datastore_file?=tmp.db
248+
cache_path?=tmp/cache/ota
249+
devel/integration/test: ./scripts/tests/z-wave-stack-binaries-test.sh
250+
-reset
251+
rm -fv ${datastore_file} *.tmp
252+
mkdir -p ${cache_path}
253+
-pidof mosquitto
254+
ZPC_COMMAND="${run_file} \
255+
--mapdir=${mapdir} \
256+
--zpc.datastore_file=${datastore_file} \
257+
--zpc.ota.cache_path=${cache_path} \
258+
--log.level=d" \
259+
time $< # Add debug=1 to begining of this line to trace
260+
246261
dist/cmake: ${build_dir}
247262
cmake --build $< --target package
248263
cmake --build $< --target package_archive

0 commit comments

Comments
 (0)