Skip to content

Commit

Permalink
tests: move mfg storage test
Browse files Browse the repository at this point in the history
Tests skipped - to be rewritten

Signed-off-by: Krzysztof Taborowski <[email protected]>
  • Loading branch information
ktaborowski committed Dec 18, 2024
1 parent 5798542 commit 8a4a223
Show file tree
Hide file tree
Showing 13 changed files with 43 additions and 43 deletions.
29 changes: 0 additions & 29 deletions tests/functional/mfg_storage/testcase.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
cmake_minimum_required(VERSION 3.20.0)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(sidewalk_functional_test)
project(sidewalk_mfg_test)

# add test file
FILE(GLOB app_sources src/*.c)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ config SIDEWALK_BUILD
default y

config SIDEWALK_MFG_STORAGE
imply FLASH
default y

config SIDEWALK_LOG_LEVEL
default 0

config SHELL
default y

config SIDEWALK_MFG_STORAGE_DIAGNOSTIC
Expand All @@ -28,4 +21,8 @@ config SIDEWALK_TLV_FLASH
config SIDEWALK_TLV_RAM
default y

config SIDEWALK_LOG_LEVEL
default 0

source "Kconfig.zephyr"
source "${ZEPHYR_BASE}/../sidewalk/Kconfig.dependencies"
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

&cpuapp_rram {
reg = <0x0 DT_SIZE_K(1024)>;
};

&cpuapp_sram {
reg = <0x20000000 DT_SIZE_K(192)>;
ranges = <0x0 0x20000000 DT_SIZE_K(192)>;
};
4 changes: 4 additions & 0 deletions tests_new/integration/mfg/pm_static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mfg_storage:
address: 0xff000
region: flash_primary
size: 0x1000
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mfg_storage:
address: 0xff000
region: flash_primary
size: 0x1000
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

CONFIG_ZTEST=y
CONFIG_MAIN_THREAD_PRIORITY=14
CONFIG_PARTITION_MANAGER_ENABLED=y
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,4 @@ ZTEST(mfg_storage, test_7sid_pal_mfg_storage_sn_get)
zassert_mem_equal(fake_serial_num, serial_num, SID_PAL_MFG_STORE_SERIAL_NUM_SIZE);
}

ZTEST(mfg_storage, test_sanity)
{
zassert_equal(true, true);
}

ZTEST_SUITE(mfg_storage, NULL, NULL, NULL, NULL, NULL);
16 changes: 16 additions & 0 deletions tests_new/integration/mfg/testcase.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
tests:
sidewalk.test.integration.mfg:
sysbuild: true
tags: Sidewalk
platform_allow:
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l15dk/nrf54l15/cpuapp/ns
- nrf54l15dk/nrf54l10/cpuapp
integration_platforms:
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l15dk/nrf54l15/cpuapp/ns
- nrf54l15dk/nrf54l10/cpuapp

0 comments on commit 8a4a223

Please sign in to comment.