Move test configuration files to shared/common directory

Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
This commit is contained in:
Kacper Nowak
2021-05-24 14:47:23 +02:00
committed by Compute-Runtime-Automation
parent 128c994821
commit f883376e61
18 changed files with 20 additions and 32 deletions

View File

@@ -0,0 +1,16 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "test_mode.h"
namespace NEO {
// max time per single test iteration
unsigned int ultIterationMaxTime = 180;
bool useMockGmm = false;
const char *executionDirectorySuffix = "_aub";
TestMode testMode = defaultTestMode;
} // namespace NEO

View File

@@ -0,0 +1,15 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
struct AubTestsConfig {
bool testCanonicalAddress;
};
template <typename GfxFamily>
AubTestsConfig GetAubTestsConfig();

View File

@@ -0,0 +1,16 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/test/common/test_configuration/aub_tests/aub_tests_configuration.h"
template <typename GfxFamily>
AubTestsConfig GetAubTestsConfig() {
AubTestsConfig aubTestsConfig;
aubTestsConfig.testCanonicalAddress = true;
return aubTestsConfig;
}

View File

@@ -0,0 +1,15 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "test_mode.h"
namespace NEO {
unsigned int ultIterationMaxTime = 45;
bool useMockGmm = true;
const char *executionDirectorySuffix = "";
TestMode testMode = defaultTestMode;
} // namespace NEO

View File

@@ -59,12 +59,12 @@ if(NOT SKIP_UNIT_TESTS)
${NEO_SOURCE_DIR}/opencl/test/unit_test/mocks/mock_platform.cpp
${NEO_SOURCE_DIR}/opencl/test/unit_test/test_macros/test_checks_ocl.cpp
${NEO_SOURCE_DIR}/opencl/test/unit_test/ult_config_listener.cpp
${NEO_SOURCE_DIR}/opencl/test/unit_test/ult_configuration.cpp
${NEO_SOURCE_DIR}/shared/source/helpers/allow_deferred_deleter.cpp
${NEO_SOURCE_DIR}/shared/test/common/helpers/api_specific_config_shared_tests.cpp
${NEO_SOURCE_DIR}/shared/test/common/helpers/memory_leak_listener.cpp
${NEO_SOURCE_DIR}/shared/test/common/helpers/memory_management.cpp
${NEO_SOURCE_DIR}/shared/test/common/test_macros/test_checks_shared.cpp
${NEO_SHARED_TEST_DIRECTORY}/common/test_configuration/unit_tests/ult_configuration.cpp
$<TARGET_OBJECTS:mock_gmm>
)