mirror of https://github.com/ARMmbed/mbed-os.git
Use standalone greentea-client
For CMake or Mbed CLI 2, use the standalone greentea-client.pull/14803/head
parent
20f6b5270f
commit
4e2206e482
|
@ -4,10 +4,10 @@
|
|||
# List of all features libraries available.
|
||||
add_library(mbed-fpga-ci-test-shield 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/mbed-client-cli)
|
||||
add_subdirectory(frameworks/greentea-client)
|
||||
add_subdirectory(frameworks/unity)
|
||||
add_subdirectory(frameworks/utest)
|
||||
|
|
|
@ -9,6 +9,10 @@
|
|||
|
||||
# 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.
|
||||
|
||||
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.
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-greentea
|
||||
target_include_directories(mbed-unity
|
||||
INTERFACE
|
||||
.
|
||||
unity
|
||||
)
|
||||
|
||||
target_sources(mbed-greentea
|
||||
target_sources(mbed-unity
|
||||
INTERFACE
|
||||
source/unity.c
|
||||
)
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-greentea
|
||||
target_include_directories(mbed-utest
|
||||
INTERFACE
|
||||
.
|
||||
utest
|
||||
)
|
||||
|
||||
target_sources(mbed-greentea
|
||||
target_sources(mbed-utest
|
||||
INTERFACE
|
||||
mbed-utest-shim.cpp
|
||||
source/unity_handler.cpp
|
||||
|
|
|
@ -61,7 +61,7 @@ macro(mbed_greentea_add_test)
|
|||
list(APPEND MBED_GREENTEA_TEST_REQUIRED_LIBS mbed-os)
|
||||
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}
|
||||
PRIVATE
|
||||
|
|
Loading…
Reference in New Issue