Skip to content

Commit 6799ea6

Browse files
Move linux device factory tests to shared
Signed-off-by: Mateusz Jablonski <[email protected]>
1 parent be7c45b commit 6799ea6

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

opencl/test/unit_test/os_interface/linux/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ set(IGDRCL_SRCS_tests_os_interface_linux
99
${CMAKE_CURRENT_SOURCE_DIR}/allocator_helper_tests.cpp
1010
${CMAKE_CURRENT_SOURCE_DIR}/debug_env_reader.cpp
1111
${CMAKE_CURRENT_SOURCE_DIR}/device_command_stream_tests.cpp
12-
${CMAKE_CURRENT_SOURCE_DIR}/device_factory_tests.cpp
13-
${CMAKE_CURRENT_SOURCE_DIR}/device_factory_tests.h
1412
${CMAKE_CURRENT_SOURCE_DIR}/device_os_tests.cpp
1513
${CMAKE_CURRENT_SOURCE_DIR}/driver_info_tests.cpp
1614
${CMAKE_CURRENT_SOURCE_DIR}/drm_buffer_object_tests.cpp

shared/test/unit_test/os_interface/linux/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
set(NEO_CORE_OS_INTERFACE_TESTS_LINUX
88
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
9+
${CMAKE_CURRENT_SOURCE_DIR}/device_factory_tests_linux.cpp
10+
${CMAKE_CURRENT_SOURCE_DIR}/device_factory_tests_linux.h
911
${CMAKE_CURRENT_SOURCE_DIR}/drm_bind_tests.cpp
1012
${CMAKE_CURRENT_SOURCE_DIR}/drm_command_stream_l0_tests.cpp
1113
${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}drm_engine_info_tests.cpp

opencl/test/unit_test/os_interface/linux/device_factory_tests.cpp renamed to shared/test/unit_test/os_interface/linux/device_factory_tests_linux.cpp

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

8-
#include "opencl/test/unit_test/os_interface/linux/device_factory_tests.h"
8+
#include "shared/test/unit_test/os_interface/linux/device_factory_tests_linux.h"
99

1010
#include "shared/source/execution_environment/root_device_environment.h"
11+
#include "shared/source/os_interface/device_factory.h"
1112
#include "shared/source/os_interface/os_interface.h"
1213
#include "shared/test/common/helpers/default_hw_info.h"
1314

opencl/test/unit_test/os_interface/linux/device_factory_tests.h renamed to shared/test/unit_test/os_interface/linux/device_factory_tests_linux.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,11 @@
77

88
#pragma once
99

10-
#include "shared/source/device/device.h"
11-
#include "shared/source/execution_environment/execution_environment.h"
12-
#include "shared/source/os_interface/device_factory.h"
1310
#include "shared/test/common/helpers/variable_backup.h"
1411
#include "shared/test/common/libult/linux/drm_mock.h"
1512
#include "shared/test/common/mocks/mock_execution_environment.h"
1613
#include "shared/test/common/test_macros/test.h"
1714

18-
#include "gtest/gtest.h"
19-
2015
namespace NEO {
2116
extern Drm **pDrmToReturnFromCreateFunc;
2217
}; // namespace NEO

0 commit comments

Comments
 (0)