mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00
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:

committed by
Compute-Runtime-Automation

parent
aed890a219
commit
e6fc458d4b
@ -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,
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
using namespace NEO;
|
||||
|
||||
using clGetDeviceIDsTests = Test<PlatformFixture>;
|
||||
using clGetDeviceIDsTests = TestLegacy<PlatformFixture>;
|
||||
|
||||
namespace ULT {
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
using namespace NEO;
|
||||
|
||||
using clGetExtensionFunctionAddressForPlatformTests = Test<PlatformFixture>;
|
||||
using clGetExtensionFunctionAddressForPlatformTests = TestLegacy<PlatformFixture>;
|
||||
|
||||
namespace ULT {
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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) {
|
||||
|
@ -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 {
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -55,7 +55,7 @@ class KernelArgSvmApiFixture : public ApiFixture<> {
|
||||
char pCrossThreadData[64]{};
|
||||
};
|
||||
|
||||
typedef Test<KernelArgSvmApiFixture> clSetKernelArgSVMPointerTests;
|
||||
typedef TestLegacy<KernelArgSvmApiFixture> clSetKernelArgSVMPointerTests;
|
||||
|
||||
namespace ULT {
|
||||
|
||||
|
@ -53,7 +53,7 @@ class KernelExecInfoFixture : public ApiFixture<> {
|
||||
cl_device_svm_capabilities svmCapabilities = 0;
|
||||
};
|
||||
|
||||
typedef Test<KernelExecInfoFixture> clSetKernelExecInfoTests;
|
||||
typedef TestLegacy<KernelExecInfoFixture> clSetKernelExecInfoTests;
|
||||
|
||||
namespace ULT {
|
||||
|
||||
|
Reference in New Issue
Block a user