Skip to content

Commit 3ffd182

Browse files
Revert "Start on fixing some unintentionally skipped tests"
1 parent ee92753 commit 3ffd182

File tree

16 files changed

+34
-39
lines changed

16 files changed

+34
-39
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 DEVICE_FLASH && MBED_CONF_FLASHIAP_BLOCK_DEVICE_SIZE
37+
#elif COMPONENT_FLASHIAP && 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
28+
#if !DEVICE_FLASH || !defined(COMPONENT_FLASHIAP)
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)
8+
if(NOT ("DEVICE_FLASH=1" IN_LIST MBED_TARGET_DEFINITIONS AND "COMPONENT_FLASHIAP=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 DEVICE_FLASH
223+
#if COMPONENT_FLASHIAP
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: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

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")
4+
include(mbed_greentea)
5+
6+
if(NOT DEFINED MBED_CONF_PLATFORM_CRASH_CAPTURE_ENABLED)
7+
set(TEST_SKIPPED "crash_reporting test not supported.")
68
endif()
79

810
mbed_greentea_add_test(

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

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

44
include(mbed_greentea)
55

6-
if(NOT "DEVICE_LPTICKER=1" IN_LIST MBED_TARGET_DEFINITIONS OR NOT "DEVICE_SLEEP=1" IN_LIST MBED_TARGET_DEFINITIONS)
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)
78
set(TEST_SKIPPED "Stats cpu test not supported.")
89
endif()
910

10-
if(NOT "MBED_CPU_STATS_ENABLED=1" IN_LIST MBED_CONFIG_DEFINITIONS)
11-
set(TEST_SKIPPED "CPU stats not enabled")
12-
endif()
13-
1411
mbed_greentea_add_test(
1512
TEST_NAME
1613
mbed-platform-stats-cpu

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

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

44
include(mbed_greentea)
55

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

10-
1110
mbed_greentea_add_test(
1211
TEST_NAME
1312
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 "MBED_SYS_STATS_ENABLED=1" IN_LIST MBED_CONFIG_DEFINITIONS)
7-
set(TEST_SKIPPED "System stats not enabled")
6+
if(NOT DEFINED MBED_SYS_STATS_ENABLED)
7+
set(TEST_SKIPPED "System stats test not supported.")
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 DEVICE_FLASH
18+
#ifndef COMPONENT_FLASHIAP
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 // DEVICE_FLASH
326+
#endif // COMPONENT_FLASHIAP

storage/kvstore/kv_config/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,3 @@ 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)