Skip to content

Commit 3196787

Browse files
committed
tests: skip mfg tests
Skip mfg tests for now. Relace existing tests with simple read write test. Signed-off-by: Krzysztof Taborowski <[email protected]>
1 parent acdb78d commit 3196787

File tree

2 files changed

+36
-8
lines changed

2 files changed

+36
-8
lines changed
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
tests:
22
sidewalk.test.integration.mfg:
3+
skip: true
34
sysbuild: true
45
tags: Sidewalk
56
platform_allow:
67
- nrf52840dk/nrf52840
7-
- nrf5340dk/nrf5340/cpuapp
8-
- nrf54l15dk/nrf54l15/cpuapp
9-
- nrf54l15dk/nrf54l15/cpuapp/ns
10-
- nrf54l15dk/nrf54l10/cpuapp
118
integration_platforms:
129
- nrf52840dk/nrf52840
13-
- nrf5340dk/nrf5340/cpuapp
14-
- nrf54l15dk/nrf54l15/cpuapp
15-
- nrf54l15dk/nrf54l15/cpuapp/ns
16-
- nrf54l15dk/nrf54l10/cpuapp
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright (c) 2022 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include <zephyr/ztest.h>
8+
9+
#include <sid_pal_mfg_store_ifc.h>
10+
#include <sid_error.h>
11+
#include <zephyr/storage/flash_map.h>
12+
13+
ZTEST(mfg, test_mfg_storage_read_write)
14+
{
15+
uint8_t write_data[SID_PAL_MFG_STORE_DEVID_SIZE] = { 1, 2, 3, 4, 5 };
16+
uint8_t read_data[SID_PAL_MFG_STORE_DEVID_SIZE] = { 0 };
17+
18+
sid_pal_mfg_store_region_t mfg_store_region = {
19+
.addr_start = (uintptr_t)(FIXED_PARTITION_OFFSET(mfg_storage)),
20+
.addr_end = (uintptr_t)(FIXED_PARTITION_OFFSET(mfg_storage) +
21+
FIXED_PARTITION_SIZE(mfg_storage)),
22+
.app_value_to_offset = NULL
23+
};
24+
sid_pal_mfg_store_init(mfg_store_region);
25+
26+
zassert_equal(SID_ERROR_NONE, sid_pal_mfg_store_write(SID_PAL_MFG_STORE_SERIAL_NUM, write_data, sizeof(write_data)));
27+
28+
sid_pal_mfg_store_read(SID_PAL_MFG_STORE_DEVID, read_data, sizeof(read_data));
29+
zassert_mem_equal(write_data, read_data, sizeof(write_data),
30+
"Read data does not match written data");
31+
32+
sid_pal_mfg_store_deinit();
33+
}
34+
35+
ZTEST_SUITE(mfg, NULL, NULL, NULL, NULL, NULL);

0 commit comments

Comments
 (0)