-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMake: greentea: Port mbed-drivers-ticker to CTest
Call add_test in mbed_greentea_add_test and specify mbedhtrun as the command to run. A MBED_HTRUN_ARGUMENTS variable has been added, which is a semicolon separated list of arguments to forward to htrun. The user is required to pass in any arguments mbedhtrun needs to communicate with the device under test at CMake configuration time. Temporary checks have been added to mbed_greentea_add_test to keep the old flow working until we port all of the greentea tests to CTest.
- Loading branch information
1 parent
bfac0b2
commit 69e3065
Showing
4 changed files
with
54 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Copyright (c) 2021 ARM Limited. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
add_subdirectory(mbed_drivers/ticker) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
# 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-drivers-ticker) | ||
|
||
include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake) | ||
|
||
project(${TEST_TARGET}) | ||
include(mbed_greentea) | ||
|
||
mbed_greentea_add_test( | ||
TEST_NAME | ||
${TEST_TARGET} | ||
mbed-drivers-ticker | ||
TEST_SOURCES | ||
main.cpp | ||
HOST_TESTS_DIR | ||
"${CMAKE_CURRENT_LIST_DIR}/../../host_tests" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters