ULT execution refactor

Add targets to run shared, OpenCL and L0 tests separately. Bind all
these to run_unit_tests.

Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
Artur Harasimiuk
2022-01-20 00:17:33 +00:00
committed by Compute-Runtime-Automation
parent 155b4ec606
commit 17b0ddd2a3
4 changed files with 47 additions and 12 deletions

View File

@@ -27,6 +27,9 @@ add_custom_target(copy_test_files_per_product)
add_custom_target(run_unit_tests ALL)
add_dependencies(unit_tests copy_test_files_per_product)
add_custom_target(run_ocl_tests)
set_target_properties(run_ocl_tests PROPERTIES FOLDER ${PLATFORM_SPECIFIC_TEST_TARGETS_FOLDER})
set(IGDRCL_SRCS_tests_local
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
${NEO_SHARED_TEST_DIRECTORY}/unit_test/tests_configuration.h
@@ -40,7 +43,7 @@ hide_subdir(linux)
if(UNIX)
add_subdirectory(linux)
add_custom_command(
TARGET run_unit_tests
TARGET run_ocl_tests
POST_BUILD
COMMAND echo running tests for linux dynamic library - .so in ${TargetDir}
COMMAND ${NEO_RUN_INTERCEPTOR_LIST} igdrcl_linux_dll_tests ${NEO_TESTS_LISTENER_OPTION}

View File

@@ -1,5 +1,5 @@
#
# Copyright (C) 2018-2021 Intel Corporation
# Copyright (C) 2018-2022 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
@@ -55,7 +55,7 @@ if(WIN32)
COMMAND echo Running Windows dll tests
COMMAND igdrcl_windows_dll_tests
)
add_dependencies(run_unit_tests run_windows_dll_tests)
add_dependencies(run_ocl_tests run_windows_dll_tests)
set_target_properties(igdrcl_windows_dll_tests PROPERTIES FOLDER ${OPENCL_TEST_PROJECTS_FOLDER})
set_target_properties(run_windows_dll_tests PROPERTIES FOLDER ${OPENCL_TEST_PROJECTS_FOLDER})