1 /*
2 * Copyright (c) 2022 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7 #include <zephyr/ztest.h>
8
9 /**
10 * @brief Test .
11 *
12 */
ZTEST(kconfigoptions,test_kconfigoptions_array_hex)13 ZTEST(kconfigoptions, test_kconfigoptions_array_hex)
14 {
15 zassert_equal(0x1, CONFIG_FLASH_CONTROLLER_ADDRESS,
16 "Unexpected flash controller address (%d)", CONFIG_FLASH_CONTROLLER_ADDRESS);
17 }
18
ZTEST(kconfigoptions,test_kconfigoptions_array_int)19 ZTEST(kconfigoptions, test_kconfigoptions_array_int)
20 {
21 zassert_equal(4194304, CONFIG_FLASH_CONTROLLER_SIZE,
22 "Unexpected flash controller size (%d)", CONFIG_FLASH_CONTROLLER_SIZE);
23 }
24
ZTEST(kconfigoptions,test_kconfigoptions_addr_nodelabel)25 ZTEST(kconfigoptions, test_kconfigoptions_addr_nodelabel)
26 {
27 zassert_equal(1, CONFIG_FLASH_CONTROLLER_ADDR_INT_NODELABEL, "Unexpected value");
28 zassert_equal(1, CONFIG_FLASH_CONTROLLER_ADDR_HEX_NODELABEL, "Unexpected value");
29 }
30
ZTEST(kconfigoptions,test_kconfigoptions_size_nodelabel)31 ZTEST(kconfigoptions, test_kconfigoptions_size_nodelabel)
32 {
33 zassert_equal(4194304, CONFIG_FLASH_CONTROLLER_SIZE_INT_NODELABEL, "Unexpected value");
34 zassert_equal(4194304, CONFIG_FLASH_CONTROLLER_SIZE_HEX_NODELABEL, "Unexpected value");
35 }
36
37 ZTEST_SUITE(kconfigoptions, NULL, NULL, NULL, NULL, NULL);
38