mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #14828 from hazzlim/add-cmake-supports-psa-tests
CMake: Add CMake to mbed-psa greentea testspull/14783/head
commit
472c688a83
|
@ -11,6 +11,11 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME ${TEST_TARGET}
|
||||
TEST_REQUIRED_LIBS mbed-ble mbed-events
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-ble
|
||||
mbed-events
|
||||
)
|
||||
|
|
|
@ -11,6 +11,10 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME ${TEST_TARGET}
|
||||
TEST_REQUIRED_LIBS mbed-ble
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-ble
|
||||
)
|
||||
|
|
|
@ -11,6 +11,10 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME ${TEST_TARGET}
|
||||
TEST_REQUIRED_LIBS mbed-lorawan
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-lorawan
|
||||
)
|
||||
|
|
|
@ -11,7 +11,10 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME ${TEST_TARGET}
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-mbedtls
|
||||
)
|
||||
|
|
|
@ -11,7 +11,10 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME ${TEST_TARGET}
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-mbedtls
|
||||
)
|
||||
|
|
|
@ -11,7 +11,10 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME ${TEST_TARGET}
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-mbedtls
|
||||
)
|
||||
|
|
|
@ -13,6 +13,7 @@ project(${TEST_TARGET})
|
|||
list(
|
||||
APPEND
|
||||
TEST_SOURCE_LIST
|
||||
main.cpp
|
||||
synchronous_dns_multiple.cpp
|
||||
synchronous_dns_multi_ip.cpp
|
||||
synchronous_dns_invalid.cpp
|
||||
|
@ -32,7 +33,10 @@ list(
|
|||
)
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME ${TEST_TARGET}
|
||||
TEST_SOURCES ${TEST_SOURCE_LIST}
|
||||
TEST_REQUIRED_LIBS mbed-netsocket
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
${TEST_SOURCE_LIST}
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-netsocket
|
||||
)
|
||||
|
|
|
@ -13,6 +13,7 @@ project(${TEST_TARGET})
|
|||
list(
|
||||
APPEND
|
||||
TEST_SOURCE_LIST
|
||||
main.cpp
|
||||
niddsocket_send_timeout.cpp
|
||||
niddsocket_send_repeat.cpp
|
||||
niddsocket_send_invalid.cpp
|
||||
|
@ -27,7 +28,10 @@ list(
|
|||
)
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME ${TEST_TARGET}
|
||||
TEST_SOURCES ${TEST_SOURCE_LIST}
|
||||
TEST_REQUIRED_LIBS mbed-netsocket
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
${TEST_SOURCE_LIST}
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-netsocket
|
||||
)
|
||||
|
|
|
@ -13,6 +13,7 @@ project(${TEST_TARGET})
|
|||
list(
|
||||
APPEND
|
||||
TEST_SOURCE_LIST
|
||||
main.cpp
|
||||
tcpsocket_thread_per_socket_safety.cpp
|
||||
tcpsocket_setsockopt_keepalive_valid.cpp
|
||||
tcpsocket_send_timeout.cpp
|
||||
|
@ -36,7 +37,10 @@ list(
|
|||
)
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME ${TEST_TARGET}
|
||||
TEST_SOURCES ${TEST_SOURCE_LIST}
|
||||
TEST_REQUIRED_LIBS mbed-netsocket
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
${TEST_SOURCE_LIST}
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-netsocket
|
||||
)
|
||||
|
|
|
@ -13,6 +13,7 @@ project(${TEST_TARGET})
|
|||
list(
|
||||
APPEND
|
||||
TEST_SOURCE_LIST
|
||||
main.cpp
|
||||
tlssocket_simultaneous.cpp
|
||||
tlssocket_send_unconnected.cpp
|
||||
tlssocket_send_timeout.cpp
|
||||
|
@ -31,7 +32,10 @@ list(
|
|||
)
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME ${TEST_TARGET}
|
||||
TEST_SOURCES ${TEST_SOURCE_LIST}
|
||||
TEST_REQUIRED_LIBS mbed-netsocket
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
${TEST_SOURCE_LIST}
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-netsocket
|
||||
)
|
||||
|
|
|
@ -13,6 +13,7 @@ project(${TEST_TARGET})
|
|||
list(
|
||||
APPEND
|
||||
TEST_SOURCE_LIST
|
||||
main.cpp
|
||||
udpsocket_bind_port.cpp
|
||||
udpsocket_bind_address_null.cpp
|
||||
udpsocket_bind_address_invalid.cpp
|
||||
|
@ -33,7 +34,10 @@ list(
|
|||
)
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME ${TEST_TARGET}
|
||||
TEST_SOURCES ${TEST_SOURCE_LIST}
|
||||
TEST_REQUIRED_LIBS mbed-netsocket
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
${TEST_SOURCE_LIST}
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-netsocket
|
||||
)
|
||||
|
|
|
@ -10,24 +10,30 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
list(APPEND TEST_SOURCE_LIST
|
||||
emac_TestMemoryManager.cpp
|
||||
emac_TestNetworkStack.cpp
|
||||
emac_ctp.cpp
|
||||
emac_membuf.cpp
|
||||
emac_test_broadcast.cpp
|
||||
emac_test_initialize.cpp
|
||||
emac_test_memory.cpp
|
||||
emac_test_multicast_filter.cpp
|
||||
emac_test_unicast.cpp
|
||||
emac_test_unicast_burst.cpp
|
||||
emac_test_unicast_frame_len.cpp
|
||||
emac_test_unicast_long.cpp
|
||||
emac_util.cpp
|
||||
list(
|
||||
APPEND
|
||||
TEST_SOURCE_LIST
|
||||
main.cpp
|
||||
emac_TestMemoryManager.cpp
|
||||
emac_TestNetworkStack.cpp
|
||||
emac_ctp.cpp
|
||||
emac_membuf.cpp
|
||||
emac_test_broadcast.cpp
|
||||
emac_test_initialize.cpp
|
||||
emac_test_memory.cpp
|
||||
emac_test_multicast_filter.cpp
|
||||
emac_test_unicast.cpp
|
||||
emac_test_unicast_burst.cpp
|
||||
emac_test_unicast_frame_len.cpp
|
||||
emac_test_unicast_long.cpp
|
||||
emac_util.cpp
|
||||
)
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME ${TEST_TARGET}
|
||||
TEST_SOURCES ${TEST_SOURCE_LIST}
|
||||
TEST_REQUIRED_LIBS mbed-emac
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
${TEST_SOURCE_LIST}
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-emac
|
||||
)
|
||||
|
|
|
@ -10,13 +10,19 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
list(APPEND TEST_SOURCE_LIST
|
||||
networkinterface_conn_disc_repeat.cpp
|
||||
networkinterface_status.cpp
|
||||
list(
|
||||
APPEND
|
||||
TEST_SOURCE_LIST
|
||||
main.cpp
|
||||
networkinterface_conn_disc_repeat.cpp
|
||||
networkinterface_status.cpp
|
||||
)
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME ${TEST_TARGET}
|
||||
TEST_SOURCES ${TEST_SOURCE_LIST}
|
||||
TEST_REQUIRED_LIBS mbed-netsocket
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
${TEST_SOURCE_LIST}
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-netsocket
|
||||
)
|
||||
|
|
|
@ -10,10 +10,18 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
list(APPEND TEST_SOURCE_LIST cellular_driver_l3ip.cpp)
|
||||
list(
|
||||
APPEND
|
||||
TEST_SOURCE_LIST
|
||||
main.cpp
|
||||
cellular_driver_l3ip.cpp
|
||||
)
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME ${TEST_TARGET}
|
||||
TEST_SOURCES ${TEST_SOURCE_LIST}
|
||||
TEST_REQUIRED_LIBS mbed-netsocket
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
${TEST_SOURCE_LIST}
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-netsocket
|
||||
)
|
||||
|
|
|
@ -10,14 +10,21 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
list(APPEND TEST_SOURCE_LIST
|
||||
multihoming_asynchronous_dns.cpp
|
||||
multihoming_synchronous_dns.cpp
|
||||
multihoming_udpsocket_echotest.cpp
|
||||
list(
|
||||
APPEND
|
||||
TEST_SOURCE_LIST
|
||||
main.cpp
|
||||
multihoming_asynchronous_dns.cpp
|
||||
multihoming_synchronous_dns.cpp
|
||||
multihoming_udpsocket_echotest.cpp
|
||||
)
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME ${TEST_TARGET}
|
||||
TEST_SOURCES ${TEST_SOURCE_LIST}
|
||||
TEST_REQUIRED_LIBS mbed-netsocket mbed-nanostack
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
${TEST_SOURCE_LIST}
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-netsocket
|
||||
mbed-nanostack
|
||||
)
|
||||
|
|
|
@ -10,29 +10,35 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
list(APPEND TEST_SOURCE_LIST
|
||||
get_interface.cpp
|
||||
get_security.cpp
|
||||
wifi-constructor.cpp
|
||||
wifi_connect.cpp
|
||||
wifi_connect_disconnect_nonblock.cpp
|
||||
wifi_connect_disconnect_repeat.cpp
|
||||
wifi_connect_nocredentials.cpp
|
||||
wifi_connect_params_channel.cpp
|
||||
wifi_connect_params_channel_fail.cpp
|
||||
wifi_connect_params_null.cpp
|
||||
wifi_connect_params_valid_secure.cpp
|
||||
wifi_connect_secure.cpp
|
||||
wifi_connect_secure_fail.cpp
|
||||
wifi_get_rssi.cpp
|
||||
wifi_scan.cpp
|
||||
wifi_scan_null.cpp
|
||||
wifi_set_channel.cpp
|
||||
wifi_set_credential.cpp
|
||||
list(
|
||||
APPEND
|
||||
TEST_SOURCE_LIST
|
||||
main.cpp
|
||||
get_interface.cpp
|
||||
get_security.cpp
|
||||
wifi-constructor.cpp
|
||||
wifi_connect.cpp
|
||||
wifi_connect_disconnect_nonblock.cpp
|
||||
wifi_connect_disconnect_repeat.cpp
|
||||
wifi_connect_nocredentials.cpp
|
||||
wifi_connect_params_channel.cpp
|
||||
wifi_connect_params_channel_fail.cpp
|
||||
wifi_connect_params_null.cpp
|
||||
wifi_connect_params_valid_secure.cpp
|
||||
wifi_connect_secure.cpp
|
||||
wifi_connect_secure_fail.cpp
|
||||
wifi_get_rssi.cpp
|
||||
wifi_scan.cpp
|
||||
wifi_scan_null.cpp
|
||||
wifi_set_channel.cpp
|
||||
wifi_set_credential.cpp
|
||||
)
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME ${TEST_TARGET}
|
||||
TEST_SOURCES ${TEST_SOURCE_LIST}
|
||||
TEST_REQUIRED_LIBS mbed-netsocket
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
${TEST_SOURCE_LIST}
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-netsocket
|
||||
)
|
||||
|
|
|
@ -11,7 +11,10 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME ${TEST_TARGET}
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-nfc
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -11,6 +11,10 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME ${TEST_TARGET}
|
||||
TEST_REQUIRED_LIBS mbed-events
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-events
|
||||
)
|
||||
|
|
|
@ -11,6 +11,10 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME ${TEST_TARGET}
|
||||
TEST_REQUIRED_LIBS mbed-events
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-events
|
||||
)
|
||||
|
|
|
@ -11,6 +11,10 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME ${TEST_TARGET}
|
||||
TEST_REQUIRED_LIBS mbed-events
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-events
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -3,11 +3,16 @@
|
|||
|
||||
cmake_minimum_required(VERSION 3.19.0 FATAL_ERROR)
|
||||
|
||||
set(MBED_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../../.. CACHE INTERNAL "")
|
||||
set(MBED_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../../../.. CACHE INTERNAL "")
|
||||
set(TEST_TARGET mbed-hal-flash-functional-tests)
|
||||
|
||||
include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
||||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,7 +10,12 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET}
|
||||
TEST_SOURCES ospi_test_utils.cpp
|
||||
TEST_INCLUDE_DIRS flash_configs
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
ospi_test_utils.cpp
|
||||
TEST_INCLUDE_DIRS
|
||||
flash_configs
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -22,10 +22,20 @@ elseif(TARGET mbed-efm32gg11-stk3701)
|
|||
set(FLASH_TARGET_CONFIG_HEADER SiliconLabs/EFM32GG11_STK3701)
|
||||
endif()
|
||||
|
||||
list(APPEND TEST_HEADER_DIRS flash_configs flash_configs/${FLASH_TARGET_CONFIG_HEADER})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET}
|
||||
TEST_SOURCES qspi_test_utils.cpp
|
||||
TEST_INCLUDE_DIRS ${TEST_HEADER_DIRS}
|
||||
list(
|
||||
APPEND
|
||||
TEST_HEADER_DIRS
|
||||
flash_configs
|
||||
flash_configs/${FLASH_TARGET_CONFIG_HEADER}
|
||||
)
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
qspi_test_utils.cpp
|
||||
TEST_INCLUDE_DIRS
|
||||
${TEST_HEADER_DIRS}
|
||||
)
|
||||
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,10 +10,26 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
list(APPEND TEST_SOURCE_LIST base64b/base64b.cpp pithy/pithy.c)
|
||||
list(APPEND TEST_INC_DIRS base64b pithy)
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET}
|
||||
TEST_SOURCES ${TEST_SOURCE_LIST}
|
||||
TEST_INCLUDE_DIRS ${TEST_INC_DIRS}
|
||||
list(
|
||||
APPEND
|
||||
TEST_SOURCE_LIST
|
||||
main.cpp
|
||||
base64b/base64b.cpp
|
||||
pithy/pithy.c
|
||||
)
|
||||
|
||||
list(
|
||||
APPEND
|
||||
TEST_INC_DIRS
|
||||
base64b
|
||||
pithy
|
||||
)
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
${TEST_SOURCE_LIST}
|
||||
TEST_INCLUDE_DIRS
|
||||
${TEST_INC_DIRS}
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -10,4 +10,9 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
# 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-hal-fpga-ci-test-shield)
|
||||
|
||||
include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
||||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET})
|
|
@ -10,6 +10,18 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
list(APPEND TEST_REQ_LIBS_LIST mbed-fpga-ci-test-shield mbed-storage-blockdevice)
|
||||
list(
|
||||
APPEND
|
||||
TEST_REQ_LIBS_LIST
|
||||
mbed-fpga-ci-test-shield
|
||||
mbed-storage-blockdevice
|
||||
)
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET} TEST_REQUIRED_LIBS ${TEST_REQ_LIBS_LIST})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
TEST_REQUIRED_LIBS
|
||||
${TEST_REQ_LIBS_LIST}
|
||||
)
|
||||
|
|
|
@ -10,6 +10,18 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
list(APPEND TEST_REQ_LIBS_LIST mbed-fpga-ci-test-shield mbed-storage-blockdevice)
|
||||
list(
|
||||
APPEND
|
||||
TEST_REQ_LIBS_LIST
|
||||
mbed-fpga-ci-test-shield
|
||||
mbed-storage-blockdevice
|
||||
)
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET} TEST_REQUIRED_LIBS ${TEST_REQ_LIBS_LIST})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
TEST_REQUIRED_LIBS
|
||||
${TEST_REQ_LIBS_LIST}
|
||||
)
|
||||
|
|
|
@ -10,6 +10,18 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
list(APPEND TEST_REQ_LIBS_LIST mbed-fpga-ci-test-shield mbed-storage-blockdevice)
|
||||
list(
|
||||
APPEND
|
||||
TEST_REQ_LIBS_LIST
|
||||
mbed-fpga-ci-test-shield
|
||||
mbed-storage-blockdevice
|
||||
)
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET} TEST_REQUIRED_LIBS ${TEST_REQ_LIBS_LIST})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
TEST_REQUIRED_LIBS
|
||||
${TEST_REQ_LIBS_LIST}
|
||||
)
|
||||
|
|
|
@ -10,6 +10,18 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
list(APPEND TEST_REQ_LIBS_LIST mbed-fpga-ci-test-shield mbed-storage-blockdevice)
|
||||
list(
|
||||
APPEND
|
||||
TEST_REQ_LIBS_LIST
|
||||
mbed-fpga-ci-test-shield
|
||||
mbed-storage-blockdevice
|
||||
)
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET} TEST_REQUIRED_LIBS ${TEST_REQ_LIBS_LIST})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
TEST_REQUIRED_LIBS
|
||||
${TEST_REQ_LIBS_LIST}
|
||||
)
|
||||
|
|
|
@ -10,6 +10,18 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
list(APPEND TEST_REQ_LIBS_LIST mbed-fpga-ci-test-shield mbed-storage-blockdevice)
|
||||
list(
|
||||
APPEND
|
||||
TEST_REQ_LIBS_LIST
|
||||
mbed-fpga-ci-test-shield
|
||||
mbed-storage-blockdevice
|
||||
)
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET} TEST_REQUIRED_LIBS ${TEST_REQ_LIBS_LIST})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
TEST_REQUIRED_LIBS
|
||||
${TEST_REQ_LIBS_LIST}
|
||||
)
|
||||
|
|
|
@ -10,6 +10,18 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
list(APPEND TEST_REQ_LIBS_LIST mbed-fpga-ci-test-shield mbed-storage-blockdevice)
|
||||
list(
|
||||
APPEND
|
||||
TEST_REQ_LIBS_LIST
|
||||
mbed-fpga-ci-test-shield
|
||||
mbed-storage-blockdevice
|
||||
)
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET} TEST_REQUIRED_LIBS ${TEST_REQ_LIBS_LIST})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
TEST_REQUIRED_LIBS
|
||||
${TEST_REQ_LIBS_LIST}
|
||||
)
|
||||
|
|
|
@ -10,6 +10,18 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
list(APPEND TEST_REQ_LIBS_LIST mbed-fpga-ci-test-shield mbed-storage-blockdevice)
|
||||
list(
|
||||
APPEND
|
||||
TEST_REQ_LIBS_LIST
|
||||
mbed-fpga-ci-test-shield
|
||||
mbed-storage-blockdevice
|
||||
)
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET} TEST_REQUIRED_LIBS ${TEST_REQ_LIBS_LIST})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
TEST_REQUIRED_LIBS
|
||||
${TEST_REQ_LIBS_LIST}
|
||||
)
|
||||
|
|
|
@ -10,6 +10,18 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
|||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
list(APPEND TEST_REQ_LIBS_LIST mbed-fpga-ci-test-shield mbed-storage-blockdevice)
|
||||
list(
|
||||
APPEND
|
||||
TEST_REQ_LIBS_LIST
|
||||
mbed-fpga-ci-test-shield
|
||||
mbed-storage-blockdevice
|
||||
)
|
||||
|
||||
mbed_greentea_add_test(TEST_NAME ${TEST_TARGET} TEST_REQUIRED_LIBS ${TEST_REQ_LIBS_LIST})
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
TEST_REQUIRED_LIBS
|
||||
${TEST_REQ_LIBS_LIST}
|
||||
)
|
||||
|
|
|
@ -6,7 +6,6 @@ target_include_directories(mbed-psa
|
|||
inc
|
||||
inc/psa
|
||||
mbedtls
|
||||
pal
|
||||
services/platform
|
||||
services/attestation
|
||||
services/attestation/qcbor
|
||||
|
@ -28,13 +27,6 @@ target_sources(mbed-psa
|
|||
mbedtls/psa_crypto_storage.c
|
||||
mbedtls/psa_its_file.c
|
||||
|
||||
pal/pal_attestation_eat.c
|
||||
pal/pal_attestation_intf.c
|
||||
pal/pal_client_api_empty_intf.c
|
||||
pal/pal_client_api_intf.c
|
||||
pal/pal_internal_trusted_storage_intf.c
|
||||
pal/pal_protected_storage_intf.c
|
||||
|
||||
services/attestation/attest_boot_status_loader.c
|
||||
services/attestation/attest_crypto.c
|
||||
services/attestation/attest_crypto_keys.c
|
||||
|
@ -78,3 +70,6 @@ target_link_libraries(mbed-psa
|
|||
mbed-storage-kv-global-api
|
||||
mbed-device_key
|
||||
)
|
||||
|
||||
add_subdirectory(test_abstraction_layers)
|
||||
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
# Copyright (c) 2021 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-platform-psa-attestation)
|
||||
|
||||
include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
||||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
|
@ -0,0 +1,22 @@
|
|||
# Copyright (c) 2021 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-platform-psa-compliance-attestation-a001)
|
||||
|
||||
include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
||||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.c
|
||||
test_entry.c
|
||||
test_a001.c
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-psa-tal
|
||||
)
|
|
@ -0,0 +1,22 @@
|
|||
# Copyright (c) 2021 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-platform-psa-compliance-its-s001)
|
||||
|
||||
include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
||||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.c
|
||||
test_entry.c
|
||||
test_s001.c
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-psa-tal
|
||||
)
|
|
@ -0,0 +1,22 @@
|
|||
# Copyright (c) 2021 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-platform-psa-compliance-its-s002)
|
||||
|
||||
include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
||||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.c
|
||||
test_entry.c
|
||||
test_s002.c
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-psa-tal
|
||||
)
|
|
@ -0,0 +1,22 @@
|
|||
# Copyright (c) 2021 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-platform-psa-compliance-its-s003)
|
||||
|
||||
include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
||||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.c
|
||||
test_entry.c
|
||||
test_s003.c
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-psa-tal
|
||||
)
|
|
@ -0,0 +1,22 @@
|
|||
# Copyright (c) 2021 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-platform-psa-compliance-its-s004)
|
||||
|
||||
include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
||||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.c
|
||||
test_entry.c
|
||||
test_s004.c
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-psa-tal
|
||||
)
|
|
@ -0,0 +1,22 @@
|
|||
# Copyright (c) 2021 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-platform-psa-compliance-its-s005)
|
||||
|
||||
include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
||||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.c
|
||||
test_entry.c
|
||||
test_s005.c
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-psa-tal
|
||||
)
|
|
@ -0,0 +1,22 @@
|
|||
# Copyright (c) 2021 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-platform-psa-compliance-its-s006)
|
||||
|
||||
include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
||||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.c
|
||||
test_entry.c
|
||||
test_s006.c
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-psa-tal
|
||||
)
|
|
@ -0,0 +1,22 @@
|
|||
# Copyright (c) 2021 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-platform-psa-compliance-its-s007)
|
||||
|
||||
include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
||||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.c
|
||||
test_entry.c
|
||||
test_s007.c
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-psa-tal
|
||||
)
|
|
@ -0,0 +1,22 @@
|
|||
# Copyright (c) 2021 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-platform-psa-compliance-its-s008)
|
||||
|
||||
include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
||||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.c
|
||||
test_entry.c
|
||||
test_s008.c
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-psa-tal
|
||||
)
|
|
@ -0,0 +1,22 @@
|
|||
# Copyright (c) 2021 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-platform-psa-compliance-its-s009)
|
||||
|
||||
include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
||||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.c
|
||||
test_entry.c
|
||||
test_s009.c
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-psa-tal
|
||||
)
|
|
@ -0,0 +1,22 @@
|
|||
# Copyright (c) 2021 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-platform-psa-compliance-its-s010)
|
||||
|
||||
include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
||||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.c
|
||||
test_entry.c
|
||||
test_s010.c
|
||||
TEST_REQUIRED_LIBS
|
||||
mbed-psa-tal
|
||||
)
|
|
@ -0,0 +1,18 @@
|
|||
# Copyright (c) 2021 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-platform-psa-crypto-init)
|
||||
|
||||
include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
||||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
|
@ -0,0 +1,18 @@
|
|||
# Copyright (c) 2021 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-platform-psa-entropy-inject)
|
||||
|
||||
include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
||||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
|
@ -0,0 +1,18 @@
|
|||
# Copyright (c) 2021 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-platform-psa-its-ps)
|
||||
|
||||
include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
|
||||
|
||||
project(${TEST_TARGET})
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
${TEST_TARGET}
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
)
|
|
@ -0,0 +1,32 @@
|
|||
# Copyright (c) 2021 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(mbed-psa-tal INTERFACE)
|
||||
|
||||
target_include_directories(mbed-psa-tal
|
||||
INTERFACE
|
||||
pal
|
||||
val
|
||||
)
|
||||
|
||||
target_sources(mbed-psa-tal
|
||||
INTERFACE
|
||||
pal/pal_attestation_eat.c
|
||||
pal/pal_attestation_intf.c
|
||||
pal/pal_client_api_empty_intf.c
|
||||
pal/pal_client_api_intf.c
|
||||
pal/pal_internal_trusted_storage_intf.c
|
||||
pal/pal_protected_storage_intf.c
|
||||
pal/pal_mbed_os_intf.cpp
|
||||
|
||||
val/val_attestation.c
|
||||
val/val_interfaces.c
|
||||
val/val_internal_trusted_storage.c
|
||||
val/val_protected_storage.c
|
||||
val/val_greentea.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(mbed-psa-tal
|
||||
INTERFACE
|
||||
mbed-psa
|
||||
)
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue