File tree Expand file tree Collapse file tree 5 files changed +130
-0
lines changed
connectivity/netsocket/tests/TESTS/netsocket Expand file tree Collapse file tree 5 files changed +130
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2020 ARM Limited. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ cmake_minimum_required (VERSION 3.19.0 FATAL_ERROR )
5
+
6
+ set (MBED_PATH ${CMAKE_CURRENT_SOURCE_DIR} /../../../../../../ CACHE INTERNAL "" )
7
+ set (TEST_TARGET mbed-connectivity-netsocket-dns )
8
+
9
+ include (${MBED_PATH} /tools/cmake/mbed_greentea.cmake )
10
+
11
+ project (${TEST_TARGET} )
12
+
13
+ file (GLOB src_files_with_path ${CMAKE_CURRENT_SOURCE_DIR} /*.cpp )
14
+
15
+ foreach (src_filename_with_path ${src_files_with_path} )
16
+ get_filename_component (src_filename "${src_filename_with_path} " NAME )
17
+ if (NOT src_filename MATCHES "main.cpp" )
18
+ list (APPEND TEST_SOURCE_LIST "${src_filename} " )
19
+ endif ()
20
+ endforeach ()
21
+
22
+ mbed_greentea_cmake_macro (
23
+ TEST_NAME ${TEST_TARGET}
24
+ TEST_SOURCES ${TEST_SOURCE_LIST}
25
+ TEST_REQUIRED_LIBS mbed-netsocket
26
+ )
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2020 ARM Limited. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ cmake_minimum_required (VERSION 3.19.0 FATAL_ERROR )
5
+
6
+ set (MBED_PATH ${CMAKE_CURRENT_SOURCE_DIR} /../../../../../../ CACHE INTERNAL "" )
7
+ set (TEST_TARGET mbed-connectivity-netsocket-nidd )
8
+
9
+ include (${MBED_PATH} /tools/cmake/mbed_greentea.cmake )
10
+
11
+ project (${TEST_TARGET} )
12
+
13
+ file (GLOB src_files_with_path ${CMAKE_CURRENT_SOURCE_DIR} /*.cpp )
14
+
15
+ foreach (src_filename_with_path ${src_files_with_path} )
16
+ get_filename_component (src_filename "${src_filename_with_path} " NAME )
17
+ if (NOT src_filename MATCHES "main.cpp" )
18
+ list (APPEND TEST_SOURCE_LIST "${src_filename} " )
19
+ endif ()
20
+ endforeach ()
21
+
22
+ mbed_greentea_cmake_macro (
23
+ TEST_NAME ${TEST_TARGET}
24
+ TEST_SOURCES ${TEST_SOURCE_LIST}
25
+ TEST_REQUIRED_LIBS mbed-netsocket
26
+ )
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2020 ARM Limited. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ cmake_minimum_required (VERSION 3.19.0 FATAL_ERROR )
5
+
6
+ set (MBED_PATH ${CMAKE_CURRENT_SOURCE_DIR} /../../../../../../ CACHE INTERNAL "" )
7
+ set (TEST_TARGET mbed-connectivity-netsocket-tcp )
8
+
9
+ include (${MBED_PATH} /tools/cmake/mbed_greentea.cmake )
10
+
11
+ project (${TEST_TARGET} )
12
+
13
+ file (GLOB src_files_with_path ${CMAKE_CURRENT_SOURCE_DIR} /*.cpp )
14
+
15
+ foreach (src_filename_with_path ${src_files_with_path} )
16
+ get_filename_component (src_filename "${src_filename_with_path} " NAME )
17
+ if (NOT src_filename MATCHES "main.cpp" )
18
+ list (APPEND TEST_SOURCE_LIST "${src_filename} " )
19
+ endif ()
20
+ endforeach ()
21
+
22
+ mbed_greentea_cmake_macro (
23
+ TEST_NAME ${TEST_TARGET}
24
+ TEST_SOURCES ${TEST_SOURCE_LIST}
25
+ TEST_REQUIRED_LIBS mbed-netsocket
26
+ )
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2020 ARM Limited. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ cmake_minimum_required (VERSION 3.19.0 FATAL_ERROR )
5
+
6
+ set (MBED_PATH ${CMAKE_CURRENT_SOURCE_DIR} /../../../../../../ CACHE INTERNAL "" )
7
+ set (TEST_TARGET mbed-connectivity-netsocket-tls )
8
+
9
+ include (${MBED_PATH} /tools/cmake/mbed_greentea.cmake )
10
+
11
+ project (${TEST_TARGET} )
12
+
13
+ file (GLOB src_files_with_path ${CMAKE_CURRENT_SOURCE_DIR} /*.cpp )
14
+
15
+ foreach (src_filename_with_path ${src_files_with_path} )
16
+ get_filename_component (src_filename "${src_filename_with_path} " NAME )
17
+ if (NOT src_filename MATCHES "main.cpp" )
18
+ list (APPEND TEST_SOURCE_LIST "${src_filename} " )
19
+ endif ()
20
+ endforeach ()
21
+
22
+ mbed_greentea_cmake_macro (
23
+ TEST_NAME ${TEST_TARGET}
24
+ TEST_SOURCES ${TEST_SOURCE_LIST}
25
+ TEST_REQUIRED_LIBS mbed-netsocket
26
+ )
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2020 ARM Limited. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ cmake_minimum_required (VERSION 3.19.0 FATAL_ERROR )
5
+
6
+ set (MBED_PATH ${CMAKE_CURRENT_SOURCE_DIR} /../../../../../../ CACHE INTERNAL "" )
7
+ set (TEST_TARGET mbed-connectivity-netsocket-udp )
8
+
9
+ include (${MBED_PATH} /tools/cmake/mbed_greentea.cmake )
10
+
11
+ project (${TEST_TARGET} )
12
+
13
+ file (GLOB src_files_with_path ${CMAKE_CURRENT_SOURCE_DIR} /*.cpp )
14
+
15
+ foreach (src_filename_with_path ${src_files_with_path} )
16
+ get_filename_component (src_filename "${src_filename_with_path} " NAME )
17
+ if (NOT src_filename MATCHES "main.cpp" )
18
+ list (APPEND TEST_SOURCE_LIST "${src_filename} " )
19
+ endif ()
20
+ endforeach ()
21
+
22
+ mbed_greentea_cmake_macro (
23
+ TEST_NAME ${TEST_TARGET}
24
+ TEST_SOURCES ${TEST_SOURCE_LIST}
25
+ TEST_REQUIRED_LIBS mbed-netsocket
26
+ )
You can’t perform that action at this time.
0 commit comments