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:
Pawel Wilma
2019-04-01 12:57:35 +02:00
committed by sys_ocldev
parent 5c0c1f77f9
commit bac5911c98
17 changed files with 167 additions and 8 deletions

View File

@ -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()

View File

@ -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

View 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