-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract OnOff cluster definition from general.xml and zll.xml #8330
Extract OnOff cluster definition from general.xml and zll.xml #8330
Conversation
@vivien-apple The darwin test failure looks real? |
… it into its own file and reformat it to make it easier to read when comparing to the spec
…the Cluster Revision change
…ramework/CHIP/templates
9873a57
to
6b109e7
Compare
Correct. There was a missing macro at https://github.com/project-chip/connectedhomeip/blob/master/src/darwin/Framework/CHIP/templates/partials/test_cluster.zapt#L12 I have added it and in the same time I replaced |
…t-chip#8330) * Extract OnOff cluster definition from general.xml and zll.xml to have it into its own file and reformat it to make it easier to read when comparing to the spec * Update some attributes name into the tests file to match the name update in onoff.xml * Update zap files to takes into account the names changes, as well as the Cluster Revision change * Use as[Upper/Lower]CamelCase instead of asCamelCased for src/darwin/Framework/CHIP/templates * Update gen/ folders
Problem
The OnOff cluster definition from Silabs is defined in 2 separated files, and the attributes names formatting is a bit different from the spec at: https://github.com/CHIP-Specifications/connectedhomeip-spec/blob/master/src/app_clusters/OnOff.adoc
Change overview
Silabs/general.xml
andSilabs/zll.xml
and move it toChip/onoff-cluster.xml
2
to3
gen/
foldersFor reviewers, the last commit is autogenerated code from the changes in the previous commits.
Testing
I have runned
./scripts/tests/suites.sh
locally with the changes from this patch. In fact this PR is a step to add an other set of test that uses the ZLL code from https://github.com/project-chip/connectedhomeip/tree/master/src/app/clusters/zll-on-off-server that I still need to port to cpp.