Add a struct for test fixtures with correct method naming convention

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-08-11 11:28:20 +00:00
committed by Compute-Runtime-Automation
parent aed890a219
commit e6fc458d4b
363 changed files with 652 additions and 638 deletions

View File

@ -117,7 +117,7 @@ struct api_fixture_using_aligned_memory_manager {
MockClDevice *device;
};
using api_test_using_aligned_memory_manager = Test<api_fixture_using_aligned_memory_manager>;
using api_test_using_aligned_memory_manager = TestLegacy<api_fixture_using_aligned_memory_manager>;
void CL_CALLBACK notifyFuncProgram(
cl_program program,

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -12,7 +12,7 @@
using namespace NEO;
struct clCreateContextFromTypeTests : Test<PlatformFixture> {
struct clCreateContextFromTypeTests : TestLegacy<PlatformFixture> {
cl_int retVal = CL_DEVICE_NOT_AVAILABLE;
};

View File

@ -15,7 +15,7 @@
using namespace NEO;
using clGetDeviceIDsTests = Test<PlatformFixture>;
using clGetDeviceIDsTests = TestLegacy<PlatformFixture>;
namespace ULT {

View File

@ -11,7 +11,7 @@
using namespace NEO;
using clGetExtensionFunctionAddressForPlatformTests = Test<PlatformFixture>;
using clGetExtensionFunctionAddressForPlatformTests = TestLegacy<PlatformFixture>;
namespace ULT {

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -34,7 +34,7 @@ struct KernelSubGroupInfoKhrFixture : HelloWorldFixture<HelloWorldFixtureFactory
namespace ULT {
typedef Test<KernelSubGroupInfoKhrFixture> KernelSubGroupInfoKhrTest;
typedef TestLegacy<KernelSubGroupInfoKhrFixture> KernelSubGroupInfoKhrTest;
template <typename ParamType>
struct KernelSubGroupInfoKhrParamFixture : KernelSubGroupInfoKhrFixture,

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -51,7 +51,7 @@ struct KernelSubGroupInfoFixture : HelloWorldFixture<HelloWorldFixtureFactory> {
namespace ULT {
typedef Test<KernelSubGroupInfoFixture> KernelSubGroupInfoTest;
typedef TestLegacy<KernelSubGroupInfoFixture> KernelSubGroupInfoTest;
template <typename ParamType>
struct KernelSubGroupInfoParamFixture : KernelSubGroupInfoFixture,

View File

@ -12,14 +12,14 @@
using namespace NEO;
struct clGetPlatformInfoTests : Test<PlatformFixture> {
struct clGetPlatformInfoTests : TestLegacy<PlatformFixture> {
void SetUp() override {
Test<PlatformFixture>::SetUp();
TestLegacy<PlatformFixture>::SetUp();
}
void TearDown() override {
delete[] paramValue;
Test<PlatformFixture>::TearDown();
TestLegacy<PlatformFixture>::TearDown();
}
char *getPlatformInfoString(Platform *pPlatform, cl_platform_info paramName) {

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -12,7 +12,7 @@
using namespace NEO;
using clIcdGetPlatformIDsKHRTests = Test<PlatformFixture>;
using clIcdGetPlatformIDsKHRTests = TestLegacy<PlatformFixture>;
namespace ULT {

View File

@ -56,7 +56,7 @@ const size_t n = 512;
[[maybe_unused]] const cl_mem_properties_intel propertiesUncacheable[] = {CL_MEM_FLAGS_INTEL, CL_MEM_LOCALLY_UNCACHED_RESOURCE, 0};
[[maybe_unused]] const cl_mem_properties_intel propertiesUncacheableInSurfaceState[] = {CL_MEM_FLAGS_INTEL, CL_MEM_LOCALLY_UNCACHED_SURFACE_STATE_RESOURCE, 0};
using clMemLocallyUncachedResourceFixture = Test<HelloWorldFixture<HelloWorldFixtureFactory>>;
using clMemLocallyUncachedResourceFixture = TestLegacy<HelloWorldFixture<HelloWorldFixtureFactory>>;
HWCMDTEST_F(IGFX_GEN8_CORE, clMemLocallyUncachedResourceFixture, GivenAtLeastOneLocallyUncacheableResourceWhenSettingKernelArgumentsThenKernelIsUncacheable) {
cl_int retVal = CL_SUCCESS;

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -11,10 +11,10 @@
using namespace NEO;
struct clRetainReleaseDeviceTests : Test<PlatformFixture> {
struct clRetainReleaseDeviceTests : TestLegacy<PlatformFixture> {
void SetUp() override {
DebugManager.flags.CreateMultipleRootDevices.set(maxRootDeviceCount);
Test<PlatformFixture>::SetUp();
TestLegacy<PlatformFixture>::SetUp();
}
DebugManagerStateRestore restorer;
const uint32_t rootDeviceIndex = 1u;

View File

@ -55,7 +55,7 @@ class KernelArgSvmApiFixture : public ApiFixture<> {
char pCrossThreadData[64]{};
};
typedef Test<KernelArgSvmApiFixture> clSetKernelArgSVMPointerTests;
typedef TestLegacy<KernelArgSvmApiFixture> clSetKernelArgSVMPointerTests;
namespace ULT {

View File

@ -53,7 +53,7 @@ class KernelExecInfoFixture : public ApiFixture<> {
cl_device_svm_capabilities svmCapabilities = 0;
};
typedef Test<KernelExecInfoFixture> clSetKernelExecInfoTests;
typedef TestLegacy<KernelExecInfoFixture> clSetKernelExecInfoTests;
namespace ULT {