CMake: Add support for KVstore Greentea tests

The KVstore Greentea tests can now be built with CMake
pull/14088/head
Hugues Kamba 2020-12-24 14:16:07 +00:00
parent 994662ab5f
commit 377fba47e2
3 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.19.0 FATAL_ERROR)
set(MBED_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../../../.. CACHE INTERNAL "")
set(TEST_TARGET mbed-storage-kvstore-general_tests_phase_1)
include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
project(${TEST_TARGET})
mbed_greentea_cmake_macro(
TEST_NAME ${TEST_TARGET}
TEST_REQUIRED_LIBS
mbed-storage
mbed-storage-filesystemstore
)

View File

@ -0,0 +1,18 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.19.0 FATAL_ERROR)
set(MBED_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../../../.. CACHE INTERNAL "")
set(TEST_TARGET mbed-storage-kvstore-general_tests_phase_2)
include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
project(${TEST_TARGET})
mbed_greentea_cmake_macro(
TEST_NAME ${TEST_TARGET}
TEST_REQUIRED_LIBS
mbed-storage
mbed-storage-filesystemstore
)

View File

@ -0,0 +1,17 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.19.0 FATAL_ERROR)
set(MBED_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../../../.. CACHE INTERNAL "")
set(TEST_TARGET mbed-storage-kvstore-static_tests)
include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
project(${TEST_TARGET})
mbed_greentea_cmake_macro(
TEST_NAME ${TEST_TARGET}
TEST_REQUIRED_LIBS
mbed-storage-kv-global-api
)