Skip to content

Commit

Permalink
tests: use sysbuild in sidewalk tests
Browse files Browse the repository at this point in the history
[KRKNWK-18748]
* use sysbuild to build functional and validation tests
* do not use sysbuild in unit tests (not supported)
* disable dfu and parition manager in tests

Signed-off-by: Krzysztof Taborowski <[email protected]>
  • Loading branch information
ktaborowski authored and nordicjm committed May 22, 2024
1 parent 8981fd7 commit 3cec052
Show file tree
Hide file tree
Showing 52 changed files with 72 additions and 42 deletions.
1 change: 1 addition & 0 deletions tests/functional/critical_region/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
sidewalk.functional.critical_region:
sysbuild: true
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp [email protected]/nrf54l15/cpuapp
integration_platforms:
- nrf52840dk/nrf52840
Expand Down
1 change: 1 addition & 0 deletions tests/functional/crypto/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
sidewalk.functional.crypto:
sysbuild: true
tags: Sidewalk
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp [email protected]/nrf54l15/cpuapp
integration_platforms:
Expand Down
1 change: 1 addition & 0 deletions tests/functional/interrupts/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
unity.sidewalk.functional.interrupts:
sysbuild: true
tags: Sidewalk
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp [email protected]/nrf54l15/cpuapp
integration_platforms:
Expand Down
1 change: 1 addition & 0 deletions tests/functional/mfg_storage/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
tests:
sidewalk.functional.mfg_storage:
skip: true
sysbuild: true
tags: Sidewalk
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp [email protected]/nrf54l15/cpuapp
integration_platforms:
Expand Down
1 change: 1 addition & 0 deletions tests/functional/pal_delay/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
sidewalk.functional.delay:
sysbuild: true
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp [email protected]/nrf54l15/cpuapp
integration_platforms:
- nrf52840dk/nrf52840
Expand Down
1 change: 1 addition & 0 deletions tests/functional/spi_bus/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
sidewalk.functional.spi_bus:
sysbuild: true
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp [email protected]/nrf54l15/cpuapp
integration_platforms:
- nrf52840dk/nrf52840
Expand Down
1 change: 1 addition & 0 deletions tests/functional/storage/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
sidewalk.functional.storage:
sysbuild: true
tags: Sidewalk
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp [email protected]/nrf54l15/cpuapp
integration_platforms:
Expand Down
1 change: 1 addition & 0 deletions tests/functional/temperature/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
sidewalk.functional.temperature:
sysbuild: true
platform_allow:
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
Expand Down
1 change: 1 addition & 0 deletions tests/functional/time/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
sidewalk.functional.time:
sysbuild: true
tags: Sidewalk
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp
integration_platforms:
Expand Down
4 changes: 0 additions & 4 deletions tests/manual/ble/pm_static.yml

This file was deleted.

4 changes: 0 additions & 4 deletions tests/manual/ble/pm_static_nrf54l15pdk_nrf54l15_cpuapp.yml

This file was deleted.

2 changes: 1 addition & 1 deletion tests/manual/ble/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

# Sidewalk
CONFIG_SIDEWALK=y
CONFIG_SIDEWALK_DFU=n
CONFIG_SIDEWALK_LOG_LEVEL_DBG=y
CONFIG_SIDEWALK_SUBGHZ_SUPPORT=n

Expand All @@ -16,4 +17,3 @@ CONFIG_RESET_ON_FATAL_ERROR=n
CONFIG_FPU=y

CONFIG_DK_LIBRARY=y
CONFIG_PARTITION_MANAGER_ENABLED=y
1 change: 1 addition & 0 deletions tests/manual/ble/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ sample:
description: Test Bluetooth with controller (e.g. smartphone with nRF Connect App)
tests:
sidewalk.test.ble:
sysbuild: true
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp [email protected]/nrf54l15/cpuapp
build_only: true
integration_platforms:
Expand Down
7 changes: 7 additions & 0 deletions tests/manual/ble/sysbuild.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#
# Copyright (c) 2024 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

SB_CONFIG_PARTITION_MANAGER=n
4 changes: 0 additions & 4 deletions tests/manual/log/pm_static.yml

This file was deleted.

4 changes: 0 additions & 4 deletions tests/manual/log/pm_static_nrf54l15pdk_nrf54l15_cpuapp.yml

This file was deleted.

2 changes: 1 addition & 1 deletion tests/manual/log/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

# Sidewalk
CONFIG_SIDEWALK=y
CONFIG_SIDEWALK_DFU=n
CONFIG_SIDEWALK_LOG_LEVEL_DBG=y
CONFIG_SIDEWALK_SUBGHZ_SUPPORT=n

Expand All @@ -26,4 +27,3 @@ CONFIG_FPU=y

# Debug
CONFIG_RESET_ON_FATAL_ERROR=n
CONFIG_PARTITION_MANAGER_ENABLED=y
1 change: 1 addition & 0 deletions tests/manual/log/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ sample:
description: Test printing different sidewalk logs
tests:
sidewalk.test.log:
sysbuild: true
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp [email protected]/nrf54l15/cpuapp
build_only: true
integration_platforms:
Expand Down
7 changes: 7 additions & 0 deletions tests/manual/log/sysbuild.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#
# Copyright (c) 2024 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

SB_CONFIG_PARTITION_MANAGER=n
1 change: 1 addition & 0 deletions tests/unit_tests/pal_assert/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
sidewalk.unit_tests.assert:
sysbuild: true
platform_allow: native_posix
tags: Sidewalk
integration_platforms:
Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/pal_ble_adapter/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
sidewalk.unit_tests.ble_adapter:
sysbuild: true
platform_allow: native_posix
tags: Sidewalk
integration_platforms:
Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/pal_crypto/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
sidewalk.unit_tests.crypto:
sysbuild: true
tags: Sidewalk
platform_allow: native_posix
integration_platforms:
Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/pal_log/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
sidewalk.unit_tests.log:
sysbuild: true
platform_allow: native_posix
tags: Sidewalk
integration_platforms:
Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/pal_mfg_storage/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
tests:
sidewalk.unit_tests.mfg_storage:
skip: true
sysbuild: true
platform_allow: native_posix
tags: Sidewalk
integration_platforms:
Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/pal_storage_kv/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
sidewalk.unit_tests.storage_kv:
sysbuild: true
platform_allow: native_posix
tags: Sidewalk
integration_platforms:
Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/pal_sw_interrupts/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
tests:
unity.sidewalk.unit_tests.interrupts:
sysbuild: false
tags: Sidewalk
type: unit
1 change: 1 addition & 0 deletions tests/unit_tests/pal_temperature/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
sidewalk.unit_tests.temperature:
sysbuild: true
platform_allow: native_posix
tags: Sidewalk
integration_platforms:
Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/pal_timer/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
sidewalk.unit_tests.timer:
sysbuild: true
platform_allow: native_posix
tags: Sidewalk
integration_platforms:
Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/pal_uptime/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
sidewalk.unit_tests.uptime:
sysbuild: true
platform_allow: native_posix
tags: Sidewalk
integration_platforms:
Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/sid_ace_alloc/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
sidewalk.unit_tests.ace.alloc:
sysbuild: true
platform_allow:
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/sid_ble_adapter_callbacks/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
sidewalk.unit_tests.ble_adapter_callbacks:
sysbuild: true
platform_allow: native_posix
tags: Sidewalk
integration_platforms:
Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/sid_ble_advert/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
sidewalk.unit_tests.ble_advertising:
sysbuild: true
platform_allow: native_posix
tags: Sidewalk
integration_platforms:
Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/sid_ble_connection/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
sidewalk.unit_tests.ble_connection:
sysbuild: true
platform_allow: native_posix
tags: Sidewalk
integration_platforms:
Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/sid_ble_service/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
sidewalk.unit_tests.sid_ble_service:
sysbuild: true
platform_allow: native_posix
tags: Sidewalk
integration_platforms:
Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/sid_dut_shell/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
tests:
sidewalk.unit_tests.sid_dut_shell:
sysbuild: false
tags: Sidewalk
type: unit
1 change: 1 addition & 0 deletions tests/unit_tests/sid_pal_gpio/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
sidewalk.unit_tests.gpio:
sysbuild: true
platform_allow: native_posix
tags: Sidewalk
integration_platforms:
Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/state_notifier/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
tests:
sidewalk.unit_tests.state_notifier:
sysbuild: false
tags: Sidewalk
type: unit
4 changes: 0 additions & 4 deletions tests/validation/crypto/pm_static.yml

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions tests/validation/crypto/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
CONFIG_UNITY=y
CONFIG_ZTEST=y
CONFIG_SIDEWALK=y
CONFIG_SIDEWALK_DFU=n
CONFIG_SIDEWALK_SUBGHZ_SUPPORT=n
CONFIG_SIDEWALK_LOG_LEVEL_OFF=y
CONFIG_SIDEWALK_CRYPTO_LOG_LEVEL_OFF=y
Expand Down
7 changes: 7 additions & 0 deletions tests/validation/crypto/sysbuild.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#
# Copyright (c) 2024 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

SB_CONFIG_PARTITION_MANAGER=n
1 change: 1 addition & 0 deletions tests/validation/crypto/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
sidewalk.sid_validation.pal_crypto:
sysbuild: true
platform_allow:
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
Expand Down
4 changes: 0 additions & 4 deletions tests/validation/storage_kv/pm_static.yml

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions tests/validation/storage_kv/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
CONFIG_UNITY=y
CONFIG_ZTEST=y
CONFIG_SIDEWALK=y
CONFIG_SIDEWALK_DFU=n
CONFIG_SIDEWALK_SUBGHZ_SUPPORT=n
CONFIG_SIDEWALK_LOG_LEVEL_OFF=y
CONFIG_NVS_LOG_LEVEL_OFF=y
Expand Down
7 changes: 7 additions & 0 deletions tests/validation/storage_kv/sysbuild.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#
# Copyright (c) 2024 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

SB_CONFIG_PARTITION_MANAGER=n
1 change: 1 addition & 0 deletions tests/validation/storage_kv/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
sidewalk.sid_validation.pal_storage_kv:
sysbuild: true
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp [email protected]/nrf54l15/cpuapp
tags: Sidewalk
integration_platforms:
Expand Down
4 changes: 0 additions & 4 deletions tests/validation/timer/pm_static.yml

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions tests/validation/timer/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#
CONFIG_ZTEST=y
CONFIG_SIDEWALK=y
CONFIG_SIDEWALK_DFU=n
CONFIG_SIDEWALK_SUBGHZ_SUPPORT=n
CONFIG_SIDEWALK_LOG_LEVEL_OFF=y
CONFIG_ZTEST_THREAD_PRIORITY=14
Expand Down
7 changes: 7 additions & 0 deletions tests/validation/timer/sysbuild.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#
# Copyright (c) 2024 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

SB_CONFIG_PARTITION_MANAGER=n
1 change: 1 addition & 0 deletions tests/validation/timer/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tests:
sidewalk.sid_validation.pal_timer:
sysbuild: true
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp [email protected]/nrf54l15/cpuapp
tags: Sidewalk
integration_platforms:
Expand Down

0 comments on commit 3cec052

Please sign in to comment.