mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Report too long test name at compile time
Change-Id: Ifb2d74f37b4ab0f84f157e11849aaa350ee63811 Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
This commit is contained in:
@ -12,6 +12,7 @@ set(IGDRCL_SRCS_linux_tests
|
||||
${IGDRCL_SOURCE_DIR}/unit_tests/os_interface/linux/allocator_helper.cpp
|
||||
${IGDRCL_SOURCE_DIR}/unit_tests/os_interface/linux/create_drm_memory_manager.cpp
|
||||
${IGDRCL_SOURCE_DIR}/unit_tests/os_interface/linux/options.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test_mode.h
|
||||
)
|
||||
|
||||
set(IGDRCL_SRCS_linux_dll_tests
|
||||
@ -28,6 +29,7 @@ set(IGDRCL_SRCS_linux_dll_tests
|
||||
${IGDRCL_SOURCE_DIR}/unit_tests/aub_stream_mocks/aub_stream_interface_mock.cpp
|
||||
${IGDRCL_SOURCE_DIR}/unit_tests/libult/os_interface.cpp
|
||||
${IGDRCL_SOURCE_DIR}/unit_tests/os_interface/linux/create_drm_memory_manager.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test_mode.h
|
||||
)
|
||||
|
||||
if(IGDRCL__LIBVA_FOUND)
|
||||
@ -54,6 +56,7 @@ foreach(target_name linux_tests linux_dll_tests)
|
||||
target_include_directories(igdrcl_${target_name} PRIVATE
|
||||
${IGDRCL_SOURCE_DIR}/unit_tests/gen_common${BRANCH_DIR_SUFFIX}
|
||||
${IGDRCL_SOURCE_DIR}/runtime/dll/linux/devices${BRANCH_DIR_SUFFIX}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
add_dependencies(unit_tests igdrcl_${target_name})
|
||||
endforeach()
|
||||
|
@ -5,8 +5,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "unit_tests/tests_configuration.h"
|
||||
#include "test_mode.h"
|
||||
|
||||
namespace NEO {
|
||||
TestMode testMode = TestMode::NotSpecified;
|
||||
TestMode testMode = defaultTestMode;
|
||||
} // namespace NEO
|
||||
|
14
unit_tests/linux/test_mode.h
Normal file
14
unit_tests/linux/test_mode.h
Normal file
@ -0,0 +1,14 @@
|
||||
/*
|
||||
* Copyright (C) 2019 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "unit_tests/tests_configuration.h"
|
||||
|
||||
namespace NEO {
|
||||
constexpr TestMode defaultTestMode = TestMode::NotSpecified;
|
||||
} // namespace NEO
|
Reference in New Issue
Block a user