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

Add test cases for testing additional Presets write and commit constr… #35141

Conversation

nivi-apple
Copy link
Contributor

…aints

  • Add a test for adding a preset with a preset scenario not present in PresetTypes

  • Add a test for testing addition of presets such that the total number of presets added is greater than the total number of presets supported

Fixes: #34695

Copy link

semanticdiff-com bot commented Aug 21, 2024

Review changes with SemanticDiff.

Analyzed 1 of 3 files.

Filename Status
✔️ src/python_testing/TC_TSTAT_4_2.py Analyzed
examples/thermostat/thermostat-common/src/thermostat-delegate-impl.cpp Unsupported file format
examples/thermostat/thermostat-common/include/thermostat-delegate-impl.h Unsupported file format

nivi-apple and others added 4 commits August 27, 2024 10:14
…f presets supported and build a preset list whose size exceeds that to test
…f presets supported and build a preset list whose size exceeds that to test
Copy link

github-actions bot commented Aug 27, 2024

PR #35141: Size comparison from 32c961f to a812276

Increases above 0.2%:

platform target config section 32c961f a812276 change % change
tizen all-clusters-app arm unknown 4832 4848 16 0.3
Full report (77 builds for bl602, bl702, bl702l, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 32c961f a812276 change % change
bl602 lighting-app bl602 FLASH 1278596 1278766 170 0.0
RAM 95880 95880 0 0.0
bl602+mfd FLASH 1292706 1292876 170 0.0
RAM 96024 96024 0 0.0
bl602+rpc FLASH 1317560 1317730 170 0.0
RAM 104304 104304 0 0.0
bl702 lighting-app bl702 FLASH 944224 944380 156 0.0
RAM 15209 15209 0 0.0
bl702+mfd FLASH 946624 946780 156 0.0
RAM 15353 15353 0 0.0
bl702+rpc FLASH 1039536 1039692 156 0.0
RAM 24221 24221 0 0.0
bl706-eth FLASH 647296 647452 156 0.0
RAM 25305 25305 0 0.0
bl706-wifi FLASH 894668 894866 198 0.0
RAM 14525 14525 0 0.0
bl702l lighting-app bl702l FLASH 960884 961040 156 0.0
RAM 16868 16868 0 0.0
bl702l+mfd FLASH 963506 963662 156 0.0
RAM 17012 17012 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 672457 672593 136 0.0
RAM 78300 78300 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 692309 692453 144 0.0
RAM 80932 80932 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 692309 692453 144 0.0
RAM 80932 80932 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 649253 649389 136 0.0
RAM 73368 73368 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 610969 611113 144 0.0
RAM 71292 71292 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 630597 630749 152 0.0
RAM 73844 73844 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 630597 630749 152 0.0
RAM 73844 73844 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 629001 629153 152 0.0
RAM 74308 74308 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 648717 648861 144 0.0
RAM 76860 76860 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 648717 648861 144 0.0
RAM 76860 76860 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 602797 602925 128 0.0
RAM 68348 68348 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 622649 622785 136 0.0
RAM 70980 70980 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 622649 622785 136 0.0
RAM 70980 70980 0 0.0
efr32 lighting-app BRD4187C FLASH 930532 930676 144 0.0
RAM 135096 135096 0 0.0
lock-app BRD4338a FLASH 740604 740724 120 0.0
RAM 208492 208492 0 0.0
window-app BRD4187C FLASH 1015656 1015800 144 0.0
RAM 127036 127036 0 0.0
esp32 all-clusters-app c3devkit DRAM 94200 94200 0 0.0
FLASH 1533674 1533838 164 0.0
IRAM 82538 82538 0 0.0
m5stack DRAM 115136 115136 0 0.0
FLASH 1543634 1543814 180 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4624 4624 0 0.0
FLASH 2758323 2758883 560 0.0
RAM 128472 128520 48 0.0
all-clusters-app debug unknown 5408 5408 0 0.0
FLASH 6045250 6045844 594 0.0
RAM 510056 510440 384 0.1
all-clusters-minimal-app debug unknown 5304 5304 0 0.0
FLASH 5381162 5381756 594 0.0
RAM 240200 240232 32 0.0
bridge-app debug unknown 5288 5288 0 0.0
FLASH 4729896 4730458 562 0.0
RAM 216952 216952 0 0.0
chip-tool debug unknown 5832 5832 0 0.0
FLASH 12648884 12649476 592 0.0
RAM 558354 558450 96 0.0
chip-tool-ipv6only arm64 unknown 20352 20352 0 0.0
FLASH 11320668 11321404 736 0.0
RAM 608440 608520 80 0.0
fabric-admin debug unknown 5664 5664 0 0.0
FLASH 10926671 10927263 592 0.0
RAM 556554 556650 96 0.0
fabric-bridge-app debug unknown 4520 4520 0 0.0
FLASH 4552096 4552778 682 0.0
RAM 203680 203728 48 0.0
lighting-app debug+rpc+ui unknown 5936 5936 0 0.0
FLASH 5665937 5666497 560 0.0
RAM 228008 228056 48 0.0
lock-app debug unknown 5224 5224 0 0.0
FLASH 4785242 4785804 562 0.0
RAM 203736 203768 32 0.0
ota-provider-app debug unknown 4600 4600 0 0.0
FLASH 4424716 4425278 562 0.0
RAM 197720 197752 32 0.0
ota-requestor-app debug unknown 4536 4536 0 0.0
FLASH 4563334 4563896 562 0.0
RAM 202256 202288 32 0.0
shell debug unknown 4176 4176 0 0.0
FLASH 3083581 3084141 560 0.0
RAM 159000 159040 40 0.0
thermostat-no-ble arm64 unknown 9296 9296 0 0.0
FLASH 4321068 4321740 672 0.0
RAM 241848 242216 368 0.2
tv-app debug unknown 5504 5504 0 0.0
FLASH 6009765 6010325 560 0.0
RAM 583256 583288 32 0.0
tv-casting-app debug unknown 5168 5168 0 0.0
FLASH 10853629 10854333 704 0.0
RAM 645784 645864 80 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 910212 910356 144 0.0
RAM 142219 142219 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 882200 882308 108 0.0
RAM 140358 140358 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 841268 841408 140 0.0
RAM 141038 141038 0 0.0
nxp contact k32w0+release FLASH 577580 577732 152 0.0
RAM 70444 70444 0 0.0
k32w1+release FLASH 590208 590352 144 0.0
RAM 62488 62488 0 0.0
light k32w0+release FLASH 613008 613160 152 0.0
RAM 69916 69916 0 0.0
k32w1+release FLASH 674880 675024 144 0.0
RAM 71472 71472 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1641036 1641148 112 0.0
RAM 210920 210920 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1544732 1544844 112 0.0
RAM 207632 207632 0 0.0
light cy8ckit_062s2_43012 FLASH 1464364 1464476 112 0.0
RAM 200728 200728 0 0.0
lock cy8ckit_062s2_43012 FLASH 1463412 1463524 112 0.0
RAM 225064 225064 0 0.0
qpg lighting-app qpg6105+debug FLASH 656068 656220 152 0.0
RAM 105128 105128 0 0.0
lock-app qpg6105+debug FLASH 613992 614144 152 0.0
RAM 99612 99612 0 0.0
stm32 light STM32WB5MM-DK FLASH 478424 478560 136 0.0
RAM 144716 144716 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 620280 620414 134 0.0
RAM 50932 50932 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 682044 682178 134 0.0
RAM 149552 149552 0 0.0
all-clusters-minimal-app tlsr9528a FLASH 774286 774420 134 0.0
RAM 110712 110712 0 0.0
bridge-app tlsr9258a FLASH 679010 679144 134 0.0
RAM 91588 91588 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 621872 622006 134 0.0
RAM 50972 50972 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 707880 708016 136 0.0
RAM 74312 74312 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 620712 620846 134 0.0
RAM 145532 145532 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 806844 806978 134 0.0
RAM 99456 99456 0 0.0
lock-app-dfu tlsr9528a FLASH 654854 654988 134 0.0
RAM 67008 67008 0 0.0
ota-requestor-app tlsr9258a FLASH 697138 697272 134 0.0
RAM 91272 91272 0 0.0
pump-app-usb tlsr9518adk80d FLASH 631318 631452 134 0.0
RAM 55752 55752 0 0.0
pump-controller-app tlsr9518adk80d FLASH 608828 608962 134 0.0
RAM 52996 52996 0 0.0
shell tlsr9518adk80d FLASH 466816 466890 74 0.0
RAM 68660 68660 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 628662 628792 130 0.0
RAM 52692 52692 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 652810 652944 134 0.0
RAM 56632 56632 0 0.0
thermostat tlsr9518adk80d FLASH 635128 635262 134 0.0
RAM 53400 53400 0 0.0
window-covering tlsr9118bdk40d FLASH 522814 522948 134 0.0
RAM 98532 98532 0 0.0
tizen all-clusters-app arm unknown 4832 4848 16 0.3
FLASH 1706760 1709260 2500 0.1
RAM 89340 89376 36 0.0
chip-tool-ubsan arm unknown 10272 10272 0 0.0
FLASH 17494190 17495870 1680 0.0
RAM 7600188 7600932 744 0.0

src/python_testing/TC_TSTAT_4_2.py Outdated Show resolved Hide resolved
src/python_testing/TC_TSTAT_4_2.py Outdated Show resolved Hide resolved
src/python_testing/TC_TSTAT_4_2.py Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Aug 28, 2024

PR #35141: Size comparison from 32c961f to 77f1d17

Increases above 0.2%:

platform target config section 32c961f 77f1d17 change % change
tizen all-clusters-app arm unknown 4832 4848 16 0.3
Full report (12 builds for nrfconnect, nxp, qpg, stm32, tizen)
platform target config section 32c961f 77f1d17 change % change
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 910212 910604 392 0.0
RAM 142219 142219 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 882200 882564 364 0.0
RAM 140358 140358 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 841268 841616 348 0.0
RAM 141038 141038 0 0.0
nxp contact k32w0+release FLASH 577580 577732 152 0.0
RAM 70444 70444 0 0.0
k32w1+release FLASH 590208 590352 144 0.0
RAM 62488 62488 0 0.0
light k32w0+release FLASH 613008 613160 152 0.0
RAM 69916 69916 0 0.0
k32w1+release FLASH 674880 675024 144 0.0
RAM 71472 71472 0 0.0
qpg lighting-app qpg6105+debug FLASH 656068 656300 232 0.0
RAM 105128 105128 0 0.0
lock-app qpg6105+debug FLASH 613992 614144 152 0.0
RAM 99612 99612 0 0.0
stm32 light STM32WB5MM-DK FLASH 478424 478640 216 0.0
RAM 144716 144716 0 0.0
tizen all-clusters-app arm unknown 4832 4848 16 0.3
FLASH 1706760 1710276 3516 0.2
RAM 89340 89376 36 0.0
chip-tool-ubsan arm unknown 10272 10272 0 0.0
FLASH 17494190 17508630 14440 0.1
RAM 7600188 7600684 496 0.0

Copy link

github-actions bot commented Aug 28, 2024

PR #35141: Size comparison from 32c961f to 8282355

Increases above 0.2%:

platform target config section 32c961f 8282355 change % change
tizen all-clusters-app arm unknown 4832 4848 16 0.3
Full report (77 builds for bl602, bl702, bl702l, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 32c961f 8282355 change % change
bl602 lighting-app bl602 FLASH 1278596 1279022 426 0.0
RAM 95880 95880 0 0.0
bl602+mfd FLASH 1292706 1292876 170 0.0
RAM 96024 96024 0 0.0
bl602+rpc FLASH 1317560 1317986 426 0.0
RAM 104304 104304 0 0.0
bl702 lighting-app bl702 FLASH 944224 944636 412 0.0
RAM 15209 15209 0 0.0
bl702+mfd FLASH 946624 947036 412 0.0
RAM 15353 15353 0 0.0
bl702+rpc FLASH 1039536 1039692 156 0.0
RAM 24221 24221 0 0.0
bl706-eth FLASH 647296 647452 156 0.0
RAM 25305 25305 0 0.0
bl706-wifi FLASH 894668 894866 198 0.0
RAM 14525 14525 0 0.0
bl702l lighting-app bl702l FLASH 960884 961040 156 0.0
RAM 16868 16868 0 0.0
bl702l+mfd FLASH 963506 963662 156 0.0
RAM 17012 17012 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 672457 672673 216 0.0
RAM 78300 78300 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 692309 692533 224 0.0
RAM 80932 80932 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 692309 692533 224 0.0
RAM 80932 80932 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 649253 649469 216 0.0
RAM 73368 73368 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 610969 611113 144 0.0
RAM 71292 71292 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 630597 630749 152 0.0
RAM 73844 73844 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 630597 630749 152 0.0
RAM 73844 73844 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 629001 629153 152 0.0
RAM 74308 74308 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 648717 648861 144 0.0
RAM 76860 76860 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 648717 648861 144 0.0
RAM 76860 76860 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 602797 603093 296 0.0
RAM 68348 68348 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 622649 622953 304 0.0
RAM 70980 70980 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 622649 622953 304 0.0
RAM 70980 70980 0 0.0
efr32 lighting-app BRD4187C FLASH 930532 930740 208 0.0
RAM 135096 135096 0 0.0
lock-app BRD4338a FLASH 740604 740724 120 0.0
RAM 208492 208492 0 0.0
window-app BRD4187C FLASH 1015656 1015800 144 0.0
RAM 127036 127036 0 0.0
esp32 all-clusters-app c3devkit DRAM 94200 94200 0 0.0
FLASH 1533674 1534122 448 0.0
IRAM 82538 82538 0 0.0
m5stack DRAM 115136 115136 0 0.0
FLASH 1543634 1544162 528 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4624 4624 0 0.0
FLASH 2758323 2760195 1872 0.1
RAM 128472 128520 48 0.0
all-clusters-app debug unknown 5408 5408 0 0.0
FLASH 6045250 6047376 2126 0.0
RAM 510056 510088 32 0.0
all-clusters-minimal-app debug unknown 5304 5304 0 0.0
FLASH 5381162 5383170 2008 0.0
RAM 240200 240232 32 0.0
bridge-app debug unknown 5288 5288 0 0.0
FLASH 4729896 4730458 562 0.0
RAM 216952 216952 0 0.0
chip-tool debug unknown 5832 5832 0 0.0
FLASH 12648884 12648900 16 0.0
RAM 558354 558418 64 0.0
chip-tool-ipv6only arm64 unknown 20352 20352 0 0.0
FLASH 11320668 11321036 368 0.0
RAM 608440 608488 48 0.0
fabric-admin debug unknown 5664 5664 0 0.0
FLASH 10926671 10927191 520 0.0
RAM 556554 556618 64 0.0
fabric-bridge-app debug unknown 4520 4520 0 0.0
FLASH 4552096 4552228 132 0.0
RAM 203680 203728 48 0.0
lighting-app debug+rpc+ui unknown 5936 5936 0 0.0
FLASH 5665937 5666705 768 0.0
RAM 228008 228056 48 0.0
lock-app debug unknown 5224 5224 0 0.0
FLASH 4785242 4785804 562 0.0
RAM 203736 203768 32 0.0
ota-provider-app debug unknown 4600 4600 0 0.0
FLASH 4424716 4425278 562 0.0
RAM 197720 197752 32 0.0
ota-requestor-app debug unknown 4536 4536 0 0.0
FLASH 4563334 4563896 562 0.0
RAM 202256 202288 32 0.0
shell debug unknown 4176 4176 0 0.0
FLASH 3083581 3085661 2080 0.1
RAM 159000 159040 40 0.0
thermostat-no-ble arm64 unknown 9296 9296 0 0.0
FLASH 4321068 4323356 2288 0.1
RAM 241848 241888 40 0.0
tv-app debug unknown 5504 5504 0 0.0
FLASH 6009765 6010325 560 0.0
RAM 583256 583256 0 0.0
tv-casting-app debug unknown 5168 5168 0 0.0
FLASH 10853629 10853725 96 0.0
RAM 645784 645832 48 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 910212 910604 392 0.0
RAM 142219 142219 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 882200 882564 364 0.0
RAM 140358 140358 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 841268 841616 348 0.0
RAM 141038 141038 0 0.0
nxp contact k32w0+release FLASH 577580 577732 152 0.0
RAM 70444 70444 0 0.0
k32w1+release FLASH 590208 590352 144 0.0
RAM 62488 62488 0 0.0
light k32w0+release FLASH 613008 613160 152 0.0
RAM 69916 69916 0 0.0
k32w1+release FLASH 674880 675024 144 0.0
RAM 71472 71472 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1641036 1641516 480 0.0
RAM 210920 210920 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1544732 1545132 400 0.0
RAM 207632 207632 0 0.0
light cy8ckit_062s2_43012 FLASH 1464364 1464636 272 0.0
RAM 200728 200728 0 0.0
lock cy8ckit_062s2_43012 FLASH 1463412 1463524 112 0.0
RAM 225064 225064 0 0.0
qpg lighting-app qpg6105+debug FLASH 656068 656300 232 0.0
RAM 105128 105128 0 0.0
lock-app qpg6105+debug FLASH 613992 614144 152 0.0
RAM 99612 99612 0 0.0
stm32 light STM32WB5MM-DK FLASH 478424 478640 216 0.0
RAM 144716 144716 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 620280 620414 134 0.0
RAM 50932 50932 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 682044 682470 426 0.1
RAM 149552 149552 0 0.0
all-clusters-minimal-app tlsr9528a FLASH 774286 774652 366 0.0
RAM 110712 110712 0 0.0
bridge-app tlsr9258a FLASH 679010 679144 134 0.0
RAM 91588 91588 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 621872 622006 134 0.0
RAM 50972 50972 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 707880 708016 136 0.0
RAM 74312 74312 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 620712 620950 238 0.0
RAM 145532 145532 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 806844 807082 238 0.0
RAM 99456 99456 0 0.0
lock-app-dfu tlsr9528a FLASH 654854 654988 134 0.0
RAM 67008 67008 0 0.0
ota-requestor-app tlsr9258a FLASH 697138 697272 134 0.0
RAM 91272 91272 0 0.0
pump-app-usb tlsr9518adk80d FLASH 631318 631452 134 0.0
RAM 55752 55752 0 0.0
pump-controller-app tlsr9518adk80d FLASH 608828 608962 134 0.0
RAM 52996 52996 0 0.0
shell tlsr9518adk80d FLASH 466816 466890 74 0.0
RAM 68660 68660 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 628662 628792 130 0.0
RAM 52692 52692 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 652810 652944 134 0.0
RAM 56632 56632 0 0.0
thermostat tlsr9518adk80d FLASH 635128 635450 322 0.1
RAM 53400 53400 0 0.0
window-covering tlsr9118bdk40d FLASH 522814 522948 134 0.0
RAM 98532 98532 0 0.0
tizen all-clusters-app arm unknown 4832 4848 16 0.3
FLASH 1706760 1710276 3516 0.2
RAM 89340 89376 36 0.0
chip-tool-ubsan arm unknown 10272 10272 0 0.0
FLASH 17494190 17508630 14440 0.1
RAM 7600188 7600684 496 0.0

src/python_testing/TC_TSTAT_4_2.py Outdated Show resolved Hide resolved
src/python_testing/TC_TSTAT_4_2.py Outdated Show resolved Hide resolved
… is not present in PresetTypes to run the test

- Fix test step 18 to build a presets list that exceeds the number of presets supported correctly
@mergify mergify bot merged commit 44c84ac into project-chip:master Aug 28, 2024
67 checks passed
hasty pushed a commit to hasty/connectedhomeip that referenced this pull request Aug 29, 2024
project-chip#35141)

* Add test cases for testing additional Presets write and commit constraints

- Add a test for adding a preset with a preset scenario not present in PresetTypes

- Add a test for testing addition of presets such that the total number of presets added is greater than the total number of presets supported

* Add rollback after test step 18

* Modify the number of presets supported test case to read the number of presets supported and build a preset list whose size exceeds that to test

* Modify the number of presets supported test case to read the number of presets supported and build a preset list whose size exceeds that to test

* Update thermostat-delegate-impl.h

* Address review comments

* Add support to check for numberOfPresets supported for each preset type and build the presets list with multiple presets of each type

* Restyled by autopep8

* Fix log line formatting

* Update src/python_testing/TC_TSTAT_4_2.py

Co-authored-by: Boris Zbarsky <[email protected]>

* Fix test step 17 to find a preset scenario in PresetScenarioEnum that is not present in PresetTypes to run the test

- Fix test step 18 to build a presets list that exceeds the number of presets supported correctly

* Restyled by autopep8

* Fix lint errors

* Add a while loop to add more presets until max is reached

---------

Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>
shgutte pushed a commit to shgutte/connectedhomeip that referenced this pull request Sep 10, 2024
project-chip#35141)

* Add test cases for testing additional Presets write and commit constraints

- Add a test for adding a preset with a preset scenario not present in PresetTypes

- Add a test for testing addition of presets such that the total number of presets added is greater than the total number of presets supported

* Add rollback after test step 18

* Modify the number of presets supported test case to read the number of presets supported and build a preset list whose size exceeds that to test

* Modify the number of presets supported test case to read the number of presets supported and build a preset list whose size exceeds that to test

* Update thermostat-delegate-impl.h

* Address review comments

* Add support to check for numberOfPresets supported for each preset type and build the presets list with multiple presets of each type

* Restyled by autopep8

* Fix log line formatting

* Update src/python_testing/TC_TSTAT_4_2.py

Co-authored-by: Boris Zbarsky <[email protected]>

* Fix test step 17 to find a preset scenario in PresetScenarioEnum that is not present in PresetTypes to run the test

- Fix test step 18 to build a presets list that exceeds the number of presets supported correctly

* Restyled by autopep8

* Fix lint errors

* Add a while loop to add more presets until max is reached

---------

Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>
mergify bot pushed a commit that referenced this pull request Oct 23, 2024
* [HVAC] Check if number of preset scenarios exceeds maximum number of scenarios

* [NXP][Zephyr] Provide AP band in connection request parameters (#35181)

Signed-off-by: Axel Le Bourhis <[email protected]>

* Plumbing for CADMIN attribute updates from fabric-admin to fabric-bridge (#35222)

* Fix TC_BRBINFO_4_1 for execution on TH (#35257)

* [Fabric-Admin] Move DeviceSynchronization from pairing command to device_manager (#35260)

* Move DeviceSynchronization from pairing command to device_manager

* Restyled by gn

---------

Co-authored-by: Restyled.io <[email protected]>

* Add command-line argument to allow userprompt at start of ECOINFO_2_1 (#35234)

---------

Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: saurabhst <[email protected]>

* Testing fixes for TC_SWTCH from TE2 (#34984)

* Testing fixes for TC_SWTCH from TE2

- all-clusters-app was not generating button position
  changes in some cases. This was not detected in some
  situations since the test cases don't always test for this.
- Prompts are missing endpoint ID which makes it hard when running
  per-endpoint tests to know where it applies.
- Some partials could fail on decode errors, causing test errors
  instead of fails.

This PR:

- Adds correct generation of positions on press/release.
- Adds a way to claim endpoint tested in user prompts
- Fixes failing on decode errors in partials

Testing done:

- TC_SWTCH still passes
- Manually validated button position in multi-press test/simulation
  (update to TC_SWTCH needs test plan changes). Issue is in
  all-clusters-app for CI only. See
  CHIP-Specifications/chip-test-plans#4493

* Restyled by autopep8

* Update prompt support

---------

Co-authored-by: Restyled.io <[email protected]>

* Add test cases for testing additional Presets write and commit constr… (#35141)

* Add test cases for testing additional Presets write and commit constraints

- Add a test for adding a preset with a preset scenario not present in PresetTypes

- Add a test for testing addition of presets such that the total number of presets added is greater than the total number of presets supported

* Add rollback after test step 18

* Modify the number of presets supported test case to read the number of presets supported and build a preset list whose size exceeds that to test

* Modify the number of presets supported test case to read the number of presets supported and build a preset list whose size exceeds that to test

* Update thermostat-delegate-impl.h

* Address review comments

* Add support to check for numberOfPresets supported for each preset type and build the presets list with multiple presets of each type

* Restyled by autopep8

* Fix log line formatting

* Update src/python_testing/TC_TSTAT_4_2.py

Co-authored-by: Boris Zbarsky <[email protected]>

* Fix test step 17 to find a preset scenario in PresetScenarioEnum that is not present in PresetTypes to run the test

- Fix test step 18 to build a presets list that exceeds the number of presets supported correctly

* Restyled by autopep8

* Fix lint errors

* Add a while loop to add more presets until max is reached

---------

Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>

* Allow TestAccessControl to run with ARL (#35262)

* Allow TestAccessControl to run with ARL

Since RequestType is required, set each test data entry to some
value that will pass AccessRestrictionProvider checks (since the
focus is on AccessControl for these tests).

* Copy the test data's request path and optionally add RequestType

* Make zap_downloadl.py create a usable zap.app on Mac (#35242)

Use the unzip utility on Mac for unzipping instead of zipfile.

In addition to not supporting file modes (which the script already works
around) the zipfile module also doesn't support symlinks. The embedded
frameworks inside zap.app rely on symlinks for the application to work.

* TBRM Tests scripts consistency with  te2 fixes (#35153)

* Add files via upload

Add yaml test script for TBRM

* Update TEST_TC_TBRM_2.2.yaml

* Update TEST_TC_TBRM_2.3.yaml

* Update TEST_TC_TBRM_2.4.yaml

* Test script consitancy wit test plan after TE2

* Test script consitancy wit test plan after TE2

* Update src/app/tests/suites/certification/Test_TC_TBRM_2_3.yaml

Co-authored-by: Karsten Sperling <[email protected]>

* Update src/app/tests/suites/certification/Test_TC_TBRM_2_2.yaml

Co-authored-by: Karsten Sperling <[email protected]>

* Restyled by whitespace

* Restyled by prettier-yaml

* Test_TC_TBRM_2_4. synchronisation with TC-THNETDIR-2.3 according test Plan

* Restyled by whitespace

* Test tweaks to get CI to pass

- Use pairing payload matching the other parameters
- Check response of ArmFailSafe commands
- Fix bad merge in commissioner_commands.py

* Restyled by prettier-yaml

---------

Co-authored-by: StephaneGUELEC <[email protected]>
Co-authored-by: Karsten Sperling <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Karsten Sperling <[email protected]>

* [HVAC] Alter Thermostat Preset tests to not rely on knowledge of the server's initial state

* Pick midpoint setpoints for new presets

* Lint fixes

* Apply suggestions from code review

Co-authored-by: Boris Zbarsky <[email protected]>

* Fixes from code review

* Apply suggestions from code review

Co-authored-by: Boris Zbarsky <[email protected]>

* Fix remaining places with hard-coded setpoints

* Don't abort test if there are no built-in presets

* Remove unneeded length check

* Fix max number of preset types

* Add test for individual preset scenario limits

* Fix lint issue

* Return invalid in state if we're unable to iterate over the preset types for some reason

* Apply suggestions from code review

Co-authored-by: Boris Zbarsky <[email protected]>

* Remove unneeded active preset setting

* Restyled patch

* Suggestions from code review

---------

Signed-off-by: Axel Le Bourhis <[email protected]>
Co-authored-by: Axel Le Bourhis <[email protected]>
Co-authored-by: Terence Hampson <[email protected]>
Co-authored-by: Yufeng Wang <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: saurabhst <[email protected]>
Co-authored-by: Tennessee Carmel-Veilleux <[email protected]>
Co-authored-by: Nivi Sarkar <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>
Co-authored-by: Thomas Lea <[email protected]>
Co-authored-by: Karsten Sperling <[email protected]>
Co-authored-by: marchemi <[email protected]>
Co-authored-by: StephaneGUELEC <[email protected]>
Co-authored-by: Karsten Sperling <[email protected]>
yyzhong-g pushed a commit to yyzhong-g/connectedhomeip that referenced this pull request Dec 12, 2024
* [HVAC] Check if number of preset scenarios exceeds maximum number of scenarios

* [NXP][Zephyr] Provide AP band in connection request parameters (project-chip#35181)

Signed-off-by: Axel Le Bourhis <[email protected]>

* Plumbing for CADMIN attribute updates from fabric-admin to fabric-bridge (project-chip#35222)

* Fix TC_BRBINFO_4_1 for execution on TH (project-chip#35257)

* [Fabric-Admin] Move DeviceSynchronization from pairing command to device_manager (project-chip#35260)

* Move DeviceSynchronization from pairing command to device_manager

* Restyled by gn

---------

Co-authored-by: Restyled.io <[email protected]>

* Add command-line argument to allow userprompt at start of ECOINFO_2_1 (project-chip#35234)

---------

Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: saurabhst <[email protected]>

* Testing fixes for TC_SWTCH from TE2 (project-chip#34984)

* Testing fixes for TC_SWTCH from TE2

- all-clusters-app was not generating button position
  changes in some cases. This was not detected in some
  situations since the test cases don't always test for this.
- Prompts are missing endpoint ID which makes it hard when running
  per-endpoint tests to know where it applies.
- Some partials could fail on decode errors, causing test errors
  instead of fails.

This PR:

- Adds correct generation of positions on press/release.
- Adds a way to claim endpoint tested in user prompts
- Fixes failing on decode errors in partials

Testing done:

- TC_SWTCH still passes
- Manually validated button position in multi-press test/simulation
  (update to TC_SWTCH needs test plan changes). Issue is in
  all-clusters-app for CI only. See
  https://github.com/CHIP-Specifications/chip-test-plans/issues/4493

* Restyled by autopep8

* Update prompt support

---------

Co-authored-by: Restyled.io <[email protected]>

* Add test cases for testing additional Presets write and commit constr… (project-chip#35141)

* Add test cases for testing additional Presets write and commit constraints

- Add a test for adding a preset with a preset scenario not present in PresetTypes

- Add a test for testing addition of presets such that the total number of presets added is greater than the total number of presets supported

* Add rollback after test step 18

* Modify the number of presets supported test case to read the number of presets supported and build a preset list whose size exceeds that to test

* Modify the number of presets supported test case to read the number of presets supported and build a preset list whose size exceeds that to test

* Update thermostat-delegate-impl.h

* Address review comments

* Add support to check for numberOfPresets supported for each preset type and build the presets list with multiple presets of each type

* Restyled by autopep8

* Fix log line formatting

* Update src/python_testing/TC_TSTAT_4_2.py

Co-authored-by: Boris Zbarsky <[email protected]>

* Fix test step 17 to find a preset scenario in PresetScenarioEnum that is not present in PresetTypes to run the test

- Fix test step 18 to build a presets list that exceeds the number of presets supported correctly

* Restyled by autopep8

* Fix lint errors

* Add a while loop to add more presets until max is reached

---------

Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>

* Allow TestAccessControl to run with ARL (project-chip#35262)

* Allow TestAccessControl to run with ARL

Since RequestType is required, set each test data entry to some
value that will pass AccessRestrictionProvider checks (since the
focus is on AccessControl for these tests).

* Copy the test data's request path and optionally add RequestType

* Make zap_downloadl.py create a usable zap.app on Mac (project-chip#35242)

Use the unzip utility on Mac for unzipping instead of zipfile.

In addition to not supporting file modes (which the script already works
around) the zipfile module also doesn't support symlinks. The embedded
frameworks inside zap.app rely on symlinks for the application to work.

* TBRM Tests scripts consistency with  te2 fixes (project-chip#35153)

* Add files via upload

Add yaml test script for TBRM

* Update TEST_TC_TBRM_2.2.yaml

* Update TEST_TC_TBRM_2.3.yaml

* Update TEST_TC_TBRM_2.4.yaml

* Test script consitancy wit test plan after TE2

* Test script consitancy wit test plan after TE2

* Update src/app/tests/suites/certification/Test_TC_TBRM_2_3.yaml

Co-authored-by: Karsten Sperling <[email protected]>

* Update src/app/tests/suites/certification/Test_TC_TBRM_2_2.yaml

Co-authored-by: Karsten Sperling <[email protected]>

* Restyled by whitespace

* Restyled by prettier-yaml

* Test_TC_TBRM_2_4. synchronisation with TC-THNETDIR-2.3 according test Plan

* Restyled by whitespace

* Test tweaks to get CI to pass

- Use pairing payload matching the other parameters
- Check response of ArmFailSafe commands
- Fix bad merge in commissioner_commands.py

* Restyled by prettier-yaml

---------

Co-authored-by: StephaneGUELEC <[email protected]>
Co-authored-by: Karsten Sperling <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Karsten Sperling <[email protected]>

* [HVAC] Alter Thermostat Preset tests to not rely on knowledge of the server's initial state

* Pick midpoint setpoints for new presets

* Lint fixes

* Apply suggestions from code review

Co-authored-by: Boris Zbarsky <[email protected]>

* Fixes from code review

* Apply suggestions from code review

Co-authored-by: Boris Zbarsky <[email protected]>

* Fix remaining places with hard-coded setpoints

* Don't abort test if there are no built-in presets

* Remove unneeded length check

* Fix max number of preset types

* Add test for individual preset scenario limits

* Fix lint issue

* Return invalid in state if we're unable to iterate over the preset types for some reason

* Apply suggestions from code review

Co-authored-by: Boris Zbarsky <[email protected]>

* Remove unneeded active preset setting

* Restyled patch

* Suggestions from code review

---------

Signed-off-by: Axel Le Bourhis <[email protected]>
Co-authored-by: Axel Le Bourhis <[email protected]>
Co-authored-by: Terence Hampson <[email protected]>
Co-authored-by: Yufeng Wang <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: saurabhst <[email protected]>
Co-authored-by: Tennessee Carmel-Veilleux <[email protected]>
Co-authored-by: Nivi Sarkar <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>
Co-authored-by: Thomas Lea <[email protected]>
Co-authored-by: Karsten Sperling <[email protected]>
Co-authored-by: marchemi <[email protected]>
Co-authored-by: StephaneGUELEC <[email protected]>
Co-authored-by: Karsten Sperling <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add more tests to the Thermostat presets test for testing the presets constraints- TC_TSTAT_4_2
6 participants