Use standalone greentea-client

For CMake or Mbed CLI 2, use the standalone greentea-client.
pull/14803/head
Jaeden Amero 2021-05-19 11:28:46 +01:00
parent 20f6b5270f
commit 4e2206e482
5 changed files with 11 additions and 7 deletions

View File

@ -4,10 +4,10 @@
# List of all features libraries available. # List of all features libraries available.
add_library(mbed-fpga-ci-test-shield INTERFACE) add_library(mbed-fpga-ci-test-shield INTERFACE)
add_library(mbed-client-cli INTERFACE) add_library(mbed-client-cli INTERFACE)
add_library(mbed-greentea INTERFACE) add_library(mbed-unity INTERFACE)
add_library(mbed-utest INTERFACE)
add_subdirectory(frameworks/COMPONENT_FPGA_CI_TEST_SHIELD) add_subdirectory(frameworks/COMPONENT_FPGA_CI_TEST_SHIELD)
add_subdirectory(frameworks/mbed-client-cli) add_subdirectory(frameworks/mbed-client-cli)
add_subdirectory(frameworks/greentea-client)
add_subdirectory(frameworks/unity) add_subdirectory(frameworks/unity)
add_subdirectory(frameworks/utest) add_subdirectory(frameworks/utest)

View File

@ -9,6 +9,10 @@
# greentea-client # greentea-client
*Note*: This copy of greentea-client is used only with Mbed CLI 1. Mbed CLI 2
will use the standalone greentea-client, automatically fetched by CMake [in the
`extern/` directory](../../../extern/README.md).
`greentea-client` is a client library for [the Greentea test tool](https://github.com/ARMmbed/mbed-os-tools/tree/master/packages/mbed-greentea) when used in an [Mbed OS](https://os.mbed.com/) project. `greentea-client` is a client library for [the Greentea test tool](https://github.com/ARMmbed/mbed-os-tools/tree/master/packages/mbed-greentea) when used in an [Mbed OS](https://os.mbed.com/) project.
This package implements the client side of the key-value protocol used for communication between the device under test (DUT) and the host. The `Greentea` tool implements the protocol's host behavior. We use [utest](https://github.com/ARMmbed/mbed-os/blob/master/features/frameworks/utest/README.md) as our test harness. This package implements the client side of the key-value protocol used for communication between the device under test (DUT) and the host. The `Greentea` tool implements the protocol's host behavior. We use [utest](https://github.com/ARMmbed/mbed-os/blob/master/features/frameworks/utest/README.md) as our test harness.

View File

@ -1,13 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved. # Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
target_include_directories(mbed-greentea target_include_directories(mbed-unity
INTERFACE INTERFACE
. .
unity unity
) )
target_sources(mbed-greentea target_sources(mbed-unity
INTERFACE INTERFACE
source/unity.c source/unity.c
) )

View File

@ -1,13 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved. # Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
target_include_directories(mbed-greentea target_include_directories(mbed-utest
INTERFACE INTERFACE
. .
utest utest
) )
target_sources(mbed-greentea target_sources(mbed-utest
INTERFACE INTERFACE
mbed-utest-shim.cpp mbed-utest-shim.cpp
source/unity_handler.cpp source/unity_handler.cpp

View File

@ -61,7 +61,7 @@ macro(mbed_greentea_add_test)
list(APPEND MBED_GREENTEA_TEST_REQUIRED_LIBS mbed-os) list(APPEND MBED_GREENTEA_TEST_REQUIRED_LIBS mbed-os)
endif() endif()
list(APPEND MBED_GREENTEA_TEST_REQUIRED_LIBS mbed-greentea) list(APPEND MBED_GREENTEA_TEST_REQUIRED_LIBS greentea-client mbed-unity mbed-utest)
target_link_libraries(${MBED_GREENTEA_TEST_NAME} target_link_libraries(${MBED_GREENTEA_TEST_NAME}
PRIVATE PRIVATE