Skip to content

Commit

Permalink
tests: fix unit tests
Browse files Browse the repository at this point in the history
fix Kconfig in tests

Signed-off-by: Robert Gałat <[email protected]>
  • Loading branch information
RobertGalatNordic committed Feb 6, 2025
1 parent fa4d854 commit 54c77d1
Show file tree
Hide file tree
Showing 18 changed files with 43 additions and 9 deletions.
8 changes: 0 additions & 8 deletions Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,6 @@ config DEPRECATED_SIDEWALK_MFG_STORAGE
Previous Sidewalk manufacturing storage module
This implementation is DEPRECATED.

config SIDEWALK_MFG_STORAGE_SUPPORT_HEX_v7
bool "Enable support for old Sidewalk manufaturing hex format"
default y
help
Sidewalk manifactuing module uses version 8, with tlv format
Old fromats - version7 and before, are based on memory offsets
and will be supported after enabling this configuration.

config SIDEWALK_CRYPTO_PSA_KEY_STORAGE
bool "Enable psa crypto storage for persistent Sidewalk keys [EXPERIMENTAL]"
default SIDEWALK
Expand Down
12 changes: 11 additions & 1 deletion Kconfig.dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ endif # SIDEWALK_LOG

config SIDEWALK_MFG_STORAGE
bool
default SIDEWALK_MFG_STORAGE_SUPPORT_HEX_v7
default SIDEWALK && !DEPRECATED_SIDEWALK_MFG_STORAGE
imply FLASH
imply FPROTECT
Expand All @@ -225,6 +224,17 @@ config SIDEWALK_MFG_STORAGE
Sidewalk manufacturing storage module
Supports: tlv parser, secure key storage and memory protection

if SIDEWALK_MFG_STORAGE

config SIDEWALK_MFG_STORAGE_SUPPORT_HEX_v7
bool "Enable support for old Sidewalk manufaturing hex format"
default y
help
Sidewalk manifactuing module uses version 8, with tlv format
Old fromats - version7 and before, are based on memory offsets
and will be supported after enabling this configuration.
endif

config SIDEWALK_MFG_STORAGE_DIAGNOSTIC
bool
default SIDEWALK_ON_DEV_CERT
Expand Down
2 changes: 2 additions & 0 deletions test_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ levels:
inherits:
- unit
- integration
adds:
- sidewalk.test.*

- name: bugs
description: >
Expand Down
6 changes: 6 additions & 0 deletions tests/manual/ble/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
#

config SIDEWALK_MFG_STORAGE
bool
default n

config BT_ID_MAX
default 3

source "Kconfig.zephyr"

source "${ZEPHYR_BASE}/../sidewalk/Kconfig.dependencies"
3 changes: 3 additions & 0 deletions tests/manual/log/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
#

config SIDEWALK_MFG_STORAGE
bool
default n

source "Kconfig.zephyr"

source "${ZEPHYR_BASE}/../sidewalk/Kconfig.dependencies"
9 changes: 9 additions & 0 deletions tests/unit_tests/pal_ble_adapter/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,34 @@
#

config SIDEWALK_BUILD
bool
default y

config SIDEWALK_USE_PREBUILTS
bool
default y

config SIDEWALK_BLE
bool
default y

config SETTINGS
default y

config SIDEWALK_BLE_ADV_INT_PRECISION
int
default 5

config SIDEWALK_BLE_ADV_INT_FAST
int
default 160

config SIDEWALK_BLE_ADV_INT_SLOW
int
default 1000

config SIDEWALK_BLE_ADV_INT_TRANSITION
int
default 30

config SIDEWALK_LOG_LEVEL
Expand All @@ -35,10 +42,12 @@ config SIDEWALK_BLE_ADAPTER_LOG_LEVEL
default 0

config BT_ID_MAX
int
default 2

config SIDEWALK_BLE_NAME
string "BLE name adverticed for Sidewalk"
default "SID_APP"

# source "${ZEPHYR_BASE}/../sidewalk/Kconfig.dependencies"
source "Kconfig.zephyr"
1 change: 1 addition & 0 deletions tests/unit_tests/pal_log/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ config SIDEWALK_LOG_MSG_LENGTH_MAX
default 80

source "Kconfig.zephyr"
source "${ZEPHYR_BASE}/../sidewalk/Kconfig.dependencies"
1 change: 1 addition & 0 deletions tests/unit_tests/pal_timer/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ config SIDEWALK_TIMER
default y

source "Kconfig.zephyr"
source "${ZEPHYR_BASE}/../sidewalk/Kconfig.dependencies"
1 change: 1 addition & 0 deletions tests/unit_tests/pal_uptime/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ config SIDEWALK_UPTIME
default y

source "Kconfig.zephyr"
source "${ZEPHYR_BASE}/../sidewalk/Kconfig.dependencies"
1 change: 1 addition & 0 deletions tests/unit_tests/sid_ace_alloc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ config SID_HAL_PROTOCOL_MEMORY_SZ
default 0

source "Kconfig.zephyr"
source "${ZEPHYR_BASE}/../sidewalk/Kconfig.dependencies"
1 change: 1 addition & 0 deletions tests/unit_tests/sid_ble_adapter_callbacks/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ config SIDEWALK_BLE_ADAPTER_LOG_LEVEL
default 0

source "Kconfig.zephyr"
source "${ZEPHYR_BASE}/../sidewalk/Kconfig.dependencies"
1 change: 1 addition & 0 deletions tests/unit_tests/sid_ble_advert/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ config SIDEWALK_BLE_NAME
default "SID_APP"

source "Kconfig.zephyr"
source "${ZEPHYR_BASE}/../sidewalk/Kconfig.dependencies"
1 change: 1 addition & 0 deletions tests/unit_tests/sid_ble_connection/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ config BT_ID_MAX
default 2

source "Kconfig.zephyr"
source "${ZEPHYR_BASE}/../sidewalk/Kconfig.dependencies"
1 change: 1 addition & 0 deletions tests/unit_tests/sid_ble_service/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ config SIDEWALK_BLE_ADAPTER_LOG_LEVEL
default 0

source "Kconfig.zephyr"
source "${ZEPHYR_BASE}/../sidewalk/Kconfig.dependencies"
1 change: 1 addition & 0 deletions tests/unit_tests/sid_pal_gpio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ config SIDEWALK_GPIO_IRQ_STACK_SIZE
default 2048

source "Kconfig.zephyr"
source "${ZEPHYR_BASE}/../sidewalk/Kconfig.dependencies"
1 change: 1 addition & 0 deletions tests/validation/crypto/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
config SIDEWALK_MFG_STORAGE
default n

source "${ZEPHYR_BASE}/../sidewalk/Kconfig.dependencies"
source "Kconfig.zephyr"
1 change: 1 addition & 0 deletions tests/validation/storage_kv/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
config SIDEWALK_MFG_STORAGE
default n

source "${ZEPHYR_BASE}/../sidewalk/Kconfig.dependencies"
source "Kconfig.zephyr"
1 change: 1 addition & 0 deletions tests/validation/timer/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
config SIDEWALK_MFG_STORAGE
default n

source "${ZEPHYR_BASE}/../sidewalk/Kconfig.dependencies"
source "Kconfig.zephyr"

0 comments on commit 54c77d1

Please sign in to comment.