Skip to content

Commit 96af010

Browse files
committed
test: Add s2v2 test (checking for NLS)
Notes this change should be adapted to provide a MQTT response, once NLS is enabled on device, for zpc output (in debug mode) is checked. Origin: SiliconLabsSoftware#86 Relate-to: SiliconLabsSoftware/z-wave-engine-application-layer#31 Signed-off-by: Philippe Coval <[email protected]>
1 parent 5d4ab1b commit 96af010

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

scripts/tests/z-wave-stack-binaries-test.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,29 @@ play_uic_node_OnOff_()
468468
}
469469

470470

471+
play_uic_s2v2_node_()
472+
{
473+
type="OnOff"
474+
node_cli_ H
475+
node_cli_ n
476+
echo "info: Play $type on $nodeunid"
477+
478+
command="EnableNls"
479+
pub="ucl/by-unid/$nodeunid/State/Commands/$command"
480+
message="{}"
481+
log_ "TODO: Expect response in MQTT, workaround by looking at debug log"
482+
log_ "TODO: https://github.com/SiliconLabsSoftware/z-wave-engine-application-layer/issues/31"
483+
pub_ "$pub" "$message" ""
484+
sleep 1
485+
grep 'on_nls_state_set_v2_send_complete' "${zpc_log}" || die_
486+
grep 'on_nls_state_get_v2_send_complete' "${zpc_log}" || die_
487+
zpc_cli_ "attribute_store_log_search" "NLS state" \
488+
&& grep 'NLS state ............................................... 1 ' \
489+
"${zpc_log}" \
490+
|| die_ # 2 expected
491+
}
492+
493+
471494
play_uic_()
472495
{
473496
play_uic_net_add_node_
@@ -476,6 +499,11 @@ play_uic_()
476499
play_uic_net_add_node_
477500
play_uic_node_OnOff_
478501
play_uic_net_remove_node_
502+
503+
play_uic_net_add_node_
504+
play_uic_s2v2_node_
505+
play_uic_OnOff_node_
506+
play_uic_net_remove_node_
479507
}
480508

481509

0 commit comments

Comments
 (0)