From 1d56c91a0755c95d62c4b08445575674f7ab998d Mon Sep 17 00:00:00 2001 From: Svetlana Rokashevich Date: Mon, 7 Aug 2023 15:07:51 +0300 Subject: [PATCH] Create stash list for each tests group For each tests group create stash file that contains a list of all binaries with needed gtests. These stash files are used on CI to archive artifacts. Signed-off-by: Svetlana Rokashevich --- CMakeLists.txt | 13 +++++++++++++ tests/CMakeLists.txt | 1 + 2 files changed, 14 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index dacc1ad49..7154af07a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,11 @@ add_custom_target(ecmascript_tests COMMENT "Running ecmascript test suites") set_target_properties(ecmascript_tests PROPERTIES first-level-tests-dependency TRUE) add_dependencies(tests ecmascript_tests) +# List for accumulation of all ecmascript gtests binary paths. +# It's used by CI to archive these binaries into a single artifact +# and send it to second stage where unit tests will use them. +set_property(GLOBAL PROPERTY ecmascript_stash_list "") + if(PANDA_WITH_TOOLCHAIN) add_subdirectory(assembler) add_subdirectory(isa) @@ -55,3 +60,11 @@ add_plugin_options(${CMAKE_CURRENT_SOURCE_DIR}/ecmascript_plugin_options.yaml) add_runtime_options(${CMAKE_CURRENT_SOURCE_DIR}/runtime_options.yaml) add_entrypoints_yaml(${CMAKE_CURRENT_SOURCE_DIR}/runtime/ecma_entrypoints.yaml) + +# ----- Collecting ecmascript gtests paths for CI stash --------------------------------- +# NB! This must be the last section! + +# Write to a file the list of all binaries +get_property(stash_files GLOBAL PROPERTY ecmascript_stash_list) +list(JOIN stash_files "\n" file_content) +file(WRITE ${PANDA_BINARY_ROOT}/ecmascript_stash_files.txt "${file_content}\n") diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 207eb974b..94b2b630c 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -290,6 +290,7 @@ endfunction() function(panda_ecmascript_add_gtest) panda_add_gtest( TEST_GROUP ecmascript_tests + STASH_LIST ecmascript_stash_list ${ARGV} ) endfunction() -- Gitee