Skip to content

Commit 8e98b58

Browse files
Cleanup shared test files - xe_hpc_core
- move test files from shared/test/common directory to shared/test/unit_test - cleanup cmakelists.txt files Signed-off-by: Mateusz Hoppe <[email protected]>
1 parent f279186 commit 8e98b58

12 files changed

+19
-30
lines changed
Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2021 Intel Corporation
2+
# Copyright (C) 2021-2022 Intel Corporation
33
#
44
# SPDX-License-Identifier: MIT
55
#
@@ -8,25 +8,15 @@ if(TESTS_XE_HPC_CORE)
88

99
set(NEO_CORE_TESTS_XE_HPC_CORE
1010
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
11-
${CMAKE_CURRENT_SOURCE_DIR}/simd_helper_tests_xe_hpc_core.cpp
1211
${CMAKE_CURRENT_SOURCE_DIR}/test_traits_xe_hpc_core.h
1312
)
1413
set_property(GLOBAL PROPERTY NEO_CORE_TESTS_XE_HPC_CORE ${NEO_CORE_TESTS_XE_HPC_CORE})
1514

1615
add_subdirectories()
1716

18-
set(IGDRCL_SRCS_tests_xe_hpc_core_excludes
19-
${CMAKE_CURRENT_SOURCE_DIR}/excludes_xe_hpc_core.cpp
20-
)
21-
set_property(GLOBAL APPEND PROPERTY IGDRCL_SRCS_tests_excludes ${IGDRCL_SRCS_tests_xe_hpc_core_excludes})
22-
2317
target_sources(${TARGET_NAME} PRIVATE
24-
${IGDRCL_SRCS_tests_xe_hpc_core_excludes}
2518
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
26-
${CMAKE_CURRENT_SOURCE_DIR}/image_surface_state_tests_xe_hpc_core.cpp
27-
${CMAKE_CURRENT_SOURCE_DIR}/test_encode_xe_hpc_core.cpp
2819
${CMAKE_CURRENT_SOURCE_DIR}/test_preemption_xe_hpc_core.cpp
29-
${COMPUTE_RUNTIME_ULT_XE_HPC_CORE}
3020
)
3121

3222
endif()

shared/test/common/xe_hpc_core/pvc/CMakeLists.txt

Lines changed: 0 additions & 17 deletions
This file was deleted.

shared/test/unit_test/xe_hpc_core/CMakeLists.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,28 @@ if(TESTS_XE_HPC_CORE)
1313
${CMAKE_CURRENT_SOURCE_DIR}/dispatch_walker_tests_xe_hpc_core.cpp
1414
${CMAKE_CURRENT_SOURCE_DIR}/hw_cmds_xe_hpc_core_tests.cpp
1515
${CMAKE_CURRENT_SOURCE_DIR}/hw_helper_xe_hpc_core_tests.cpp
16+
${CMAKE_CURRENT_SOURCE_DIR}/image_surface_state_tests_xe_hpc_core.cpp
17+
${CMAKE_CURRENT_SOURCE_DIR}/simd_helper_tests_xe_hpc_core.cpp
18+
${CMAKE_CURRENT_SOURCE_DIR}/test_encode_xe_hpc_core.cpp
1619
${CMAKE_CURRENT_SOURCE_DIR}/test_preamble_xe_hpc_core.cpp
1720
${CMAKE_CURRENT_SOURCE_DIR}/test_sample_xe_hpc_core.cpp
1821
)
1922

23+
set(IGDRCL_SRCS_tests_xe_hpc_core_excludes
24+
${CMAKE_CURRENT_SOURCE_DIR}/excludes_xe_hpc_core.cpp
25+
)
26+
set_property(GLOBAL APPEND PROPERTY IGDRCL_SRCS_tests_excludes ${IGDRCL_SRCS_tests_xe_hpc_core_excludes})
27+
2028
if(DEFINED AUB_STREAM_PROJECT_NAME)
2129
list(APPEND NEO_SHARED_tests_xe_hpc_core
2230
${CMAKE_CURRENT_SOURCE_DIR}/aub_center_using_aubstream_lib_tests_xe_hpc_core.cpp
2331
)
2432
endif()
2533

26-
target_sources(${TARGET_NAME} PRIVATE ${NEO_SHARED_tests_xe_hpc_core})
34+
target_sources(${TARGET_NAME} PRIVATE
35+
${IGDRCL_SRCS_tests_xe_hpc_core_excludes}
36+
${NEO_SHARED_tests_xe_hpc_core}
37+
)
38+
2739
add_subdirectories()
2840
endif()

shared/test/common/xe_hpc_core/excludes_xe_hpc_core.cpp renamed to shared/test/unit_test/xe_hpc_core/excludes_xe_hpc_core.cpp

File renamed without changes.

shared/test/common/xe_hpc_core/image_surface_state_tests_xe_hpc_core.cpp renamed to shared/test/unit_test/xe_hpc_core/image_surface_state_tests_xe_hpc_core.cpp

File renamed without changes.

shared/test/unit_test/xe_hpc_core/pvc/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ if(TESTS_PVC)
99
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
1010
${CMAKE_CURRENT_SOURCE_DIR}/dispatch_walker_tests_pvc.cpp
1111
${CMAKE_CURRENT_SOURCE_DIR}/hw_info_tests_pvc.cpp
12+
${CMAKE_CURRENT_SOURCE_DIR}/test_encode_dispatch_kernel_pvc.cpp
13+
${CMAKE_CURRENT_SOURCE_DIR}/test_hw_info_config_pvc.cpp
14+
${CMAKE_CURRENT_SOURCE_DIR}/test_preamble_pvc.cpp
15+
${CMAKE_CURRENT_SOURCE_DIR}/test_sample_pvc.cpp
1216
)
1317

1418
target_sources(${TARGET_NAME} PRIVATE ${NEO_SHARED_TESTS_PVC})

shared/test/common/xe_hpc_core/pvc/test_encode_dispatch_kernel_pvc.cpp renamed to shared/test/unit_test/xe_hpc_core/pvc/test_encode_dispatch_kernel_pvc.cpp

File renamed without changes.

shared/test/common/xe_hpc_core/pvc/test_hw_info_config_pvc.cpp renamed to shared/test/unit_test/xe_hpc_core/pvc/test_hw_info_config_pvc.cpp

File renamed without changes.

shared/test/common/xe_hpc_core/pvc/test_preamble_pvc.cpp renamed to shared/test/unit_test/xe_hpc_core/pvc/test_preamble_pvc.cpp

File renamed without changes.

shared/test/common/xe_hpc_core/pvc/test_sample_pvc.cpp renamed to shared/test/unit_test/xe_hpc_core/pvc/test_sample_pvc.cpp

File renamed without changes.

0 commit comments

Comments
 (0)