Skip to content
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

Python testing: Add PICS, helpers, and tests #26399

Merged
merged 5 commits into from
May 11, 2023

Conversation

cecille
Copy link
Contributor

@cecille cecille commented May 5, 2023

Adds some helper functions to the python matter test runner. These are going to be used to support the time sync cluster, which cannot be run though YAML (requires flow control and access to time), and cannot be run manually because it is checking time tolerances.

Adds:

  • ability to specify a PICS file on the command line for the script using --PICS and a check function (test for PICS parsing / checking also added)
  • ability to get system time in the matter epoch (tests for time also added)
  • type checking function (required by the test plan for some attrs - added by default)

@github-actions
Copy link

github-actions bot commented May 5, 2023

PR #26399: Size comparison from c8e453c to 223442c

Decreases (1 build for cc32xx)
platform target config section c8e453c 223442c change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 19609756 19609755 -1 -0.0
Full report (1 build for cc32xx)
platform target config section c8e453c 223442c change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 605090 605090 0 0.0
(read/write) 204164 204164 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197576 197576 0 0.0
.comment 206 206 0 0.0
.data 1468 1468 0 0.0
.debug_abbrev 957621 957621 0 0.0
.debug_aranges 101136 101136 0 0.0
.debug_frame 341512 341512 0 0.0
.debug_info 19609756 19609755 -1 -0.0
.debug_line 2666632 2666632 0 0.0
.debug_line_str 513 513 0 0.0
.debug_loc 33340 33340 0 0.0
.debug_loclists 1489225 1489225 0 0.0
.debug_ranges 4984 4984 0 0.0
.debug_rnglists 94315 94315 0 0.0
.debug_str 3108982 3108982 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 104354 104354 0 0.0
.shstrtab 265 265 0 0.0
.stack 2048 2048 0 0.0
.strtab 483384 483384 0 0.0
.symtab 287328 287328 0 0.0
.text 498612 498612 0 0.0

src/python_testing/TestMatterTestingSupport.py Outdated Show resolved Hide resolved
src/python_testing/matter_testing_support.py Outdated Show resolved Hide resolved
cecille and others added 2 commits May 9, 2023 12:44
@github-actions
Copy link

PR #26399: Size comparison from 5471bca to 16dc064

Full report (1 build for cc32xx)
platform target config section 5471bca 16dc064 change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 605002 605002 0 0.0
(read/write) 204164 204164 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197576 197576 0 0.0
.comment 206 206 0 0.0
.data 1468 1468 0 0.0
.debug_abbrev 957619 957619 0 0.0
.debug_aranges 101232 101232 0 0.0
.debug_frame 342080 342080 0 0.0
.debug_info 19674627 19674627 0 0.0
.debug_line 2671903 2671903 0 0.0
.debug_line_str 513 513 0 0.0
.debug_loc 33340 33340 0 0.0
.debug_loclists 1491139 1491139 0 0.0
.debug_ranges 4984 4984 0 0.0
.debug_rnglists 94412 94412 0 0.0
.debug_str 3131828 3131828 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 104314 104314 0 0.0
.shstrtab 265 265 0 0.0
.stack 2048 2048 0 0.0
.strtab 483089 483089 0 0.0
.symtab 287232 287232 0 0.0
.text 498564 498564 0 0.0

@cecille cecille merged commit 80b6fd9 into project-chip:master May 11, 2023
@cecille cecille deleted the python_test_support branch July 10, 2023 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants