From 0048144db8c29822ccb1e1a95ef9a1c9dca154b0 Mon Sep 17 00:00:00 2001 From: Sarah Blades Date: Mon, 3 Oct 2022 16:38:23 +0100 Subject: MLECO-3149: Add CTest driven FVP runs for non-native targets. Additional CMake configuration parameters required: * `BUILD_FVP_TESTS`: Selects whether these tests are built, OFF by default. * `FVP_PATH`: Path to the FVP that MUST be provided for the configuration to succeed. Change-Id: I741379cd0a6078a3e2c3163e6b253b2f5dc25c58 Signed-off-by: Sarah Blades --- scripts/cmake/common_user_options.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'scripts/cmake/common_user_options.cmake') diff --git a/scripts/cmake/common_user_options.cmake b/scripts/cmake/common_user_options.cmake index 7a0b068..008d8f0 100644 --- a/scripts/cmake/common_user_options.cmake +++ b/scripts/cmake/common_user_options.cmake @@ -150,5 +150,16 @@ if (NOT TARGET_PLATFORM STREQUAL native) ${DEFAULT_TA_CONFIG_FILE_PATH} FILEPATH) endif() + + USER_OPTION(BUILD_FVP_TESTS "Build tests for CTest driven FVP runs for built applications" + OFF + BOOL) + + if (BUILD_FVP_TESTS) + USER_OPTION(FVP_PATH "Path to FVP for verifying execution" + "" + FILEPATH) + endif() + endif() endif() -- cgit v1.2.1