Move mock_gmm and mock_gdi to shared

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2020-12-09 12:18:26 +01:00
committed by Compute-Runtime-Automation
parent 86e25638d3
commit b6a20f9b23
15 changed files with 11 additions and 24 deletions

View File

@ -118,13 +118,6 @@ target_link_libraries(${TARGET_NAME}
gmock-gtest
)
if(NOT TARGET mock_gmm AND SKIP_NEO_UNIT_TESTS)
add_subdirectory(${NEO_SOURCE_DIR}/opencl/test/unit_test/mock_gmm ${CMAKE_BINARY_DIR}/mock_gmm)
endif()
if(SKIP_NEO_UNIT_TESTS)
add_subdirectory(${NEO_SOURCE_DIR}/opencl/test/unit_test/mock_gdi ${CMAKE_BINARY_DIR}/mock_gdi)
endif()
target_sources(${TARGET_NAME} PRIVATE
$<TARGET_OBJECTS:mock_gmm>
$<TARGET_OBJECTS:${TARGET_NAME_L0}_mocks>

View File

@ -9,10 +9,10 @@
#include "shared/source/gmm_helper/resource_info.h"
#include "shared/source/os_interface/windows/os_environment_win.h"
#include "shared/source/os_interface/windows/os_interface.h"
#include "shared/test/unit_test/mock_gdi/mock_gdi.h"
#include "shared/test/unit_test/os_interface/windows/mock_gdi_interface.h"
#include "opencl/test/unit_test/fixtures/memory_allocator_multi_device_fixture.h"
#include "opencl/test/unit_test/mock_gdi/mock_gdi.h"
#include "opencl/test/unit_test/mocks/mock_wddm.h"
using namespace NEO;

View File

@ -13,8 +13,8 @@
#include "shared/source/os_interface/windows/gdi_interface.h"
#include "shared/source/os_interface/windows/os_environment_win.h"
#include "shared/source/os_interface/windows/wddm_allocation.h"
#include "shared/test/unit_test/mock_gdi/mock_gdi.h"
#include "opencl/test/unit_test/mock_gdi/mock_gdi.h"
#include "opencl/test/unit_test/mocks/mock_wddm_residency_allocations_container.h"
#include "opencl/test/unit_test/mocks/mock_wddm_residency_logger.h"

View File

@ -9,8 +9,7 @@
#include "shared/source/helpers/hw_info.h"
#include "shared/source/os_interface/os_library.h"
#include "shared/test/unit_test/helpers/default_hw_info.h"
#include "opencl/test/unit_test/mock_gdi/mock_gdi.h"
#include "shared/test/unit_test/mock_gdi/mock_gdi.h"
using namespace NEO;

View File

@ -7,8 +7,8 @@
#pragma once
#include "shared/source/os_interface/windows/wddm_allocation.h"
#include "shared/test/unit_test/mock_gdi/mock_gdi.h"
#include "opencl/test/unit_test/mock_gdi/mock_gdi.h"
#include "opencl/test/unit_test/mocks/mock_gmm.h"
namespace NEO {

View File

@ -13,10 +13,10 @@
#include "shared/source/os_interface/windows/os_environment_win.h"
#include "shared/source/os_interface/windows/wddm/wddm.h"
#include "shared/source/os_interface/windows/wddm_allocation.h"
#include "shared/test/unit_test/mock_gdi/mock_gdi.h"
#include "shared/test/unit_test/os_interface/windows/mock_gdi_interface.h"
#include "opencl/source/platform/platform.h"
#include "opencl/test/unit_test/mock_gdi/mock_gdi.h"
#include "opencl/test/unit_test/mocks/mock_platform.h"
#include "opencl/test/unit_test/os_interface/windows/mock_kmdaf_listener.h"
#include "opencl/test/unit_test/os_interface/windows/mock_wddm_allocation.h"

View File

@ -40,10 +40,6 @@ if(NOT SKIP_UNIT_TESTS)
append_sources_from_properties(CORE_ENABLERS NEO_CORE_SRCS_LINK)
if(NOT TARGET mock_gmm AND SKIP_NEO_UNIT_TESTS)
add_subdirectory(${NEO_SOURCE_DIR}/opencl/test/unit_test/mock_gmm ${CMAKE_BINARY_DIR}/mock_gmm)
endif()
add_executable(${TARGET_NAME}
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
${CMAKE_CURRENT_SOURCE_DIR}/main.cpp

View File

@ -10,7 +10,7 @@ if(WIN32)
set(DEF_FILE "${CMAKE_CURRENT_SOURCE_DIR}/gdi32_mock.def")
# Setting up our local list of test files
set(IGDRCL_SRCS_tests_mock_gdi
set(NEO_SHARED_TESTS_mock_gdi
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
${CMAKE_CURRENT_SOURCE_DIR}/mock_gdi.cpp
${CMAKE_CURRENT_SOURCE_DIR}/mock_gdi.h
@ -19,7 +19,7 @@ if(WIN32)
)
# this is a DLL
add_library(mock_gdi SHARED ${IGDRCL_SRCS_tests_mock_gdi})
add_library(mock_gdi SHARED ${NEO_SHARED_TESTS_mock_gdi})
add_definitions(-DINSIDE_PLUGIN)

View File

@ -5,7 +5,7 @@
*
*/
#include "opencl/test/unit_test/mock_gdi/mock_gdi.h"
#include "shared/test/unit_test/mock_gdi/mock_gdi.h"
#include "shared/source/helpers/constants.h"

View File

@ -8,11 +8,11 @@ set(target_name mock_gmm)
project(${target_name})
# Setting up our local list of test files
set(IGDRCL_SRCS_tests_mock_gmm
set(NEO_SHARED_TESTS_mock_gmm
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
${CMAKE_CURRENT_SOURCE_DIR}/mock_gmm.cpp
)
add_library(${target_name} EXCLUDE_FROM_ALL OBJECT ${IGDRCL_SRCS_tests_mock_gmm})
add_library(${target_name} EXCLUDE_FROM_ALL OBJECT ${NEO_SHARED_TESTS_mock_gmm})
target_include_directories(${target_name} PRIVATE
${WDK_INCLUDE_PATHS}

View File

@ -7,8 +7,7 @@
#pragma once
#include "shared/source/os_interface/windows/gdi_interface.h"
#include "opencl/test/unit_test/mock_gdi/mock_gdi.h"
#include "shared/test/unit_test/mock_gdi/mock_gdi.h"
namespace NEO {