diff --git a/hal/tests/TESTS/mbed_hal/flash/functional_tests/CMakeLists.txt b/hal/tests/TESTS/mbed_hal/flash/functional_tests/CMakeLists.txt index 33f0730..d7e3999 100644 --- a/hal/tests/TESTS/mbed_hal/flash/functional_tests/CMakeLists.txt +++ b/hal/tests/TESTS/mbed_hal/flash/functional_tests/CMakeLists.txt @@ -1,6 +1,10 @@ # Copyright (c) 2020 ARM Limited. All rights reserved. # SPDX-License-Identifier: Apache-2.0 +if(NOT "DEVICE_FLASH=1" IN_LIST MBED_TARGET_DEFINITIONS) + set(TEST_SKIPPED "Flash In-Application Programming is not supported for this target") +endif() + mbed_greentea_add_test( TEST_NAME mbed-hal-flash-functional-tests @@ -8,4 +12,6 @@ main.cpp HOST_TESTS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../host_tests + TEST_SKIPPED + ${TEST_SKIPPED} ) \ No newline at end of file diff --git a/hal/tests/TESTS/mbed_hal/lp_ticker/CMakeLists.txt b/hal/tests/TESTS/mbed_hal/lp_ticker/CMakeLists.txt index 4f48b8f..296d16f 100644 --- a/hal/tests/TESTS/mbed_hal/lp_ticker/CMakeLists.txt +++ b/hal/tests/TESTS/mbed_hal/lp_ticker/CMakeLists.txt @@ -1,6 +1,10 @@ # Copyright (c) 2020 ARM Limited. All rights reserved. # SPDX-License-Identifier: Apache-2.0 +if(NOT "DEVICE_LPTICKER=1" IN_LIST MBED_TARGET_DEFINITIONS) + set(TEST_SKIPPED "Low-Power Ticker is not supported for this target") +endif() + mbed_greentea_add_test( TEST_NAME mbed-hal-lp-ticker @@ -8,4 +12,6 @@ main.cpp HOST_TESTS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../host_tests + TEST_SKIPPED + ${TEST_SKIPPED} ) \ No newline at end of file