diff --git a/CMakeLists.txt b/CMakeLists.txt index dacc1ad49c35316313d0b9cffafaf6b6790fb10d..7154af07aa0eda1f0b5c35a781c1cbf39957b7d6 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 207eb974b872d14b63e01358e6d7b8c08d714dba..94b2b630c48b7cc87f2598c673abf59aae9f09c7 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()