Skip to content

Commit 48e6049

Browse files
author
Jamie Smith
committed
Start on fixing some unintentionally skipped tests
1 parent 3297bae commit 48e6049

File tree

16 files changed

+39
-34
lines changed

16 files changed

+39
-34
lines changed

TESTS/integration/COMMON/common_defines_fs_test.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#elif COMPONENT_NUSD
3535
#define TEST_BLOCK_DEVICE_TYPE "NUSD"
3636
#define TEST_USE_FILESYSTEM FS_FAT
37-
#elif COMPONENT_FLASHIAP && MBED_CONF_FLASHIAP_BLOCK_DEVICE_SIZE
37+
#elif DEVICE_FLASH && MBED_CONF_FLASHIAP_BLOCK_DEVICE_SIZE
3838
#define TEST_BLOCK_DEVICE_TYPE "FLASHIAP"
3939
#else
4040
#define TEST_BLOCK_DEVICE_TYPE "UNKNOWN"

drivers/device_key/include/device_key/DeviceKey.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
// Whole class is not supported if entropy is not enabled
2727
// Flash device is required as Device Key is currently depending on it
28-
#if !DEVICE_FLASH || !defined(COMPONENT_FLASHIAP)
28+
#if !DEVICE_FLASH
2929
#undef DEVICEKEY_ENABLED
3030
#define DEVICEKEY_ENABLED 0
3131
#endif

drivers/device_key/tests/TESTS/device_key/functionality/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if(NOT "DEVICE_TRNG=1" IN_LIST MBED_TARGET_DEFINITIONS)
55
set(TEST_SKIPPED "True RNG is not supported for this target so device key cannot be used")
66
endif()
77

8-
if(NOT ("DEVICE_FLASH=1" IN_LIST MBED_TARGET_DEFINITIONS AND "COMPONENT_FLASHIAP=1" IN_LIST MBED_TARGET_DEFINITIONS))
8+
if(NOT "DEVICE_FLASH=1" IN_LIST MBED_TARGET_DEFINITIONS)
99
set(TEST_SKIPPED "Flash IAP is not supported for this target so device key cannot be used")
1010
endif()
1111

platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_MBED_PSA_SRV/TESTS/its_ps/test/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ utest::v1::status_t case_its_setup_handler(const Case *const source, const size_
220220
Case cases[] = {
221221
Case("PSA prot internal storage - Basic", case_its_setup_handler<its>, pits_ps_test<its>, case_its_teardown_handler),
222222
Case("PSA prot internal storage - Write-once", case_its_setup_handler<its>, pits_ps_write_once_test<its>, case_its_teardown_handler),
223-
#if COMPONENT_FLASHIAP
223+
#if DEVICE_FLASH
224224
Case("PSA protected storage - Basic", case_its_setup_handler<ps>, pits_ps_test<ps>),
225225
Case("PSA protected storage - Write-once", case_its_setup_handler<ps>, pits_ps_write_once_test<ps>)
226226
#endif

platform/tests/TESTS/mbed_platform/crash_reporting/CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
include(mbed_greentea)
5-
6-
if(NOT DEFINED MBED_CONF_PLATFORM_CRASH_CAPTURE_ENABLED)
7-
set(TEST_SKIPPED "crash_reporting test not supported.")
4+
if(NOT "MBED_CONF_PLATFORM_CRASH_CAPTURE_ENABLED=1" IN_LIST MBED_CONFIG_DEFINITIONS)
5+
set(TEST_SKIPPED "CRC is not supported for this target")
86
endif()
97

108
mbed_greentea_add_test(

platform/tests/TESTS/mbed_platform/stats_cpu/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33

44
include(mbed_greentea)
55

6-
if(NOT DEFINED MBED_CPU_STATS_ENABLED OR NOT "DEVICE_LPTICKER=1" IN_LIST MBED_TARGET_DEFINITIONS
7-
OR NOT "DEVICE_SLEEP=1" IN_LIST MBED_TARGET_DEFINITIONS)
6+
if(NOT "DEVICE_LPTICKER=1" IN_LIST MBED_TARGET_DEFINITIONS OR NOT "DEVICE_SLEEP=1" IN_LIST MBED_TARGET_DEFINITIONS)
87
set(TEST_SKIPPED "Stats cpu test not supported.")
98
endif()
109

10+
if(NOT "MBED_CPU_STATS_ENABLED=1" IN_LIST MBED_CONFIG_DEFINITIONS)
11+
set(TEST_SKIPPED "CPU stats not enabled")
12+
endif()
13+
1114
mbed_greentea_add_test(
1215
TEST_NAME
1316
mbed-platform-stats-cpu

platform/tests/TESTS/mbed_platform/stats_heap/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33

44
include(mbed_greentea)
55

6-
if(NOT DEFINED MBED_HEAP_STATS_ENABLED)
7-
set(TEST_SKIPPED "Stats heap test not supported.")
6+
if(NOT "MBED_HEAP_STATS_ENABLED=1" IN_LIST MBED_CONFIG_DEFINITIONS)
7+
set(TEST_SKIPPED "heap stats not enabled")
88
endif()
99

10+
1011
mbed_greentea_add_test(
1112
TEST_NAME
1213
mbed-platform-stats-heap

platform/tests/TESTS/mbed_platform/stats_sys/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
include(mbed_greentea)
55

6-
if(NOT DEFINED MBED_SYS_STATS_ENABLED)
7-
set(TEST_SKIPPED "System stats test not supported.")
6+
if(NOT "MBED_SYS_STATS_ENABLED=1" IN_LIST MBED_CONFIG_DEFINITIONS)
7+
set(TEST_SKIPPED "System stats not enabled")
88
endif()
99

1010
mbed_greentea_add_test(

storage/kvstore/direct_access_devicekey/tests/TESTS/direct_access_devicekey/tdb/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
#ifndef COMPONENT_FLASHIAP
18+
#ifndef DEVICE_FLASH
1919
#error [NOT_SUPPORTED] Target must have internal FlashIAP for this test
2020
#else
2121

@@ -323,4 +323,4 @@ int main()
323323
return !Harness::run(specification);
324324
}
325325

326-
#endif // COMPONENT_FLASHIAP
326+
#endif // DEVICE_FLASH

storage/kvstore/kv_config/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ target_link_libraries(mbed-storage-kv-config
2626
mbed-storage-littlefs-v2
2727
mbed-storage-fat
2828
)
29+
30+
if("DEVICE_FLASH=1" IN_LIST MBED_TARGET_DEFINITIONS)
31+
target_link_libraries(mbed-storage-kv-config PUBLIC mbed-storage-flashiap)
32+
endif()

0 commit comments

Comments
 (0)