This infrastructure allows testing of scenarios that are difficult to be tested on real hardware, e.g. failuers, gpu hangs etc. It consists of two parts: - level zero mock that is pretending to be Level Zero NULL driver - gtest library - initial set of tests checking if ISPCRT correctly passes GPU hang info to the user
13 lines
420 B
CMake
13 lines
420 B
CMake
## Copyright 2020 Intel Corporation
|
|
## SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# set the project name
|
|
project(ispcrt_mock_tests)
|
|
|
|
# add the executable
|
|
add_executable(ispcrt_mock_tests ispcrt_mock_main.cpp)
|
|
|
|
link_directories(${CMAKE_BINARY_DIR})
|
|
|
|
target_link_libraries(ispcrt_mock_tests PUBLIC gtest_main ispcrt ze_null)
|
|
target_include_directories(ispcrt_mock_tests PUBLIC ${CMAKE_SOURCE_DIR}/ispcrt/tests/level_zero_mock) |