Skip to content

Commit

Permalink
Modified scripts Aug 12 (#21860)
Browse files Browse the repository at this point in the history
* Modified scripts
TC-ACL-1.1
TC-ACL-2.1
TC-ACl-2.2
TC-ACT-1.1
TC-ALOGIN-1.12
TC-BIND-1.1
TC-BINFO-1.1
TC-CC-6.1
TC-CC-6.2
TC-CC-6.3
TC-CC-8.1
TC-DGETH-1.1
TC-DGSW-1.1
TC-DGTHREAD-1.1
TC-DRLK-1.1

* Auto generated files

* Restyled by prettier-yaml

* Disabled tests which causing failure in darwin

* Auto generated files

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Feb 19, 2024
1 parent 3b51144 commit 4017435
Show file tree
Hide file tree
Showing 19 changed files with 21,580 additions and 19,152 deletions.
9 changes: 9 additions & 0 deletions examples/darwin-framework-tool/templates/tests/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ function getTests() {
// work right in the darwin tests.
tests.disable('Test_TC_CC_7_2');

// TODO: Test_TC_CC_6_2 does not work on Darwin(no ble asan) for now.
tests.disable('Test_TC_CC_6_2');

// TODO: Test_TC_CC_6_3 does not work on Darwin(no ble asan) for now.
tests.disable('Test_TC_CC_6_3');

// TODO: Test_TC_CC_8_1 does not work on Darwin(no ble asan) for now.
tests.disable('Test_TC_CC_8_1');

// TODO: Test_TC_CC_9_1 does not work on Darwin for now.
// But is disabled in CI, so we can't disable it here.
//tests.disable('Test_TC_CC_9_1');
Expand Down
38 changes: 37 additions & 1 deletion src/app/tests/suites/certification/PICS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,10 @@ PICS:
attribute?"
id: TSUIC.S.A0002

# Software Diagnostics cluster
# Software Diagnostics cluster
- label: "The metrics for high watermark related to memory consumption."
id: DGSW.S.F00

- label: "Does the device implement the SoftwareFault event?"
id: DGSW.S.E00

Expand Down Expand Up @@ -3277,6 +3280,17 @@ PICS:
- label: "Does the device implement the CarrierDetect attribute?"
id: DGETH.S.A0008

#Features
- label:
"Counts for the number of received and transmitted packets on the
ethernet interface"
id: DGETH.S.F00

- label:
"Counts for the number of errors during the reception and transmission
of packets on the ethernet interface."
id: DGETH.S.F01

#Wi-Fi Network Diagnostics Cluster
- label:
"Counts for the number of received and transmitted packets on the
Expand Down Expand Up @@ -3489,6 +3503,28 @@ PICS:
id: PSCFG.S.A0000

#Thread Network Diagnostics Cluster
#Features
- label:
"Does the DUT(server) support the Server supports the counts for the
number of received and transmitted packets feature?"
id: DGTHREAD.S.F00

- label:
"Does the DUT(server) support the Server supports the counts for the
number of errors that have occurred during the reception and
transmission feature?"
id: DGTHREAD.S.F01

- label:
"Does the DUT(server) support the Server supports the counts for
various MLE layer happenings feature?"
id: DGTHREAD.S.F02

- label:
"Does the DUT(server) support the Server supports the counts for
various MAC layer happenings feature?"
id: DGTHREAD.S.F03

#server attributes
- label: "Does the DUT-server support the channel attribute?"
id: DGTHREAD.S.A0000
Expand Down
171 changes: 64 additions & 107 deletions src/app/tests/suites/certification/Test_TC_ACL_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,120 +11,77 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default

name: 132.1.1. [TC-ACL-1.1] Global attributes
name: 133.1.1. [TC-ACL-1.1] Global attributes

PICS:
- ACL.S

config:
nodeId: 0x12344321
cluster: "Basic"
cluster: "Access Control"
endpoint: 0

tests:
- label: "TH1 commissions DUT using admin node ID N1"
verification: |
verification step to be updated.
disabled: true

- label:
"TH1 reads DUT Endpoint 0 AccessControl cluster ClusterRevision
attribute"
verification: |
./chip-tool accesscontrol read cluster-revision 1 0
Verify Successfully" ClusterRevision " on the TH(Chip-tool) Log:
[1656335651.726036][4621:4626] CHIP:DMG: SuppressResponse = true,
[1656335651.726074][4621:4626] CHIP:DMG: InteractionModelRevision = 1
[1656335651.726109][4621:4626] CHIP:DMG: }
[1656335651.726296][4621:4626] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Attribute 0x0000_FFFD DataVersion: 2658161222
[1656335651.726376][4621:4626] CHIP:TOO: ClusterRevision: 1
[1656335651.726479][4621:4626] CHIP:EM: Sending Standalone Ack for MessageCounter:42748782 on exchange 27808i
disabled: true

- label:
"TH1 reads DUT Endpoint 0 AccessControl cluster FeatureMap attribute"
verification: |
./chip-tool accesscontrol read feature-map 1 0
Verify Successfully " FeatureMap attribute " on the TH(Chip-tool) Log:
[1656335839.955385][4637:4642] CHIP:DMG:
[1656335839.955419][4637:4642] CHIP:DMG: SuppressResponse = true,
[1656335839.955453][4637:4642] CHIP:DMG: InteractionModelRevision = 1
[1656335839.955485][4637:4642] CHIP:DMG: }
[1656335839.955653][4637:4642] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Attribute 0x0000_FFFC DataVersion: 2658161222
[1656335839.955723][4637:4642] CHIP:TOO: FeatureMap: 0
[1656335839.955817][4637:4642] CHIP:EM: Sending Standalone Ack for MessageCounter:69406683 on exchange 34373i
disabled: true

- label:
"TH1 reads DUT Endpoint 0 AccessControl cluster AttributeList
attribute"
verification: |
./chip-tool accesscontrol read attribute-list 1 0
Verify Successfully"AttributeList attribute " on the TH(Chip-tool) Log:.
[1655960990.225266][2516:2521] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Attribute 0x0000_FFFB DataVersion: 477297741
[1655960990.225364][2516:2521] CHIP:TOO: AttributeList: 10 entries
[1655960990.225406][2516:2521] CHIP:TOO: [1]: 0
[1655960990.225441][2516:2521] CHIP:TOO: [2]: 1
[1655960990.225474][2516:2521] CHIP:TOO: [3]: 2
[1655960990.225507][2516:2521] CHIP:TOO: [4]: 3
[1655960990.225540][2516:2521] CHIP:TOO: [5]: 4
[1655960990.225575][2516:2521] CHIP:TOO: [6]: 65528
[1655960990.225609][2516:2521] CHIP:TOO: [7]: 65529
[1655960990.225643][2516:2521] CHIP:TOO: [8]: 65531
[1655960990.225677][2516:2521] CHIP:TOO: [9]: 65532
[1655960990.225710][2516:2521] CHIP:TOO: [10]: 65533
disabled: true

- label:
"TH1 reads DUT Endpoint 0 AccessControl cluster EventList attribute"
verification: |
Out of scope for V1.0
disabled: true

- label:
"TH1 reads DUT Endpoint 0 AccessControl cluster AcceptedCommandList
attribute"
verification: |
./chip-tool accesscontrol read accepted-command-list 1 0
Verify Successfully" AcceptedCommandList attribute " on the TH(Chip-tool) Log:
[[1656478328.210742][2458:2463] CHIP:DMG:
[1656478328.210767][2458:2463] CHIP:DMG: ],
[1656478328.210799][2458:2463] CHIP:DMG:
[1656478328.210826][2458:2463] CHIP:DMG: SuppressResponse = true,
[1656478328.210853][2458:2463] CHIP:DMG: InteractionModelRevision = 1
[1656478328.210877][2458:2463] CHIP:DMG: }
[1656478328.211032][2458:2463] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Attribute 0x0000_FFF9 DataVersion: 3457122350
[1656478328.211099][2458:2463] CHIP:TOO: AcceptedCommandList: 0 entries
[1656478328.211245][2458:2463] CHIP:EM: Sending Standalone Ack for MessageCounter:163659373 on exchange 15270i
[1656478328.211313][2458:2463] CHIP:IN: Prepared secure message 0xffff8a2e3958 to 0x0000000000000001 (1) of type 0x10 and protocolId (0, 0) on exchange 15270i with MessageCounter:229380798.
disabled: true

- label:
"TH1 reads DUT Endpoint 0 AccessControl cluster GeneratedCommandList
attribute"
verification: |
./chip-tool accesscontrol read generated-command-list 1 0
Verify Successfully" GeneratedCommandList attribute " on the TH(Chip-tool) Log:
[[1656478396.324314][2467:2472] CHIP:DMG:
[1656478396.324346][2467:2472] CHIP:DMG: ],
[1656478396.324386][2467:2472] CHIP:DMG:
[1656478396.324419][2467:2472] CHIP:DMG: SuppressResponse = true,
[1656478396.324453][2467:2472] CHIP:DMG: InteractionModelRevision = 1
[1656478396.324484][2467:2472] CHIP:DMG: }
[1656478396.324673][2467:2472] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Attribute 0x0000_FFF8 DataVersion: 3457122350
[1656478396.324752][2467:2472] CHIP:TOO: GeneratedCommandList: 0 entries
[1656478396.324843][2467:2472] CHIP:EM: Sending Standalone Ack for MessageCounter:73836177 on exchange 65471i
[1656478396.324920][2467:2472] CHIP:IN: Prepared secure message 0xffffab7ed958 to 0x0000000000000001 (1) of type 0x10 and protocolId (0, 0) on exchange 65471i with MessageCounter:243106706.
[1656478396.324967][2467:2472] CHIP:IN: Sending encrypted msg 0xffffab7ed958 with MessageCounter:243106706 t
disabled: true
- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId

- label: "TH reads ClusterRevision attribute from DUT"
command: "readAttribute"
attribute: "ClusterRevision"
response:
value: 1
constraints:
type: int16u

- label: "TH reads FeatureMap attribute from DUT"
command: "readAttribute"
attribute: "FeatureMap"
response:
value: 0
constraints:
type: bitmap32

- label: "TH reads AttributeList attribute from DUT"
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [0, 1, 2, 3, 4, 65528, 65529, 65531, 65532, 65533]

- label: "TH reads AcceptedCommandList attribute from DUT"
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
value: []
constraints:
type: list

- label: "TH reads GeneratedCommandList attribute from DUT"
command: "readAttribute"
attribute: "GeneratedCommandList"
response:
value: []
constraints:
type: list
#Commenting out the step EventList attribute which is out of scope for matter V1.0
#- label:
# "Read EventList attribute from the DUT and Verify that the DUT
# response provides a list of supported events."
# verification: |
# Not implemented in chip-tool
# cluster: "LogCommands"
# command: "UserPrompt"
# PICS: PICS_USER_PROMPT
# arguments:
# values:
# - name: "message"
# value: "Please enter 'y' for success"
# - name: "expectedValue"
# value: "y"
Loading

0 comments on commit 4017435

Please sign in to comment.