Skip to content

CMake: Add support for netsocket/network Greentea tests #14103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions connectivity/netsocket/tests/TESTS/network/emac/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 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-connectivity-netsocket-network-emac)

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
)

mbed_greentea_cmake_macro(
TEST_NAME ${TEST_TARGET}
TEST_SOURCES ${TEST_SOURCE_LIST}
TEST_REQUIRED_LIBS mbed-emac
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# 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-connectivity-netsocket-network-interface)

include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)

project(${TEST_TARGET})

list(APPEND TEST_SOURCE_LIST
networkinterface_conn_disc_repeat.cpp
networkinterface_status.cpp
)

mbed_greentea_cmake_macro(
TEST_NAME ${TEST_TARGET}
TEST_SOURCES ${TEST_SOURCE_LIST}
TEST_REQUIRED_LIBS mbed-netsocket
)
19 changes: 19 additions & 0 deletions connectivity/netsocket/tests/TESTS/network/l3ip/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# 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-connectivity-netsocket-network-l3ip)

include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)

project(${TEST_TARGET})

list(APPEND TEST_SOURCE_LIST cellular_driver_l3ip.cpp)

mbed_greentea_cmake_macro(
TEST_NAME ${TEST_TARGET}
TEST_SOURCES ${TEST_SOURCE_LIST}
TEST_REQUIRED_LIBS mbed-netsocket
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 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-connectivity-netsocket-network-multihoming)

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
)

mbed_greentea_cmake_macro(
TEST_NAME ${TEST_TARGET}
TEST_SOURCES ${TEST_SOURCE_LIST}
TEST_REQUIRED_LIBS mbed-netsocket mbed-nanostack
)
38 changes: 38 additions & 0 deletions connectivity/netsocket/tests/TESTS/network/wifi/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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-connectivity-netsocket-network-wifi)

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
)

mbed_greentea_cmake_macro(
TEST_NAME ${TEST_TARGET}
TEST_SOURCES ${TEST_SOURCE_LIST}
TEST_REQUIRED_LIBS mbed-netsocket
)