mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
refactor: allow to skip running ults per platform
- run_ult_target.cmake can parse test_mask argument to skip shared, ocl or l0 test targets Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a0cefc5577
commit
88a27df888
@@ -17,7 +17,18 @@ else()
|
||||
set(device_id 0)
|
||||
endif()
|
||||
|
||||
if(${unit_test_config_num_entries} GREATER_EQUAL 7)
|
||||
list(GET unit_test_config 6 test_mask)
|
||||
else()
|
||||
set(test_mask 0)
|
||||
endif()
|
||||
|
||||
math(EXPR skip_shared "${test_mask} & 1" OUTPUT_FORMAT DECIMAL)
|
||||
math(EXPR skip_ocl "${test_mask} & 2" OUTPUT_FORMAT DECIMAL)
|
||||
math(EXPR skip_l0 "${test_mask} & 4" OUTPUT_FORMAT DECIMAL)
|
||||
|
||||
if(NOT NEO_SKIP_SHARED_UNIT_TESTS)
|
||||
if(NOT skip_shared)
|
||||
unset(GTEST_OUTPUT)
|
||||
if(DEFINED GTEST_OUTPUT_DIR)
|
||||
set(GTEST_OUTPUT "--gtest_output=json:${GTEST_OUTPUT_DIR}/shared_${product}_${revision_id}_unit_tests_results.json")
|
||||
@@ -44,8 +55,10 @@ if(NOT NEO_SKIP_SHARED_UNIT_TESTS)
|
||||
|
||||
add_dependencies(run_shared_tests run_${product}_${revision_id}_shared_tests)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT NEO_SKIP_OCL_UNIT_TESTS)
|
||||
if(NOT skip_ocl)
|
||||
unset(GTEST_OUTPUT)
|
||||
if(DEFINED GTEST_OUTPUT_DIR)
|
||||
set(GTEST_OUTPUT "--gtest_output=json:${GTEST_OUTPUT_DIR}/ocl_${product}_${revision_id}_unit_tests_results.json")
|
||||
@@ -87,8 +100,10 @@ if(NOT NEO_SKIP_OCL_UNIT_TESTS)
|
||||
|
||||
add_dependencies(run_ocl_tests run_${product}_${revision_id}_ocl_tests)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT NEO_SKIP_L0_UNIT_TESTS AND BUILD_WITH_L0)
|
||||
if(NOT skip_l0)
|
||||
unset(GTEST_OUTPUT_CORE)
|
||||
if(DEFINED GTEST_OUTPUT_DIR)
|
||||
set(GTEST_OUTPUT_CORE "--gtest_output=json:${GTEST_OUTPUT_DIR}/ze_intel_gpu_core_${product}_${revision_id}_unit_tests_results.json")
|
||||
@@ -138,3 +153,4 @@ if(NOT NEO_SKIP_L0_UNIT_TESTS AND BUILD_WITH_L0)
|
||||
|
||||
add_dependencies(run_l0_tests run_${product}_${revision_id}_l0_tests)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user