Skip to content

Commit 32e3f1e

Browse files
committed
fix(test): Download z-wave-stack-binaries supporting HOMEID cli
This replaces a dirty workaround, that extracted value from zpc log and not device. Origin: #92 Relate-to: Z-Wave-Alliance/z-wave-stack#732 Signed-off-by: Philippe Coval <[email protected]>
1 parent 32abc34 commit 32e3f1e

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
uses: robinraju/[email protected]
3636
with:
3737
repository: 'Z-Wave-Alliance/z-wave-stack-binaries'
38-
fileName: 'z-wave-stack-binaries-*-Linux.tar.gz'
38+
fileName: 'z-wave-stack-binaries-v25.1.0-26-g29d304ae8-Linux.tar.gz'
3939
token: ${{ secrets.GH_ZWAVE_ACCESS_TOKEN }}
4040
latest: true
4141

helper.mk

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,28 @@ test: ${build_dir}
243243

244244
check: test
245245

246+
zwa_project?=z-wave-stack-binaries
247+
zwa_rev?=25.1.0-26-g29d304a
248+
zwa_file?=${zwa_project}-${zwa_rev}-Linux.tar.gz
249+
zwa_url?=https://github.com/Z-Wave-Alliance/${zwa_project}
250+
zwa_dir?=${zwa_project}
251+
252+
${CURDIR}/tmp/${zwa_file}:
253+
@echo "TODO: https://github.com/Z-Wave-Alliance/z-wave-stack-binaries/issues/2"
254+
mkdir -p ${@D} && cd ${@D} \
255+
&& gh release download -R "${zwa_url}" --pattern "${zwa_file}"
256+
257+
${zwa_dir}: ${CURDIR}/tmp/${zwa_file}
258+
mkdir -p "$@"
259+
tar xfa "$<" -C "$@"
260+
261+
zwa/setup: ${zwa_project}
262+
ls ${zwa_project}
263+
246264
mapdir?=applications/zpc/components/dotdot_mapper/rules
247265
datastore_file?=tmp.db
248266
cache_path?=tmp/cache/ota
249-
devel/integration/test: ./scripts/tests/z-wave-stack-binaries-test.sh
267+
zwa/test: ./scripts/tests/z-wave-stack-binaries-test.sh ${zwa_dir}
250268
-reset
251269
rm -fv ${datastore_file} *.tmp
252270
mkdir -p ${cache_path}

0 commit comments

Comments
 (0)