Skip to content

Commit bcbf5b3

Browse files
cherrypick-dbe192d (#22853)
Fixes #22648 Fixes issues: #561, #562 Modified scripts TSTAT-2.1 TSTAT-2.2 ACL-2.2 APPLAUNCHER-3.8 AUDIOOUTPUT-1.8 Added auto generated files Co-authored-by: Andrei Litvin <andy314@gmail.com>
1 parent 171cf77 commit bcbf5b3

File tree

8 files changed

+3291
-6581
lines changed

8 files changed

+3291
-6581
lines changed

examples/darwin-framework-tool/templates/tests/ciTests.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
"Test_TC_BINFO_2_1",
2121
"Test_TC_SWTCH_2_1",
2222
"Test_TC_G_2_1",
23-
"Test_TC_FLABEL_2_1"
23+
"Test_TC_FLABEL_2_1",
24+
"Test_TC_TSTAT_2_1",
25+
"Test_TC_TSTAT_2_2"
2426
]
2527
}

src/app/tests/suites/certification/Test_TC_ACL_2_2.yaml

+66-8
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,72 @@ tests:
4242
type: list
4343
contains: [31]
4444

45+
#Endpoint configuration is not supported in YAML
4546
- label:
4647
"TH1 reads DUT Descriptor cluster ServerList attribute from every
4748
Endpoint except 0"
48-
command: "readAttribute"
49-
cluster: "Descriptor"
50-
endpoint: 1
51-
attribute: "server list"
52-
response:
53-
constraints:
54-
type: list
55-
excludes: [31]
49+
verification: |
50+
./chip-tool descriptor read server-list 1 1
51+
52+
53+
On TH1(Chiptool) ,Verify the serverList attribute of Descriptor Cluster without an element of 31( 0x001F)
54+
55+
[1656412927.698026][3383:3388] CHIP:DMG: SuppressResponse = true,
56+
[1656412927.698052][3383:3388] CHIP:DMG: InteractionModelRevision = 1
57+
[1656412927.698076][3383:3388] CHIP:DMG: }
58+
[1656412927.698852][3383:3388] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_0001 DataVersion: 239898735
59+
[1656412927.698963][3383:3388] CHIP:TOO: server list: 44 entries
60+
[1656412927.698997][3383:3388] CHIP:TOO: [1]: 3
61+
[1656412927.699023][3383:3388] CHIP:TOO: [2]: 4
62+
[1656412927.699050][3383:3388] CHIP:TOO: [3]: 5
63+
[1656412927.699075][3383:3388] CHIP:TOO: [4]: 6
64+
[1656412927.699101][3383:3388] CHIP:TOO: [5]: 7
65+
[1656412927.699127][3383:3388] CHIP:TOO: [6]: 8
66+
[1656412927.699153][3383:3388] CHIP:TOO: [7]: 15
67+
[1656412927.699179][3383:3388] CHIP:TOO: [8]: 29
68+
[1656412927.699205][3383:3388] CHIP:TOO: [9]: 30
69+
[1656412927.699231][3383:3388] CHIP:TOO: [10]: 37
70+
[1656412927.699258][3383:3388] CHIP:TOO: [11]: 47
71+
[1656412927.699284][3383:3388] CHIP:TOO: [12]: 59
72+
[1656412927.699310][3383:3388] CHIP:TOO: [13]: 64
73+
[1656412927.699336][3383:3388] CHIP:TOO: [14]: 65
74+
[1656412927.699361][3383:3388] CHIP:TOO: [15]: 69
75+
[1656412927.699387][3383:3388] CHIP:TOO: [16]: 80
76+
[1656412927.699414][3383:3388] CHIP:TOO: [17]: 257
77+
[1656412927.699440][3383:3388] CHIP:TOO: [18]: 258
78+
[1656412927.699466][3383:3388] CHIP:TOO: [19]: 259
79+
[1656412927.699492][3383:3388] CHIP:TOO: [20]: 512
80+
[1656412927.699518][3383:3388] CHIP:TOO: [21]: 513
81+
[1656412927.699544][3383:3388] CHIP:TOO: [22]: 514
82+
[1656412927.699571][3383:3388] CHIP:TOO: [23]: 516
83+
[1656412927.699596][3383:3388] CHIP:TOO: [24]: 768
84+
[1656412927.699623][3383:3388] CHIP:TOO: [25]: 1024
85+
[1656412927.699649][3383:3388] CHIP:TOO: [26]: 1026
86+
[1656412927.699675][3383:3388] CHIP:TOO: [27]: 1027
87+
[1656412927.699701][3383:3388] CHIP:TOO: [28]: 1028
88+
[1656412927.699727][3383:3388] CHIP:TOO: [29]: 1029
89+
[1656412927.699754][3383:3388] CHIP:TOO: [30]: 1030
90+
[1656412927.699780][3383:3388] CHIP:TOO: [31]: 1283
91+
[1656412927.699806][3383:3388] CHIP:TOO: [32]: 1284
92+
[1656412927.699832][3383:3388] CHIP:TOO: [33]: 1285
93+
[1656412927.699858][3383:3388] CHIP:TOO: [34]: 1286
94+
[1656412927.699884][3383:3388] CHIP:TOO: [35]: 1287
95+
[1656412927.699911][3383:3388] CHIP:TOO: [36]: 1288
96+
[1656412927.699937][3383:3388] CHIP:TOO: [37]: 1289
97+
[1656412927.699963][3383:3388] CHIP:TOO: [38]: 1290
98+
[1656412927.700002][3383:3388] CHIP:TOO: [39]: 1291
99+
[1656412927.700029][3383:3388] CHIP:TOO: [40]: 1292
100+
[1656412927.700056][3383:3388] CHIP:TOO: [41]: 1293
101+
[1656412927.700082][3383:3388] CHIP:TOO: [42]: 1294
102+
[1656412927.700108][3383:3388] CHIP:TOO: [43]: 2820
103+
[1656412927.700134][3383:3388] CHIP:TOO: [44]: 4294048773
104+
[1656412927.700251][3383:3388] CHIP:EM: Sending Standalone Ack for MessageCounter:186152197 on exchange 39489i
105+
cluster: "LogCommands"
106+
command: "UserPrompt"
107+
PICS: PICS_USER_PROMPT
108+
arguments:
109+
values:
110+
- name: "message"
111+
value: "Factory Reset the DUT and enter 'y' after success"
112+
- name: "expectedValue"
113+
value: "y"

src/app/tests/suites/certification/Test_TC_APPLAUNCHER_3_8.yaml

+21-6
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,25 @@ tests:
5353
- name: "status"
5454
value: 0
5555

56+
#Endpoint configuration is not supported in YAML
5657
- label: "Reads the Status attribute"
57-
cluster: "Application Basic"
58-
endpoint: 3
59-
command: "readAttribute"
60-
attribute: "Status"
61-
response:
62-
value: 0
58+
PICS: PICS_USER_PROMPT
59+
verification: |
60+
The TH commands for this test step can be invoked using chip-tool (when DUT is a commissionee) or tv-casting-app (when DUT is a commissioner):
61+
./chip-tool applicationbasic read status 1 3
62+
./chip-tv-casting-app applicationbasic read status 1 3
63+
64+
On TH verify that the Status attribute value as 0
65+
[1658208937.049446][2428:2433] CHIP:DMG: InteractionModelRevision = 1
66+
[1658208937.049483][2428:2433] CHIP:DMG: }
67+
[1658208937.049690][2428:2433] CHIP:TOO: Endpoint: 3 Cluster: 0x0000_050D Attribute 0x0000_0005 DataVersion: 3850684771
68+
[1658208937.049809][2428:2433] CHIP:TOO: Status: 0
69+
[1658208937.049922][2428:2433] CHIP:EM: Sending Standalone Ack for MessageCounter:75774840 on exchange 3041i
70+
cluster: "LogCommands"
71+
command: "UserPrompt"
72+
arguments:
73+
values:
74+
- name: "message"
75+
value: "Please enter 'y' after success"
76+
- name: "expectedValue"
77+
value: "y"

src/app/tests/suites/certification/Test_TC_AUDIOOUTPUT_1_8.yaml

-10
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,6 @@ tests:
6767
contains: [0]
6868

6969
- label: "Read the global attribute: GeneratedCommandList"
70-
PICS: AUDIOOUTPUT.S.NU
71-
command: "readAttribute"
72-
attribute: "GeneratedCommandList"
73-
response:
74-
value: [1]
75-
constraints:
76-
type: list
77-
78-
- label: "Read the global attribute: GeneratedCommandList"
79-
PICS: " !AUDIOOUTPUT.S.NU "
8070
command: "readAttribute"
8171
attribute: "GeneratedCommandList"
8272
response:

0 commit comments

Comments
 (0)