Skip to content

Commit 614efc6

Browse files
nordic-piksnordicjm
authored andcommitted
tests: benchmarks: current_consumption: system_off: extend testing
Simple checking current at systemoff state. Signed-off-by: Piotr Kosycarz <[email protected]>
1 parent 2ac0adc commit 614efc6

File tree

2 files changed

+54
-1
lines changed

2 files changed

+54
-1
lines changed

tests/benchmarks/current_consumption/system_off/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
1010
project(system_off)
1111

1212
target_sources(app PRIVATE $ENV{ZEPHYR_BASE}/samples/boards/nordic/system_off/src/main.c)
13-
if(CONFIG_APP_USE_RETAINED_MEM)
13+
if(CONFIG_APP_USE_NRF_RETENTION OR CONFIG_APP_USE_RETAINED_MEM)
1414
target_sources(app PRIVATE $ENV{ZEPHYR_BASE}/samples/boards/nordic/system_off/src/retained.c)
1515
endif()

tests/benchmarks/current_consumption/system_off/testcase.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,56 @@ tests:
4646
pytest_root:
4747
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption_with_grtc_wakeups"
4848
timeout: 80
49+
benchmarks.current_consumption.sample.boards.nrf.system_off:
50+
platform_allow:
51+
- nrf54l15dk/nrf54l15/cpuapp
52+
- nrf52840dk/nrf52840
53+
- nrf52dk/nrf52832
54+
- nrf5340dk/nrf5340/cpuapp
55+
integration_platforms:
56+
- nrf54l15dk/nrf54l15/cpuapp
57+
- nrf52840dk/nrf52840
58+
- nrf52dk/nrf52832
59+
- nrf5340dk/nrf5340/cpuapp
60+
tags: ppk_power_measure
61+
harness: pytest
62+
harness_config:
63+
fixture: ppk_power_measure
64+
pytest_root:
65+
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption_systemoff"
66+
timeout: 90
67+
benchmarks.current_consumption.sample.boards.nrf.system_off.nrf_retained:
68+
platform_allow:
69+
- nrf52840dk/nrf52840
70+
- nrf52dk/nrf52832
71+
- nrf5340dk/nrf5340/cpuapp
72+
integration_platforms:
73+
- nrf52840dk/nrf52840
74+
- nrf52dk/nrf52832
75+
- nrf5340dk/nrf5340/cpuapp
76+
extra_configs:
77+
- CONFIG_APP_USE_NRF_RETENTION=y
78+
tags: ppk_power_measure
79+
harness: pytest
80+
harness_config:
81+
fixture: ppk_power_measure
82+
pytest_root:
83+
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption_systemoff"
84+
timeout: 90
85+
benchmarks.current_consumption.sample.boards.nrf.system_off.retained_mem:
86+
platform_allow:
87+
- nrf54l15dk/nrf54l15/cpuapp
88+
integration_platforms:
89+
- nrf54l15dk/nrf54l15/cpuapp
90+
extra_args:
91+
- "DTC_OVERLAY_FILE=boards/nrf54l15dk_nrf54l15_cpuapp_ret_mem.overlay"
92+
extra_configs:
93+
- CONFIG_APP_USE_RETAINED_MEM=y
94+
- CONFIG_RETAINED_MEM=y
95+
tags: ppk_power_measure
96+
harness: pytest
97+
harness_config:
98+
fixture: ppk_power_measure
99+
pytest_root:
100+
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption_systemoff"
101+
timeout: 90

0 commit comments

Comments
 (0)