Move AUB tests configurations gen specific to shared

Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
This commit is contained in:
Kacper Nowak
2021-05-25 16:27:38 +02:00
committed by Compute-Runtime-Automation
parent 31661f0475
commit 899af98240
15 changed files with 85 additions and 5 deletions

View File

@@ -8,12 +8,14 @@ project(igdrcl_aub_tests)
set(OPENCL_AUB_TEST_DIR ${CMAKE_CURRENT_SOURCE_DIR})
get_property(NEO_SHARED_aub_tests_configurations GLOBAL PROPERTY NEO_SHARED_aub_tests_configurations)
list(APPEND IGDRCL_AUB_TESTS__TARGET_OBJECTS
${NEO_SHARED_TEST_DIRECTORY}/common/libult/os_interface.cpp
${NEO_SOURCE_DIR}/opencl/test/unit_test/test_macros/test_checks_ocl.cpp
${NEO_SOURCE_DIR}/shared/source/aub/aub_stream_interface.cpp
${NEO_SOURCE_DIR}/shared/test/common/test_configuration/aub_tests/aub_tests_configuration.cpp
${NEO_SOURCE_DIR}/shared/test/common/test_macros/test_checks_shared.cpp
${NEO_SHARED_aub_tests_configurations}
$<TARGET_OBJECTS:${BUILTINS_SOURCES_LIB_NAME}>
$<TARGET_OBJECTS:${SCHEDULER_BINARY_LIB_NAME}>
$<TARGET_OBJECTS:igdrcl_libult>

View File

@@ -7,7 +7,6 @@
if(TESTS_GEN11)
target_sources(igdrcl_aub_tests PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
${CMAKE_CURRENT_SOURCE_DIR}/aub_tests_configuration_gen11.cpp
${NEO_SOURCE_DIR}/shared/test/common/gen11/unit_test_helper_gen11.cpp
)
add_subdirectories()

View File

@@ -8,7 +8,6 @@ if(TESTS_GEN12LP)
target_sources(igdrcl_aub_tests PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
${CMAKE_CURRENT_SOURCE_DIR}/aub_mem_dump_tests_gen12lp.cpp
${CMAKE_CURRENT_SOURCE_DIR}/aub_tests_configuration_gen12lp.cpp
${NEO_SOURCE_DIR}/opencl/test/unit_test/gen12lp/special_ult_helper_gen12lp.cpp
${NEO_SOURCE_DIR}/shared/test/common/gen12lp/unit_test_helper_gen12lp.cpp
)

View File

@@ -7,7 +7,6 @@
if(TESTS_GEN8)
target_sources(igdrcl_aub_tests PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
${CMAKE_CURRENT_SOURCE_DIR}/aub_tests_configuration_gen8.cpp
${NEO_SOURCE_DIR}/shared/test/common/gen8/unit_test_helper_gen8.cpp
)
add_subdirectories()

View File

@@ -6,7 +6,6 @@
if(TESTS_GEN9)
target_sources(igdrcl_aub_tests PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/aub_tests_configuration_gen9.cpp
${NEO_SOURCE_DIR}/shared/test/common/gen9/unit_test_helper_gen9.cpp
)
add_subdirectories()

View File

@@ -0,0 +1,7 @@
#
# Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
add_subdirectories()

View File

@@ -0,0 +1,15 @@
#
# Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
set(NEO_SHARED_aub_tests_configurations
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
${CMAKE_CURRENT_SOURCE_DIR}/aub_tests_configuration.cpp
${CMAKE_CURRENT_SOURCE_DIR}/aub_tests_configuration.h
${CMAKE_CURRENT_SOURCE_DIR}/aub_tests_configuration.inl
)
add_subdirectories()
set_property(GLOBAL PROPERTY NEO_SHARED_aub_tests_configurations ${NEO_SHARED_aub_tests_configurations})

View File

@@ -0,0 +1,15 @@
#
# Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
if(TESTS_GEN11)
set(NEO_SHARED_aub_tests_configurations
${NEO_SHARED_aub_tests_configurations}
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
${CMAKE_CURRENT_SOURCE_DIR}/aub_tests_configuration_gen11.cpp
)
set(NEO_SHARED_aub_tests_configurations ${NEO_SHARED_aub_tests_configurations} PARENT_SCOPE)
endif()

View File

@@ -0,0 +1,15 @@
#
# Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
if(TESTS_GEN12LP)
set(NEO_SHARED_aub_tests_configurations
${NEO_SHARED_aub_tests_configurations}
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
${CMAKE_CURRENT_SOURCE_DIR}/aub_tests_configuration_gen12lp.cpp
)
set(NEO_SHARED_aub_tests_configurations ${NEO_SHARED_aub_tests_configurations} PARENT_SCOPE)
endif()

View File

@@ -0,0 +1,15 @@
#
# Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
if(TESTS_GEN8)
set(NEO_SHARED_aub_tests_configurations
${NEO_SHARED_aub_tests_configurations}
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
${CMAKE_CURRENT_SOURCE_DIR}/aub_tests_configuration_gen8.cpp
)
set(NEO_SHARED_aub_tests_configurations ${NEO_SHARED_aub_tests_configurations} PARENT_SCOPE)
endif()

View File

@@ -0,0 +1,15 @@
#
# Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
if(TESTS_GEN9)
set(NEO_SHARED_aub_tests_configurations
${NEO_SHARED_aub_tests_configurations}
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
${CMAKE_CURRENT_SOURCE_DIR}/aub_tests_configuration_gen9.cpp
)
set(NEO_SHARED_aub_tests_configurations ${NEO_SHARED_aub_tests_configurations} PARENT_SCOPE)
endif()