Skip to content
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ name = "commissioner_tests"
[[bin]]
name = "dimmable_light"

[[bin]]
name = "scenes_tests"

[[bin]]
name = "webrtc_camera"
required-features = ["webrtc"]
Expand Down
152 changes: 152 additions & 0 deletions examples/src/bin/scenes_tests.pics
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
PICS_SDK_CI_ONLY=1
# Top-level gates required by the `TestScenesFabricSceneInfo` /
# `TestScenesMultiFabric` / `TestScenesMaxCapacity` / `TestScenesFabricRemoval`
# composite suites — the test framework skips them entirely if absent.
MCORE.ROLE.COMMISSIONEE=1
APPDEVICE.S=1

# PICS values to be used when running the `scenes_tests` executable.
# This is a superset of `dimmable_light.pics` (OnOff + LevelControl)
# plus the Scenes Management cluster on EP1 and the
# Groups / GroupKeyManagement clusters needed to set up the multicast
# group plumbing the `Test_TC_S_*` certification tests exercise.

# Groups Cluster (EP1, server) — Scenes tests use AddGroup/RemoveGroup
# in their fixture setup.
G.S=1
G.S.F00=1
G.S.A0000=0
G.S.C00.Rsp=1
G.S.C01.Rsp=1
G.S.C02.Rsp=1
G.S.C03.Rsp=1
G.S.C04.Rsp=1
G.S.C05.Rsp=0
G.S.C00.Tx=1
G.S.C01.Tx=1
G.S.C02.Tx=1
G.S.C03.Tx=1
G.C=1
G.C.A0000=0
G.C.C00.Tx=1
G.C.C01.Tx=0
G.C.C02.Tx=0
G.C.C03.Tx=0
G.C.C04.Tx=0
G.C.C05.Tx=0

# GroupKeyManagement Cluster (EP0, server) — required for KeySetWrite +
# WriteGroupKeyMap, which the Scenes tests' Step 0b/0c rely on.
GRPKEY.S=1
GRPKEY.S.F00=0
GRPKEY.S.A0000=1
GRPKEY.S.A0001=1
GRPKEY.S.A0002=1
GRPKEY.S.A0003=1
GRPKEY.S.C00.Rsp=1
GRPKEY.S.C01.Rsp=1
GRPKEY.S.C02.Tx=1
GRPKEY.S.C03.Rsp=1
GRPKEY.S.C04.Rsp=1
GRPKEY.S.C05.Tx=1
GRPKEY.C=1
GRPKEY.C.A0000=1
GRPKEY.C.A0001=0
GRPKEY.C.C00.Tx=1
GRPKEY.C.C01.Tx=1

# Scenes Management Cluster (server, EP1)
# `S.S.AM` and `S.S.AO` are mutually exclusive with the Action / Object
# feature subsets; we don't implement those, so leave them off.
S.S=1
S.S.A0001=1
S.S.A0002=1
S.S.A0007=1 # FabricSceneInfo — read in TestScenesFabricSceneInfo
S.S.C00.Rsp=1 # AddScene
S.S.C01.Rsp=1 # ViewScene
S.S.C02.Rsp=1 # RemoveScene
S.S.C03.Rsp=1 # RemoveAllScenes
S.S.C04.Rsp=1 # StoreScene
S.S.C05.Rsp=1 # RecallScene
S.S.C06.Rsp=1 # GetSceneMembership
S.S.C40.Rsp=1 # CopyScene (Optional but exposed for TestScenesMultiFabric / TestScenesMaxCapacity)
S.S.AM=0
S.S.AO=0
S.S.F00=0 # SceneNames feature — accepted on wire but not stored; see scenes.rs module docs
S.S.F03=1 # SceneTable feature — gated by TestScenesFabricSceneInfo
S.C=0
S.C.C00.Tx=0
S.C.C01.Tx=0
S.C.C02.Tx=0
S.C.C03.Tx=0
S.C.C04.Tx=0
S.C.C05.Tx=0
S.C.C06.Tx=0
S.C.C40.Tx=0
S.C.AM-READ=0

# Level Control Cluster
LVL.S=1
LVL.S.F00=1
LVL.S.F01=1
LVL.S.F02=0
LVL.S.A0000=1
LVL.S.A0001=1
LVL.S.A0002=1
LVL.S.A0003=1
LVL.S.A0005=0
LVL.S.A0004=0
LVL.S.A0006=0
LVL.S.A000f=1
LVL.S.A0010=1
LVL.S.A0011=1
LVL.S.A0012=1
LVL.S.A0013=1
LVL.S.A0014=1
LVL.S.A4000=1
LVL.S.C00.Rsp=1
LVL.S.C01.Rsp=1
LVL.S.C02.Rsp=1
LVL.S.C03.Rsp=1
LVL.S.C04.Rsp=1
LVL.S.C05.Rsp=1
LVL.S.C06.Rsp=1
LVL.S.C07.Rsp=1
LVL.S.C08.Rsp=0
LVL.S.M.VarRate=1

LVL.C=0
LVL.C.AM-READ=0
LVL.C.AM-WRITE=0
LVL.C.AO-READ=0
LVL.C.AO-WRITE=0

# On/Off Cluster
OO.S=1
OO.S.A0000=1
OO.S.A4000=1
OO.S.A4001=1
OO.S.A4002=1
OO.S.A4003=1
OO.S.C00.Rsp=1
OO.S.C01.Rsp=1
OO.S.C02.Rsp=1
OO.S.C40.Rsp=1
OO.S.C41.Rsp=0
OO.S.C42.Rsp=1
OO.S.F00=1
OO.S.F01=0
OO.S.F02=0
OO.M.ManuallyControlled=1

OO.C=0
OO.C.C00.Tx=0
OO.C.C01.Tx=0
OO.C.C02.Tx=0
OO.C.C40.Tx=0
OO.C.C41.Tx=0
OO.C.C42.Tx=0
OO.C.AM-READ=0
OO.C.AM-WRITE=0
OO.C.AO-READ=0
OO.C.AO-WRITE=0
Loading
Loading