blob: 4bf9e7261a7f9e9d6cc3d4f1e6b2b56fb87625f8 [file] [log] [blame]
#!/bin/bash
## ---
# This is a helper script that runs all the yaml tests for all the application clusters enabled in the RVC App.
# Run the script from the root dir.
# The script takes the node ID that the device was commissioned with.
## ---
NODEID=$1
RVC_DEVICE_ENDPOINT=1
RVC_DEVICE_PICS="examples/rvc-app/rvc-common/pics/RVC_App_Test_Plan.txt"
if [ -z "$NODEID" ]; then
echo "Usage: run_all_yaml_tests [Node ID]"
exit
fi
# RVC Clean Mode cluster
./scripts/tests/yaml/chiptool.py tests Test_TC_RVCCLEANM_1_1 --PICS "$RVC_DEVICE_PICS" --nodeId "$NODEID" --endpoint "$RVC_DEVICE_ENDPOINT" &&
# RVC Operational State cluster
./scripts/tests/yaml/chiptool.py tests Test_TC_RVCOPSTATE_1_1 --PICS "$RVC_DEVICE_PICS" --nodeId "$NODEID" --endpoint "$RVC_DEVICE_ENDPOINT" &&
./scripts/tests/yaml/chiptool.py tests Test_TC_RVCOPSTATE_2_2 --PICS "$RVC_DEVICE_PICS" --nodeId "$NODEID" --endpoint "$RVC_DEVICE_ENDPOINT" &&
# RVC Run Mode cluster
./scripts/tests/yaml/chiptool.py tests Test_TC_RVCRUNM_1_1 --PICS "$RVC_DEVICE_PICS" --nodeId "$NODEID" --endpoint "$RVC_DEVICE_ENDPOINT" &&
echo done