Skip to content

Commit 9839b30

Browse files
Move unit test helper to shared code
Related-To: NEO-5161 Signed-off-by: Milczarek, Slawomir <[email protected]>
1 parent e5eba8b commit 9839b30

File tree

73 files changed

+126
-122
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+126
-122
lines changed

level_zero/core/test/unit_tests/sources/debugger/test_module_with_debug.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
#include "shared/source/device_binary_format/patchtokens_decoder.h"
99
#include "shared/source/kernel/kernel_descriptor_from_patchtokens.h"
10+
#include "shared/test/common/helpers/unit_test_helper.h"
1011
#include "shared/test/common/mocks/mock_elf.h"
1112

1213
#include "opencl/source/program/kernel_info.h"
1314
#include "opencl/source/program/kernel_info_from_patchtokens.h"
14-
#include "opencl/test/unit_test/helpers/unit_test_helper.h"
1515
#include "opencl/test/unit_test/mocks/mock_compilers.h"
1616
#include "test.h"
1717

opencl/test/unit_test/api/cl_create_command_queue_with_properties_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
#include "shared/source/helpers/hw_helper.h"
1010
#include "shared/source/os_interface/os_context.h"
1111
#include "shared/test/common/helpers/debug_manager_state_restore.h"
12+
#include "shared/test/common/helpers/unit_test_helper.h"
1213
#include "shared/test/common/helpers/variable_backup.h"
1314

1415
#include "opencl/source/command_queue/command_queue.h"
1516
#include "opencl/source/device_queue/device_queue.h"
1617
#include "opencl/test/unit_test/fixtures/memory_management_fixture.h"
17-
#include "opencl/test/unit_test/helpers/unit_test_helper.h"
1818
#include "opencl/test/unit_test/mocks/mock_cl_device.h"
1919
#include "opencl/test/unit_test/mocks/mock_context.h"
2020
#include "opencl/test/unit_test/test_macros/test_checks_ocl.h"

opencl/test/unit_test/api/cl_create_image_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
*/
77

88
#include "shared/source/helpers/hw_info.h"
9+
#include "shared/test/common/helpers/unit_test_helper.h"
910
#include "shared/test/common/mocks/mock_device.h"
1011

1112
#include "opencl/source/context/context.h"
1213
#include "opencl/source/mem_obj/image.h"
1314
#include "opencl/test/unit_test/fixtures/image_fixture.h"
1415
#include "opencl/test/unit_test/fixtures/multi_root_device_fixture.h"
15-
#include "opencl/test/unit_test/helpers/unit_test_helper.h"
1616
#include "opencl/test/unit_test/mocks/mock_cl_device.h"
1717
#include "opencl/test/unit_test/mocks/mock_memory_manager.h"
1818
#include "opencl/test/unit_test/test_macros/test_checks_ocl.h"

opencl/test/unit_test/api/cl_release_command_queue_tests.inl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
*
66
*/
77

8+
#include "shared/test/common/helpers/unit_test_helper.h"
9+
810
#include "opencl/source/context/context.h"
911
#include "opencl/test/unit_test/fixtures/device_host_queue_fixture.h"
10-
#include "opencl/test/unit_test/helpers/unit_test_helper.h"
1112
#include "opencl/test/unit_test/mocks/mock_kernel.h"
1213

1314
#include "cl_api_tests.h"

opencl/test/unit_test/api/cl_retain_release_command_queue_tests.inl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
/*
2-
* Copyright (C) 2017-2020 Intel Corporation
2+
* Copyright (C) 2017-2021 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
66
*/
77

8+
#include "shared/test/common/helpers/unit_test_helper.h"
9+
810
#include "opencl/source/context/context.h"
911
#include "opencl/test/unit_test/fixtures/device_host_queue_fixture.h"
10-
#include "opencl/test/unit_test/helpers/unit_test_helper.h"
1112

1213
using namespace NEO;
1314
namespace DeviceHostQueue {

opencl/test/unit_test/aub_tests/command_queue/enqueue_kernel_aub_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "shared/source/helpers/ptr_math.h"
99
#include "shared/test/common/cmd_parse/gen_cmd_parse.h"
1010
#include "shared/test/common/helpers/debug_manager_state_restore.h"
11+
#include "shared/test/common/helpers/unit_test_helper.h"
1112

1213
#include "opencl/source/command_queue/command_queue.h"
1314
#include "opencl/source/event/event.h"
@@ -17,7 +18,6 @@
1718
#include "opencl/test/unit_test/fixtures/hello_world_fixture.h"
1819
#include "opencl/test/unit_test/fixtures/simple_arg_fixture.h"
1920
#include "opencl/test/unit_test/fixtures/two_walker_fixture.h"
20-
#include "opencl/test/unit_test/helpers/unit_test_helper.h"
2121
#include "opencl/test/unit_test/mocks/mock_buffer.h"
2222
#include "opencl/test/unit_test/test_macros/test_checks_ocl.h"
2323
#include "test.h"

opencl/test/unit_test/aub_tests/command_queue/enqueue_verify_memory_buffer_aub_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
#include "shared/source/command_stream/command_stream_receiver.h"
99
#include "shared/test/common/helpers/debug_manager_state_restore.h"
10+
#include "shared/test/common/helpers/unit_test_helper.h"
1011

1112
#include "opencl/source/api/api.h"
1213
#include "opencl/source/mem_obj/buffer.h"
1314
#include "opencl/test/unit_test/aub_tests/command_queue/command_enqueue_fixture.h"
14-
#include "opencl/test/unit_test/helpers/unit_test_helper.h"
1515
#include "opencl/test/unit_test/mocks/mock_context.h"
1616
#include "test.h"
1717

opencl/test/unit_test/aub_tests/command_queue/enqueue_verify_memory_image_aub_tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2018-2020 Intel Corporation
2+
* Copyright (C) 2018-2021 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -9,11 +9,11 @@
99
#include "shared/source/helpers/aligned_memory.h"
1010
#include "shared/source/helpers/ptr_math.h"
1111
#include "shared/source/memory_manager/os_agnostic_memory_manager.h"
12+
#include "shared/test/common/helpers/unit_test_helper.h"
1213

1314
#include "opencl/source/api/api.h"
1415
#include "opencl/source/mem_obj/image.h"
1516
#include "opencl/test/unit_test/aub_tests/command_queue/command_enqueue_fixture.h"
16-
#include "opencl/test/unit_test/helpers/unit_test_helper.h"
1717
#include "opencl/test/unit_test/mocks/mock_context.h"
1818
#include "test.h"
1919

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2017-2020 Intel Corporation
2+
# Copyright (C) 2017-2021 Intel Corporation
33
#
44
# SPDX-License-Identifier: MIT
55
#
@@ -8,7 +8,7 @@ if(TESTS_GEN11)
88
target_sources(igdrcl_aub_tests PRIVATE
99
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
1010
${CMAKE_CURRENT_SOURCE_DIR}/aub_tests_configuration_gen11.cpp
11-
${NEO_SOURCE_DIR}/opencl/test/unit_test/gen11/unit_test_helper_gen11.cpp
11+
${NEO_SOURCE_DIR}/shared/test/common/gen11/unit_test_helper_gen11.cpp
1212
)
1313
add_subdirectories()
1414
endif()

opencl/test/unit_test/aub_tests/gen12lp/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2019-2020 Intel Corporation
2+
# Copyright (C) 2019-2021 Intel Corporation
33
#
44
# SPDX-License-Identifier: MIT
55
#
@@ -10,7 +10,7 @@ if(TESTS_GEN12LP)
1010
${CMAKE_CURRENT_SOURCE_DIR}/aub_mem_dump_tests_gen12lp.cpp
1111
${CMAKE_CURRENT_SOURCE_DIR}/aub_tests_configuration_gen12lp.cpp
1212
${NEO_SOURCE_DIR}/opencl/test/unit_test/gen12lp/special_ult_helper_gen12lp.cpp
13-
${NEO_SOURCE_DIR}/opencl/test/unit_test/gen12lp/unit_test_helper_gen12lp.cpp
13+
${NEO_SOURCE_DIR}/shared/test/common/gen12lp/unit_test_helper_gen12lp.cpp
1414
)
1515
add_subdirectories()
1616
endif()

0 commit comments

Comments
 (0)