Skip to content

Commit

Permalink
tests: benchmarks: multicore: Fixes to power-state tests
Browse files Browse the repository at this point in the history
Align CMakeLists.txt between related tests.
Remove unused FILE_SUFFIX.
Fix misleading comment in a source code.

Signed-off-by: Sebastian Głąb <[email protected]>
  • Loading branch information
nordic-segl authored and nordicjm committed Oct 11, 2024
1 parent b266253 commit ffebf6f
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 8 deletions.
5 changes: 3 additions & 2 deletions tests/benchmarks/multicore/idle/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
cmake_minimum_required(VERSION 3.20.0)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
if (NOT SYSBUILD)
message(WARNING

if(NOT SYSBUILD)
message(FATAL_ERROR
" This is a multi-image application that should be built using sysbuild.\n"
" Add --sysbuild argument to west build command to prepare all the images.")
endif()
Expand Down
5 changes: 3 additions & 2 deletions tests/benchmarks/multicore/idle_gpio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
cmake_minimum_required(VERSION 3.20.0)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
if (NOT SYSBUILD)
message(WARNING

if(NOT SYSBUILD)
message(FATAL_ERROR
" This is a multi-image application that should be built using sysbuild.\n"
" Add --sysbuild argument to west build command to prepare all the images.")
endif()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
cmake_minimum_required(VERSION 3.20.0)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})

if(NOT SYSBUILD)
message(FATAL_ERROR
" This is a multi-image application that should be built using sysbuild.\n"
Expand Down
1 change: 1 addition & 0 deletions tests/benchmarks/multicore/idle_spim/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
cmake_minimum_required(VERSION 3.20.0)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})

if(NOT SYSBUILD)
message(FATAL_ERROR
" This is a multi-image application that should be built using sysbuild.\n"
Expand Down
1 change: 0 additions & 1 deletion tests/benchmarks/multicore/idle_spim/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ tests:
- nrf54h20dk/nrf54h20/cpuapp
extra_args:
- SHIELD=pca63566
- FILE_SUFFIX=s2ram
- SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
harness_config:
fixture: ppk_power_measure
Expand Down
1 change: 1 addition & 0 deletions tests/benchmarks/multicore/idle_twim/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
cmake_minimum_required(VERSION 3.20.0)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})

if(NOT SYSBUILD)
message(FATAL_ERROR
" This is a multi-image application that should be built using sysbuild.\n"
Expand Down
1 change: 0 additions & 1 deletion tests/benchmarks/multicore/idle_twim/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ tests:
- nrf54h20dk/nrf54h20/cpuapp
extra_args:
- SHIELD=pca63566
- FILE_SUFFIX=s2ram
- SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
harness_config:
fixture: ppk_power_measure
Expand Down
1 change: 1 addition & 0 deletions tests/benchmarks/multicore/idle_uarte/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
cmake_minimum_required(VERSION 3.20.0)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})

if(NOT SYSBUILD)
message(FATAL_ERROR
" This is a multi-image application that should be built using sysbuild.\n"
Expand Down
1 change: 0 additions & 1 deletion tests/benchmarks/multicore/idle_uarte/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ tests:
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
extra_args:
- FILE_SUFFIX=s2ram
- SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
harness_config:
fixture: ppk_power_measure
Expand Down
2 changes: 1 addition & 1 deletion tests/benchmarks/multicore/idle_with_pwm/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ int main(void)
return ret;
}

/* Sleep 1 second */
/* Sleep / enter low power state */
k_msleep(CONFIG_TEST_SLEEP_DURATION_MS);
}

Expand Down

0 comments on commit ffebf6f

Please sign in to comment.