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

@ -18,7 +18,7 @@
namespace L0 {
namespace ult {
using AUBHelloWorldL0 = Test<AUBFixtureL0>;
using AUBHelloWorldL0 = TestLegacy<AUBFixtureL0>;
TEST_F(AUBHelloWorldL0, whenAppendMemoryCopyIsCalledThenMemoryIsProperlyCopied) {
uint8_t size = 8;
uint8_t val = 255;

View File

@ -22,7 +22,7 @@
namespace L0 {
namespace ult {
struct L0BindlessAub : Test<AUBFixtureL0> {
struct L0BindlessAub : TestLegacy<AUBFixtureL0> {
void SetUp() override {
DebugManager.flags.UseBindlessMode.set(1);

View File

@ -19,7 +19,7 @@
namespace L0 {
namespace ult {
struct AUBAppendKernelIndirectL0 : Test<AUBFixtureL0> {
struct AUBAppendKernelIndirectL0 : TestLegacy<AUBFixtureL0> {
static ze_module_handle_t createModuleFromFile(const std::string &fileName, ze_context_handle_t context, ze_device_handle_t device) {
ze_module_handle_t moduleHandle;

View File

@ -28,7 +28,7 @@
namespace L0 {
namespace ult {
struct DebuggerAub : Test<AUBFixtureL0> {
struct DebuggerAub : TestLegacy<AUBFixtureL0> {
void SetUp() override {
AUBFixtureL0::SetUp(NEO::defaultHwInfo.get(), true);

View File

@ -12,7 +12,7 @@
namespace L0 {
namespace ult {
using KernelPropertyTest = Test<DeviceFixture>;
using KernelPropertyTest = TestLegacy<DeviceFixture>;
HWTEST2_F(KernelPropertyTest, givenKernelExtendedPropertiesStructureWhenKernelPropertiesCalledThenPropertiesAreCorrectlySet, IsGen11HP) {
ze_device_module_properties_t kernelProperties = {};

View File

@ -19,7 +19,7 @@
namespace L0 {
namespace ult {
using CacheFlushTests = Test<DeviceFixture>;
using CacheFlushTests = TestLegacy<DeviceFixture>;
HWTEST2_F(CacheFlushTests, GivenCommandStreamWithSingleL3RangeAndNonZeroPostSyncAddressWhenFlushGpuCacheIsCalledThenPostSyncOperationIsSetForL3Control, IsDG1) {
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;

View File

@ -21,7 +21,7 @@
namespace L0 {
namespace ult {
using CommandListCreate = Test<DeviceFixture>;
using CommandListCreate = TestLegacy<DeviceFixture>;
template <PRODUCT_FAMILY productFamily>
struct CommandListAdjustStateComputeMode : public WhiteBox<::L0::CommandListProductFamily<productFamily>> {

View File

@ -14,7 +14,7 @@
namespace L0 {
namespace ult {
using DeviceFixtureGen12LP = Test<DeviceFixture>;
using DeviceFixtureGen12LP = TestLegacy<DeviceFixture>;
HWTEST2_F(DeviceFixtureGen12LP, GivenTargetGen12LPaWhenGettingMemoryPropertiesThenMemoryNameComesAsDDR, IsGen12LP) {
ze_device_memory_properties_t memProperties = {};
@ -25,7 +25,7 @@ HWTEST2_F(DeviceFixtureGen12LP, GivenTargetGen12LPaWhenGettingMemoryPropertiesTh
EXPECT_EQ(0u, memProperties.maxClockRate);
}
using CommandQueueGroupTest = Test<DeviceFixture>;
using CommandQueueGroupTest = TestLegacy<DeviceFixture>;
HWTEST2_F(CommandQueueGroupTest,
givenNoBlitterSupportAndNoCCSThenOneQueueGroupIsReturned, IsGen12LP) {
@ -74,7 +74,7 @@ class DeviceCopyQueueGroupFixture : public DeviceFixture {
DebugManagerStateRestore restorer;
};
using DeviceCopyQueueGroupTest = Test<DeviceCopyQueueGroupFixture>;
using DeviceCopyQueueGroupTest = TestLegacy<DeviceCopyQueueGroupFixture>;
HWTEST2_F(DeviceCopyQueueGroupTest,
givenBlitterSupportAndEnableBlitterOperationsSupportSetToZeroThenNoCopyEngineIsReturned, IsGen12LP) {

View File

@ -15,7 +15,7 @@
namespace L0 {
namespace ult {
struct TimestampEvent : public Test<DeviceFixture> {
struct TimestampEvent : public TestLegacy<DeviceFixture> {
void SetUp() override {
DeviceFixture::SetUp();
ze_event_pool_desc_t eventPoolDesc = {};

View File

@ -12,7 +12,7 @@
namespace L0 {
namespace ult {
using KernelPropertyTest = Test<DeviceFixture>;
using KernelPropertyTest = TestLegacy<DeviceFixture>;
HWTEST2_F(KernelPropertyTest, givenKernelExtendedPropertiesStructureWhenKernelPropertiesCalledThenPropertiesAreCorrectlySet, IsGen12LP) {
ze_device_module_properties_t kernelProperties = {};

View File

@ -15,7 +15,7 @@
namespace L0 {
namespace ult {
using CommandListAppendLaunchKernel = Test<ModuleFixture>;
using CommandListAppendLaunchKernel = TestLegacy<ModuleFixture>;
using IsGen9Core = IsWithinProducts<IGFX_SKYLAKE, IGFX_COFFEELAKE>;
HWTEST2_F(CommandListAppendLaunchKernel, givenKernelWithSLMThenL3IsProgrammedWithSLMValue, IsGen9Core) {

View File

@ -15,7 +15,7 @@
namespace L0 {
namespace ult {
using CommandListAppendGen9 = Test<DeviceFixture>;
using CommandListAppendGen9 = TestLegacy<DeviceFixture>;
TEST(CommandListAppendMemoryRangesBarrier, WhenAppendingMemoryRangesBarrierThenSuccessIsReturned) {
MockCommandList commandList;

View File

@ -16,7 +16,7 @@
namespace L0 {
namespace ult {
using CommandListProgramL3 = Test<DeviceFixture>;
using CommandListProgramL3 = TestLegacy<DeviceFixture>;
template <PRODUCT_FAMILY productFamily>
struct CommandListAdjustStateComputeMode : public WhiteBox<::L0::CommandListProductFamily<productFamily>> {

View File

@ -28,7 +28,7 @@
namespace L0 {
namespace ult {
using CommandQueueExecuteCommandListsGen9 = Test<DeviceFixture>;
using CommandQueueExecuteCommandListsGen9 = TestLegacy<DeviceFixture>;
GEN9TEST_F(CommandQueueExecuteCommandListsGen9, WhenExecutingCmdListsThenPipelineSelectAndVfeStateAreAddedToCmdBuffer) {
const ze_command_queue_desc_t desc = {};

View File

@ -184,7 +184,7 @@ struct CommandQueueGroupMultiDeviceFixture : public MultiDeviceFixture {
L0::Device *device = nullptr;
};
using CommandQueueGroupMultiDevice = Test<CommandQueueGroupMultiDeviceFixture>;
using CommandQueueGroupMultiDevice = TestLegacy<CommandQueueGroupMultiDeviceFixture>;
HWTEST2_F(CommandQueueGroupMultiDevice,
givenCommandQueuePropertiesCallThenCallSucceedsAndCommandListImmediateIsCreated, IsGen9) {

View File

@ -13,7 +13,7 @@
namespace L0 {
namespace ult {
using DevicePropertyTest = Test<DeviceFixture>;
using DevicePropertyTest = TestLegacy<DeviceFixture>;
HWTEST2_F(DevicePropertyTest, givenReturnedDevicePropertiesThenExpectedPropertiesFlagsSet, IsGen9) {
ze_device_properties_t deviceProps = {ZE_STRUCTURE_TYPE_DEVICE_PROPERTIES};
@ -25,7 +25,7 @@ HWTEST2_F(DevicePropertyTest, givenReturnedDevicePropertiesThenExpectedPropertie
EXPECT_EQ(ZE_DEVICE_PROPERTY_FLAG_INTEGRATED, deviceProps.flags & ZE_DEVICE_PROPERTY_FLAG_INTEGRATED);
}
using CommandQueueGroupTest = Test<DeviceFixture>;
using CommandQueueGroupTest = TestLegacy<DeviceFixture>;
HWTEST2_F(CommandQueueGroupTest, givenCommandQueuePropertiesCallThenCorrectNumberOfGroupsIsReturned, IsGen9) {
uint32_t count = 0;

View File

@ -12,7 +12,7 @@
namespace L0 {
namespace ult {
using KernelPropertyTest = Test<DeviceFixture>;
using KernelPropertyTest = TestLegacy<DeviceFixture>;
HWTEST2_F(KernelPropertyTest, givenReturnedKernelPropertiesThenExpectedDp4aSupportReturned, IsGen9) {
ze_device_module_properties_t kernelProps = {};

View File

@ -15,7 +15,7 @@
using namespace NEO;
using BuiltInTestL0 = Test<NEO::DeviceFixture>;
using BuiltInTestL0 = TestLegacy<NEO::DeviceFixture>;
TEST_F(BuiltInTestL0, GivenBuiltinTypeIntermediateWhenGettingBuiltinResourceForNotRegisteredRevisionThenResourceSizeIsNonZero) {
pDevice->getRootDeviceEnvironment().getMutableHardwareInfo()->platform.usRevId += 0xdead;

View File

@ -82,7 +82,7 @@ class BuiltinFunctionsLibFixture : public DeviceFixture {
};
template <bool useImagesBuiltins, bool isStateless>
using TestBuiltinFunctionsLibImpl = Test<BuiltinFunctionsLibFixture<useImagesBuiltins, isStateless>>;
using TestBuiltinFunctionsLibImpl = TestLegacy<BuiltinFunctionsLibFixture<useImagesBuiltins, isStateless>>;
class TestBuiltinFunctionsLibImplDefault : public TestBuiltinFunctionsLibImpl<false, false> {};
class TestBuiltinFunctionsLibImplStateless : public TestBuiltinFunctionsLibImpl<false, true> {};

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2021 Intel Corporation
* Copyright (C) 2021-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -30,7 +30,7 @@ class CacheReservationFixture : public DeviceFixture {
CacheReservation *cache = nullptr;
};
using CacheReservationTest = Test<CacheReservationFixture>;
using CacheReservationTest = TestLegacy<CacheReservationFixture>;
TEST_F(CacheReservationTest, GivenCacheReservationCreatedWhenCallingReserveCacheThenReturnFalse) {
size_t cacheLevel = 3;

View File

@ -29,7 +29,7 @@ class CacheReservationFixture : public DeviceFixture {
CacheReservation *cache = nullptr;
};
using CacheReservationTest = Test<CacheReservationFixture>;
using CacheReservationTest = TestLegacy<CacheReservationFixture>;
TEST_F(CacheReservationTest, GivenCacheReservationCreatedWhenCallingReserveCacheThenReturnFalse) {
size_t cacheLevel = 3;

View File

@ -23,7 +23,7 @@
namespace L0 {
namespace ult {
using ContextCommandListCreate = Test<ContextFixture>;
using ContextCommandListCreate = TestLegacy<ContextFixture>;
TEST_F(ContextCommandListCreate, whenCreatingCommandListFromContextThenSuccessIsReturned) {
ze_command_list_desc_t desc = {};
@ -61,7 +61,7 @@ HWTEST2_F(ContextCommandListCreate, givenImmediateCmdListWhenGettingLogicalState
commandList->destroy();
}
using CommandListCreate = Test<DeviceFixture>;
using CommandListCreate = TestLegacy<DeviceFixture>;
TEST_F(CommandListCreate, whenCommandListIsCreatedWithInvalidProductFamilyThenFailureIsReturned) {
ze_result_t returnValue;
@ -345,7 +345,7 @@ TEST_F(CommandListCreate, givenValidPtrThenAppendMemAdviseSetAndClearCachingThen
ASSERT_EQ(res, ZE_RESULT_SUCCESS);
}
using CommandListMemAdvisePageFault = Test<PageFaultDeviceFixture>;
using CommandListMemAdvisePageFault = TestLegacy<PageFaultDeviceFixture>;
TEST_F(CommandListMemAdvisePageFault, givenValidPtrAndPageFaultHandlerThenAppendMemAdviseWithReadOnlyAndDevicePreferredClearsMigrationBlocked) {
size_t size = 10;

View File

@ -19,8 +19,8 @@
namespace L0 {
namespace ult {
using CommandListCreate = Test<DeviceFixture>;
using CommandListAppend = Test<CommandListFixture>;
using CommandListCreate = TestLegacy<DeviceFixture>;
using CommandListAppend = TestLegacy<CommandListFixture>;
template <GFXCORE_FAMILY gfxCoreFamily>
class MockCommandListHw : public WhiteBox<::L0::CommandListCoreFamily<gfxCoreFamily>> {
@ -1199,7 +1199,7 @@ HWTEST2_F(CommandListCreate, givenCommandListThenSshCorrectlyReserved, Supported
EXPECT_EQ(commandList.getReserveSshSize(), size);
}
using CommandListAppendMemoryCopyBlit = Test<CommandListFixture>;
using CommandListAppendMemoryCopyBlit = TestLegacy<CommandListFixture>;
HWTEST2_F(CommandListAppendMemoryCopyBlit, whenAppendMemoryCopyBlitIsAppendedAndNoSpaceIsAvailableThenNextCommandBufferIsCreated, IsAtLeastSkl) {
using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL;

View File

@ -87,7 +87,7 @@ TEST_F(CommandListCreateNegativeTest, whenDeviceAllocationFailsDuringCommandList
ASSERT_EQ(nullptr, commandList);
}
using CommandListCreate = Test<DeviceFixture>;
using CommandListCreate = TestLegacy<DeviceFixture>;
HWTEST2_F(CommandListCreate, givenHostAllocInMapWhenGettingAllocInRangeThenAllocFromMapReturned, IsAtLeastSkl) {
auto commandList = std::make_unique<WhiteBox<::L0::CommandListCoreFamily<gfxCoreFamily>>>();

View File

@ -20,7 +20,7 @@
namespace L0 {
namespace ult {
using CommandListCreate = Test<DeviceFixture>;
using CommandListCreate = TestLegacy<DeviceFixture>;
HWTEST2_F(CommandListCreate, givenCopyOnlyCommandListWhenAppendWriteGlobalTimestampCalledThenMiFlushDWWithTimestampEncoded, IsAtLeastSkl) {
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
@ -248,7 +248,7 @@ class CommandListImmediateFlushTaskTests : public DeviceFixture {
DebugManagerStateRestore restorer;
};
using CommandListImmediateFlushTaskComputeTests = Test<CommandListImmediateFlushTaskTests>;
using CommandListImmediateFlushTaskComputeTests = TestLegacy<CommandListImmediateFlushTaskTests>;
HWTEST2_F(CommandListImmediateFlushTaskComputeTests, givenDG2CommandListIsInititalizedThenByDefaultFlushTaskSubmissionEnabled, IsDG2) {
ze_command_queue_desc_t queueDesc = {};
ze_result_t returnValue;
@ -720,7 +720,7 @@ HWTEST2_F(CommandListCreate, whenCommandListIsCreatedThenFlagsAreCorrectlySet, I
}
}
using HostPointerManagerCommandListTest = Test<HostPointerManagerFixure>;
using HostPointerManagerCommandListTest = TestLegacy<HostPointerManagerFixure>;
HWTEST2_F(HostPointerManagerCommandListTest,
givenImportedHostPointerWhenAppendMemoryFillUsingHostPointerThenAppendFillUsingHostPointerAllocation,
IsAtLeastSkl) {

View File

@ -20,7 +20,7 @@
namespace L0 {
namespace ult {
using CommandListCreate = Test<DeviceFixture>;
using CommandListCreate = TestLegacy<DeviceFixture>;
HWTEST_F(CommandListCreate, givenCommandListWithInvalidWaitEventArgWhenAppendQueryKernelTimestampsThenProperErrorRetruned) {
ze_result_t returnValue;

View File

@ -17,7 +17,7 @@
namespace L0 {
namespace ult {
using MultiTileImmediateCommandListTest = Test<MultiTileCommandListFixture<true, false, false>>;
using MultiTileImmediateCommandListTest = TestLegacy<MultiTileCommandListFixture<true, false, false>>;
HWTEST2_F(MultiTileImmediateCommandListTest, GivenMultiTileDeviceWhenCreatingImmediateCommandListThenExpectPartitionCountMatchTileCount, IsWithinXeGfxFamily) {
EXPECT_EQ(2u, device->getNEODevice()->getDeviceBitfield().count());
@ -28,7 +28,7 @@ HWTEST2_F(MultiTileImmediateCommandListTest, GivenMultiTileDeviceWhenCreatingImm
EXPECT_EQ(2u, commandList->partitionCount);
}
using MultiTileImmediateInternalCommandListTest = Test<MultiTileCommandListFixture<true, true, false>>;
using MultiTileImmediateInternalCommandListTest = TestLegacy<MultiTileCommandListFixture<true, true, false>>;
HWTEST2_F(MultiTileImmediateInternalCommandListTest, GivenMultiTileDeviceWhenCreatingInternalImmediateCommandListThenExpectPartitionCountEqualOne, IsWithinXeGfxFamily) {
EXPECT_EQ(2u, device->getNEODevice()->getDeviceBitfield().count());
@ -39,7 +39,7 @@ HWTEST2_F(MultiTileImmediateInternalCommandListTest, GivenMultiTileDeviceWhenCre
EXPECT_EQ(1u, commandList->partitionCount);
}
using MultiTileCopyEngineCommandListTest = Test<MultiTileCommandListFixture<false, false, true>>;
using MultiTileCopyEngineCommandListTest = TestLegacy<MultiTileCommandListFixture<false, false, true>>;
HWTEST2_F(MultiTileCopyEngineCommandListTest, GivenMultiTileDeviceWhenCreatingCopyEngineCommandListThenExpectPartitionCountEqualOne, IsWithinXeGfxFamily) {
EXPECT_EQ(2u, device->getNEODevice()->getDeviceBitfield().count());
@ -50,7 +50,7 @@ HWTEST2_F(MultiTileCopyEngineCommandListTest, GivenMultiTileDeviceWhenCreatingCo
EXPECT_EQ(1u, commandList->partitionCount);
}
using CommandListExecuteImmediate = Test<DeviceFixture>;
using CommandListExecuteImmediate = TestLegacy<DeviceFixture>;
HWTEST2_F(CommandListExecuteImmediate, whenExecutingCommandListImmediateWithFlushTaskThenRequiredStreamStateIsCorrectlyReported, IsAtLeastSkl) {
auto &hwHelper = NEO::HwHelper::get(defaultHwInfo->platform.eRenderCoreFamily);
auto &hwInfoConfig = *NEO::HwInfoConfig::get(defaultHwInfo->platform.eProductFamily);
@ -111,7 +111,7 @@ HWTEST2_F(CommandListExecuteImmediate, whenExecutingCommandListImmediateWithFlus
EXPECT_FALSE(commandListImmediate.containsAnyKernel);
}
using CommandListTest = Test<DeviceFixture>;
using CommandListTest = TestLegacy<DeviceFixture>;
using IsDcFlushSupportedPlatform = IsWithinGfxCore<IGFX_GEN9_CORE, IGFX_XE_HP_CORE>;
HWTEST2_F(CommandListTest, givenCopyCommandListWhenRequiredFlushOperationThenExpectNoPipeControl, IsDcFlushSupportedPlatform) {

View File

@ -23,7 +23,7 @@
namespace L0 {
namespace ult {
using CommandListCreate = Test<DeviceFixture>;
using CommandListCreate = TestLegacy<DeviceFixture>;
HWTEST2_F(CommandListCreate, givenIndirectAccessFlagsAreChangedWhenResetingCommandListThenExpectAllFlagsSetToDefault, IsAtLeastSkl) {
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
@ -213,7 +213,7 @@ HWTEST2_F(CommandListCreate, givenSingleTileOnlyPlatformsWhenProgrammingMultiTil
EXPECT_EQ(usedBefore, usedAfter);
}
using CommandListAppendLaunchKernel = Test<ModuleFixture>;
using CommandListAppendLaunchKernel = TestLegacy<ModuleFixture>;
HWTEST2_F(CommandListAppendLaunchKernel, givenSignalEventWhenAppendLaunchCooperativeKernelIsCalledThenSuccessIsReturned, IsAtLeastSkl) {
createKernel();
@ -464,7 +464,7 @@ HWTEST2_F(CommandListCreate, givenCommandListAndHostPointersWhenMemoryCopyCalled
}
}
using CmdlistAppendLaunchKernelTests = Test<ModuleImmutableDataFixture>;
using CmdlistAppendLaunchKernelTests = TestLegacy<ModuleImmutableDataFixture>;
using IsBetweenGen9AndGen12lp = IsWithinGfxCore<IGFX_GEN9_CORE, IGFX_GEN12LP_CORE>;
HWTEST2_F(CmdlistAppendLaunchKernelTests,

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2021 Intel Corporation
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -29,7 +29,7 @@ TEST(zeCommandListAppendMemoryPrefetch, whenCalledThenRedirectedToObject) {
ASSERT_EQ(ZE_RESULT_SUCCESS, res);
}
using zeCommandListAppendMemAdviseTest = Test<DeviceFixture>;
using zeCommandListAppendMemAdviseTest = TestLegacy<DeviceFixture>;
TEST_F(zeCommandListAppendMemAdviseTest, whenCalledThenRedirectedToObject) {
MockCommandList commandList;

View File

@ -18,7 +18,7 @@
namespace L0 {
namespace ult {
using CommandListAppendBarrier = Test<CommandListFixture>;
using CommandListAppendBarrier = TestLegacy<CommandListFixture>;
HWTEST_F(CommandListAppendBarrier, WhenAppendingBarrierThenPipeControlIsGenerated) {
using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL;
@ -191,7 +191,7 @@ void validateMultiTileBarrier(void *cmdBuffer, size_t &parsedOffset,
}
}
using MultiTileCommandListAppendBarrier = Test<MultiTileCommandListFixture<false, false, false>>;
using MultiTileCommandListAppendBarrier = TestLegacy<MultiTileCommandListFixture<false, false, false>>;
HWTEST2_F(MultiTileCommandListAppendBarrier, WhenAppendingBarrierThenPipeControlIsGenerated, IsWithinXeGfxFamily) {
using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL;
@ -505,7 +505,7 @@ HWTEST2_F(MultiTileCommandListAppendBarrier,
true);
}
using MultiTileImmediateCommandListAppendBarrier = Test<MultiTileCommandListFixture<true, false, false>>;
using MultiTileImmediateCommandListAppendBarrier = TestLegacy<MultiTileCommandListFixture<true, false, false>>;
HWTEST2_F(MultiTileImmediateCommandListAppendBarrier,
givenMultiTileImmediateCommandListWhenAppendingBarrierThenExpectCrossTileSyncAndNoCleanupSection, IsWithinXeGfxFamily) {

View File

@ -19,7 +19,7 @@
namespace L0 {
namespace ult {
using CommandListAppendEventReset = Test<CommandListFixture>;
using CommandListAppendEventReset = TestLegacy<CommandListFixture>;
HWTEST_F(CommandListAppendEventReset, givenCmdlistWhenResetEventAppendedThenStoreDataImmIsGenerated) {
using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL;

View File

@ -25,7 +25,7 @@
namespace L0 {
namespace ult {
using CommandListAppendLaunchKernel = Test<ModuleFixture>;
using CommandListAppendLaunchKernel = TestLegacy<ModuleFixture>;
HWTEST_F(CommandListAppendLaunchKernel, givenKernelWithIndirectAllocationsAllowedThenCommandListReturnsExpectedIndirectAllocationsAllowed) {
createKernel();

View File

@ -23,7 +23,7 @@
namespace L0 {
namespace ult {
struct CommandListAppendLaunchKernelSWTags : public Test<ModuleFixture> {
struct CommandListAppendLaunchKernelSWTags : public TestLegacy<ModuleFixture> {
void SetUp() override {
NEO::MockCompilerEnableGuard mock(true);
NEO::DebugManager.flags.EnableSWTags.set(true);
@ -33,7 +33,7 @@ struct CommandListAppendLaunchKernelSWTags : public Test<ModuleFixture> {
DebugManagerStateRestore dbgRestorer;
};
struct CommandListDualStorage : public Test<ModuleFixture> {
struct CommandListDualStorage : public TestLegacy<ModuleFixture> {
void SetUp() override {
NEO::MockCompilerEnableGuard mock(true);
DebugManager.flags.EnableLocalMemory.set(1);
@ -799,7 +799,7 @@ HWTEST_F(CommandListAppendLaunchKernelSWTags, givenEnableSWTagsWhenAppendMemoryC
EXPECT_TRUE(tagFound);
}
using CommandListArbitrationPolicyTest = Test<ModuleFixture>;
using CommandListArbitrationPolicyTest = TestLegacy<ModuleFixture>;
HWTEST_F(CommandListArbitrationPolicyTest, whenCreatingCommandListThenDefaultThreadArbitrationPolicyIsUsed) {
using STATE_BASE_ADDRESS = typename FamilyType::STATE_BASE_ADDRESS;
@ -921,7 +921,7 @@ HWTEST_F(CommandListArbitrationPolicyTest, whenCommandListIsResetThenOriginalThr
}
}
using CmdlistAppendLaunchKernelTests = Test<ModuleImmutableDataFixture>;
using CmdlistAppendLaunchKernelTests = TestLegacy<ModuleImmutableDataFixture>;
struct CmdlistAppendLaunchKernelWithImplicitArgsTests : CmdlistAppendLaunchKernelTests {
void SetUp() override {
@ -1215,7 +1215,7 @@ HWTEST_F(CmdlistAppendLaunchKernelTests, whenEncodingWorkDimForIndirectDispatchT
}
}
using CommandListAppendLaunchKernel = Test<ModuleFixture>;
using CommandListAppendLaunchKernel = TestLegacy<ModuleFixture>;
HWTEST2_F(CommandListAppendLaunchKernel, givenCooperativeAndNonCooperativeKernelsWhenAppendLaunchCooperativeKernelIsCalledThenReturnError, IsAtLeastSkl) {
Mock<::L0::Kernel> kernel;
auto pMockModule = std::unique_ptr<Module>(new Mock<Module>(device, nullptr));
@ -1276,7 +1276,7 @@ HWTEST2_F(CommandListAppendLaunchKernel, GivenDebugToggleSetWhenUpdateStreamProp
EXPECT_EQ(defaultThreadArbitrationPolicy, pCommandList->finalStreamState.stateComputeMode.threadArbitrationPolicy.value);
}
using MultiTileCommandListAppendLaunchFunctionXeHpCoreTest = Test<MultiTileCommandListAppendLaunchFunctionFixture>;
using MultiTileCommandListAppendLaunchFunctionXeHpCoreTest = TestLegacy<MultiTileCommandListAppendLaunchFunctionFixture>;
HWCMDTEST_F(IGFX_XE_HP_CORE, MultiTileCommandListAppendLaunchFunctionXeHpCoreTest, givenImplicitScalingEnabledWhenAppendingKernelWithEventThenAllEventPacketsAreUsed) {
ze_event_pool_desc_t eventPoolDesc = {};

View File

@ -26,7 +26,7 @@
namespace L0 {
namespace ult {
using CommandListAppendLaunchKernel = Test<ModuleFixture>;
using CommandListAppendLaunchKernel = TestLegacy<ModuleFixture>;
HWCMDTEST_F(IGFX_GEN8_CORE, CommandListAppendLaunchKernel, givenFunctionWhenBindingTablePrefetchAllowedThenProgramBindingTableEntryCount) {
using MEDIA_INTERFACE_DESCRIPTOR_LOAD = typename FamilyType::MEDIA_INTERFACE_DESCRIPTOR_LOAD;
@ -695,7 +695,7 @@ HWTEST_F(CommandListAppendLaunchKernelWithImplicitArgs, givenIndirectDispatchWit
context->freeMem(alloc);
}
using MultiTileImmediateCommandListAppendLaunchFunctionXeHpCoreTest = Test<MultiTileImmediateCommandListAppendLaunchFunctionFixture>;
using MultiTileImmediateCommandListAppendLaunchFunctionXeHpCoreTest = TestLegacy<MultiTileImmediateCommandListAppendLaunchFunctionFixture>;
HWTEST2_F(MultiTileImmediateCommandListAppendLaunchFunctionXeHpCoreTest, givenImplicitScalingWhenUsingImmediateCommandListThenDoNotAddSelfCleanup, IsAtLeastXeHpCore) {
using WALKER_TYPE = typename FamilyType::WALKER_TYPE;

View File

@ -16,7 +16,7 @@
namespace L0 {
namespace ult {
using AppendMemoryCopy = Test<DeviceFixture>;
using AppendMemoryCopy = TestLegacy<DeviceFixture>;
HWTEST2_F(AppendMemoryCopy, givenCommandListAndHostPointersWhenMemoryCopyRegionCalledThenTwoNewAllocationAreAddedToHostMapPtr, IsAtLeastSkl) {
MockAppendMemoryCopy<gfxCoreFamily> cmdList;

View File

@ -16,7 +16,7 @@
namespace L0 {
namespace ult {
using MultiPartitionPrologueTest = Test<DeviceFixture>;
using MultiPartitionPrologueTest = TestLegacy<DeviceFixture>;
HWTEST2_F(MultiPartitionPrologueTest, whenAppendMultiPartitionPrologueIsCalledThenCommandListIsUpdated, IsAtLeastXeHpCore) {
using MI_LOAD_REGISTER_MEM = typename FamilyType::MI_LOAD_REGISTER_MEM;
using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM;
@ -72,7 +72,7 @@ HWTEST2_F(MultiPartitionPrologueTest, whenAppendMultiPartitionPrologueIsCalledTh
auto result = commandList->close();
ASSERT_EQ(ZE_RESULT_SUCCESS, result);
}
using MultiPartitionEpilogueTest = Test<DeviceFixture>;
using MultiPartitionEpilogueTest = TestLegacy<DeviceFixture>;
HWTEST2_F(MultiPartitionEpilogueTest, whenAppendMultiPartitionEpilogueIsCalledThenCommandListIsUpdated, IsAtLeastXeHpCore) {
using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM;

View File

@ -19,7 +19,7 @@
namespace L0 {
namespace ult {
using CommandListAppendSignalEvent = Test<CommandListFixture>;
using CommandListAppendSignalEvent = TestLegacy<CommandListFixture>;
HWTEST_F(CommandListAppendSignalEvent, WhenAppendingSignalEventWithoutScopeThenMiStoreImmIsGenerated) {
using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL;
using POST_SYNC_OPERATION = typename PIPE_CONTROL::POST_SYNC_OPERATION;

View File

@ -19,7 +19,7 @@
namespace L0 {
namespace ult {
using CommandListAppendWaitOnEvent = Test<CommandListFixture>;
using CommandListAppendWaitOnEvent = TestLegacy<CommandListFixture>;
HWTEST_F(CommandListAppendWaitOnEvent, WhenAppendingWaitOnEventThenSemaphoreWaitCmdIsGenerated) {
using MI_SEMAPHORE_WAIT = typename FamilyType::MI_SEMAPHORE_WAIT;
@ -386,7 +386,7 @@ HWTEST_F(CommandListAppendWaitOnEvent, givenCommandBufferIsEmptyWhenAppendingWai
EXPECT_EQ(1u, semaphoreWaitsFound);
}
using MultTileCommandListAppendWaitOnEvent = Test<MultiTileCommandListFixture<false, false, false>>;
using MultTileCommandListAppendWaitOnEvent = TestLegacy<MultiTileCommandListFixture<false, false, false>>;
HWTEST2_F(MultTileCommandListAppendWaitOnEvent,
GivenMultiTileCmdListWhenPartitionedEventUsedToWaitThenExpectProperGpuAddressAndSemaphoreCount, IsAtLeastXeHpCore) {
using MI_SEMAPHORE_WAIT = typename FamilyType::MI_SEMAPHORE_WAIT;

View File

@ -58,7 +58,7 @@ class MockDriverHandle : public L0::DriverHandleImp {
NEO::SvmAllocationData data{rootDeviceIndex};
};
using AppendMemoryCopy = Test<DeviceFixture>;
using AppendMemoryCopy = TestLegacy<DeviceFixture>;
HWTEST2_F(AppendMemoryCopy, givenCopyOnlyCommandListWhenAppenBlitFillCalledWithLargePatternSizeThenMemCopyWasCalled, IsAtLeastSkl) {
MockCommandListForMemFill<gfxCoreFamily> cmdList;

View File

@ -107,9 +107,9 @@ struct MultiTileAppendFillFixture : public AppendFillFixture {
DebugManagerStateRestore restorer;
};
using AppendFillTest = Test<AppendFillFixture>;
using AppendFillTest = TestLegacy<AppendFillFixture>;
using MultiTileAppendFillTest = Test<MultiTileAppendFillFixture>;
using MultiTileAppendFillTest = TestLegacy<MultiTileAppendFillFixture>;
HWTEST2_F(AppendFillTest,
givenCallToAppendMemoryFillWithImmediateValueThenSuccessIsReturned, IsAtLeastSkl) {

View File

@ -67,7 +67,7 @@ class CommandListMemoryExtensionFixture : public DeviceFixture {
void *ptr = nullptr;
};
using CommandListAppendWaitOnMemExtension = Test<CommandListMemoryExtensionFixture>;
using CommandListAppendWaitOnMemExtension = TestLegacy<CommandListMemoryExtensionFixture>;
TEST_F(CommandListAppendWaitOnMemExtension, givenAppendWaitOnMemReturnsUnsupported) {
ze_result_t result = ZE_RESULT_SUCCESS;
@ -76,7 +76,7 @@ TEST_F(CommandListAppendWaitOnMemExtension, givenAppendWaitOnMemReturnsUnsupport
EXPECT_EQ(ZE_RESULT_ERROR_UNSUPPORTED_FEATURE, result);
}
using CommandListAppendWriteToMemExtension = Test<CommandListMemoryExtensionFixture>;
using CommandListAppendWriteToMemExtension = TestLegacy<CommandListMemoryExtensionFixture>;
TEST_F(CommandListAppendWriteToMemExtension, givenAppendWriteToMemReturnsUnsupported) {
ze_result_t result = ZE_RESULT_SUCCESS;

View File

@ -24,7 +24,7 @@
namespace L0 {
namespace ult {
using CommandListTests = Test<DeviceFixture>;
using CommandListTests = TestLegacy<DeviceFixture>;
HWCMDTEST_F(IGFX_XE_HP_CORE, CommandListTests, whenCommandListIsCreatedThenPCAndStateBaseAddressCmdsAreAddedAndCorrectlyProgrammed) {
using STATE_BASE_ADDRESS = typename FamilyType::STATE_BASE_ADDRESS;
using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL;
@ -149,7 +149,7 @@ HWTEST2_F(CommandListTests, whenCommandListIsCreatedAndProgramExtendedPipeContro
EXPECT_TRUE(cmdSba->getDisableSupportForMultiGpuAtomicsForStatelessAccesses());
}
using MultiTileCommandListTests = Test<MultiTileCommandListFixture<false, false, false>>;
using MultiTileCommandListTests = TestLegacy<MultiTileCommandListFixture<false, false, false>>;
HWCMDTEST_F(IGFX_XE_HP_CORE, MultiTileCommandListTests, givenPartitionedCommandListWhenCommandListIsCreatedThenStateBaseAddressCmdWithMultiPartialAndAtomicsCorrectlyProgrammed) {
using STATE_BASE_ADDRESS = typename FamilyType::STATE_BASE_ADDRESS;
@ -180,14 +180,14 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, MultiTileCommandListTests, givenPartitionedCommandL
EXPECT_TRUE(cmdSba->getDisableSupportForMultiGpuAtomicsForStatelessAccesses());
}
using CommandListTestsReserveSize = Test<DeviceFixture>;
using CommandListTestsReserveSize = TestLegacy<DeviceFixture>;
HWTEST2_F(CommandListTestsReserveSize, givenCommandListWhenGetReserveSshSizeThen4PagesReturned, IsAtLeastXeHpCore) {
L0::CommandListCoreFamily<gfxCoreFamily> commandList(1u);
EXPECT_EQ(commandList.getReserveSshSize(), 4 * MemoryConstants::pageSize);
}
using CommandListAppendLaunchKernel = Test<ModuleFixture>;
using CommandListAppendLaunchKernel = TestLegacy<ModuleFixture>;
HWTEST2_F(CommandListAppendLaunchKernel, givenVariousKernelsWhenUpdateStreamPropertiesIsCalledThenRequiredStateFinalStateAndCommandsToPatchAreCorrectlySet, IsAtLeastXeHpCore) {
DebugManagerStateRestore restorer;
DebugManager.flags.AllowMixingRegularAndCooperativeKernels.set(1);
@ -279,8 +279,8 @@ HWTEST2_F(CommandListAppendLaunchKernel, givenVariousKernelsAndPatchingDisallowe
pCommandList->reset();
}
using AppendMemoryCopyXeHpAndLater = Test<DeviceFixture>;
using MultiTileAppendMemoryCopyXeHpAndLater = Test<ImplicitScalingRootDevice>;
using AppendMemoryCopyXeHpAndLater = TestLegacy<DeviceFixture>;
using MultiTileAppendMemoryCopyXeHpAndLater = TestLegacy<ImplicitScalingRootDevice>;
HWTEST2_F(AppendMemoryCopyXeHpAndLater,
givenCommandListWhenTimestampProvidedByComputeWalkerPostSyncPassedToMemoryCopyThenAppendProfilingCalledForThreeSeparateKernels,

View File

@ -24,7 +24,7 @@
namespace L0 {
namespace ult {
using CommandQueueCreate = Test<DeviceFixture>;
using CommandQueueCreate = TestLegacy<DeviceFixture>;
TEST_F(CommandQueueCreate, whenCreatingCommandQueueThenItIsInitialized) {
auto csr = std::unique_ptr<NEO::CommandStreamReceiver>(neoDevice->createCommandStreamReceiver());
@ -640,7 +640,7 @@ TEST_F(CommandQueueCreate, givenCmdQueueWithBlitCopyWhenExecutingCopyBlitCommand
commandQueue->destroy();
}
using DeviceCreateCommandQueueTest = Test<DeviceFixture>;
using DeviceCreateCommandQueueTest = TestLegacy<DeviceFixture>;
TEST_F(DeviceCreateCommandQueueTest, givenLowPriorityDescWhenCreateCommandQueueIsCalledThenLowPriorityCsrIsAssigned) {
ze_command_queue_desc_t desc{};
desc.ordinal = 0u;
@ -839,7 +839,7 @@ struct MultiDeviceCreateCommandQueueFixture : MultiDeviceFixture {
}
};
using MultiDeviceCreateCommandQueueTest = Test<MultiDeviceCreateCommandQueueFixture>;
using MultiDeviceCreateCommandQueueTest = TestLegacy<MultiDeviceCreateCommandQueueFixture>;
TEST_F(MultiDeviceCreateCommandQueueTest, givenLowPriorityDescWhenCreateCommandQueueIsCalledThenLowPriorityCsrIsAssigned) {
auto device = driverHandle->devices[0];
@ -887,7 +887,7 @@ class MockCommandQueue : public L0::CommandQueueHw<gfxCoreFamily> {
}
};
using ExecuteCommandListTests = Test<ContextFixture>;
using ExecuteCommandListTests = TestLegacy<ContextFixture>;
HWTEST2_F(ExecuteCommandListTests, givenExecuteCommandListWhenItReturnsThenContainersAreEmpty, IsAtLeastSkl) {
ze_command_queue_desc_t desc = {};
NEO::CommandStreamReceiver *csr;
@ -945,7 +945,7 @@ HWTEST2_F(ExecuteCommandListTests, givenOutOfMemorySubmitBatchBufferThenExecuteC
commandList->destroy();
}
using CommandQueueDestroy = Test<DeviceFixture>;
using CommandQueueDestroy = TestLegacy<DeviceFixture>;
HWTEST2_F(CommandQueueDestroy, givenCommandQueueAndCommandListWithSshAndScratchWhenExecuteThenSshWasUsed, IsAtLeastSkl) {
ze_command_queue_desc_t desc = {};
NEO::CommandStreamReceiver *csr;

View File

@ -29,7 +29,7 @@
namespace L0 {
namespace ult {
using ContextCreateCommandQueueTest = Test<ContextFixture>;
using ContextCreateCommandQueueTest = TestLegacy<ContextFixture>;
TEST_F(ContextCreateCommandQueueTest, givenCallToContextCreateCommandQueueThenCallSucceeds) {
ze_command_queue_desc_t desc = {};
@ -109,7 +109,7 @@ HWTEST_F(ContextCreateCommandQueueTest, givenRootDeviceAndImplicitScalingDisable
L0::CommandQueue::fromHandle(commandQueue)->destroy();
}
using AubCsrTest = Test<AubCsrFixture>;
using AubCsrTest = TestLegacy<AubCsrFixture>;
HWTEST_TEMPLATED_F(AubCsrTest, givenAubCsrWhenCallingExecuteCommandListsThenPollForCompletionIsCalled) {
auto csr = neoDevice->getDefaultEngine().commandStreamReceiver;
@ -134,8 +134,8 @@ HWTEST_TEMPLATED_F(AubCsrTest, givenAubCsrWhenCallingExecuteCommandListsThenPoll
L0::CommandQueue::fromHandle(commandQueue)->destroy();
}
using CommandQueueSynchronizeTest = Test<ContextFixture>;
using MultiTileCommandQueueSynchronizeTest = Test<SingleRootMultiSubDeviceFixture>;
using CommandQueueSynchronizeTest = TestLegacy<ContextFixture>;
using MultiTileCommandQueueSynchronizeTest = TestLegacy<SingleRootMultiSubDeviceFixture>;
template <typename GfxFamily>
struct SynchronizeCsr : public NEO::UltCommandStreamReceiver<GfxFamily> {
@ -503,7 +503,7 @@ HWTEST_F(CommandQueueSynchronizeTest, givenSynchronousCommandQueueWhenTagUpdateF
L0::CommandQueue::fromHandle(commandQueue)->destroy();
}
using CommandQueuePowerHintTest = Test<ContextFixture>;
using CommandQueuePowerHintTest = TestLegacy<ContextFixture>;
HWTEST_F(CommandQueuePowerHintTest, givenDriverHandleWithPowerHintAndOsContextPowerHintUnsetThenSuccessIsReturned) {
auto csr = std::unique_ptr<TestCmdQueueCsr<FamilyType>>(new TestCmdQueueCsr<FamilyType>(*device->getNEODevice()->getExecutionEnvironment(),
@ -698,7 +698,7 @@ TEST_F(CommandQueueInitTests, whenDestroyCommandQueueThenStoreCommandBuffersAsRe
EXPECT_FALSE(deviceImp->allocationsForReuse->peekIsEmpty());
}
struct DeviceWithDualStorage : Test<DeviceFixture> {
struct DeviceWithDualStorage : TestLegacy<DeviceFixture> {
void SetUp() override {
NEO::MockCompilerEnableGuard mock(true);
DebugManager.flags.EnableLocalMemory.set(1);
@ -775,7 +775,7 @@ HWTEST2_F(DeviceWithDualStorage, givenCmdListWithAppendedKernelAndUsmTransferAnd
ASSERT_EQ(ZE_RESULT_SUCCESS, res);
commandQueue->destroy();
}
using CommandQueueScratchTests = Test<DeviceFixture>;
using CommandQueueScratchTests = TestLegacy<DeviceFixture>;
using Platforms = IsAtLeastProduct<IGFX_XE_HP_SDV>;

View File

@ -376,7 +376,7 @@ HWTEST2_F(CommandQueueCommandsMultiTile, givenCommandQueueOnMultiTileWhenWalkerP
EXPECT_EQ(nullptr, workPartitionAllocation);
}
using CommandQueueIndirectAllocations = Test<ModuleFixture>;
using CommandQueueIndirectAllocations = TestLegacy<ModuleFixture>;
HWTEST_F(CommandQueueIndirectAllocations, givenCommandQueueWhenExecutingCommandListsThenExpectedIndirectAllocationsAddedToResidencyContainer) {
const ze_command_queue_desc_t desc = {};

View File

@ -28,7 +28,7 @@
namespace L0 {
namespace ult {
struct CommandQueueExecuteCommandLists : public Test<DeviceFixture> {
struct CommandQueueExecuteCommandLists : public TestLegacy<DeviceFixture> {
void SetUp() override {
DeviceFixture::SetUp();
@ -58,7 +58,7 @@ struct CommandQueueExecuteCommandLists : public Test<DeviceFixture> {
ze_command_list_handle_t commandLists[numCommandLists];
};
struct MultiDeviceCommandQueueExecuteCommandLists : public Test<MultiDeviceFixture> {
struct MultiDeviceCommandQueueExecuteCommandLists : public TestLegacy<MultiDeviceFixture> {
void SetUp() override {
DebugManager.flags.EnableWalkerPartition.set(1);
numRootDevices = 1u;
@ -976,7 +976,7 @@ HWTEST_F(CommandQueueExecuteCommandLists, GivenCopyCommandQueueWhenExecutingCopy
commandQueue->destroy();
}
struct CommandQueueExecuteCommandListSWTagsTests : public Test<DeviceFixture> {
struct CommandQueueExecuteCommandListSWTagsTests : public TestLegacy<DeviceFixture> {
void SetUp() override {
DebugManager.flags.EnableSWTags.set(true);
DeviceFixture::SetUp();

View File

@ -18,7 +18,7 @@
namespace L0 {
namespace ult {
using CommandQueueExecuteCommandListsSimpleTest = Test<DeviceFixture>;
using CommandQueueExecuteCommandListsSimpleTest = TestLegacy<DeviceFixture>;
HWTEST2_F(CommandQueueExecuteCommandListsSimpleTest, GivenSynchronousModeWhenExecutingCommandListThenSynchronizeIsCalled, IsAtLeastSkl) {
ze_command_queue_desc_t desc;

View File

@ -25,7 +25,7 @@
namespace L0 {
namespace ult {
using ContextIsShareable = Test<DeviceFixture>;
using ContextIsShareable = TestLegacy<DeviceFixture>;
TEST_F(ContextIsShareable, whenCallingisSharedMemoryThenCorrectResultIsReturned) {
ze_context_handle_t hContext;
ze_context_desc_t desc = {ZE_STRUCTURE_TYPE_CONTEXT_DESC, nullptr, 0};
@ -44,7 +44,7 @@ TEST_F(ContextIsShareable, whenCallingisSharedMemoryThenCorrectResultIsReturned)
EXPECT_EQ(ZE_RESULT_SUCCESS, res);
}
using GetMemHandlePtrTest = Test<GetMemHandlePtrTestFixture>;
using GetMemHandlePtrTest = TestLegacy<GetMemHandlePtrTestFixture>;
TEST_F(GetMemHandlePtrTest, whenCallingGetMemHandlePtrWithValidHandleThenSuccessIsReturned) {
MemoryManagerMemHandleMock *fixtureMemoryManager = static_cast<MemoryManagerMemHandleMock *>(currMemoryManager);

View File

@ -26,7 +26,7 @@
namespace L0 {
namespace ult {
using ContextIsShareable = Test<DeviceFixture>;
using ContextIsShareable = TestLegacy<DeviceFixture>;
TEST_F(ContextIsShareable, whenCallingisSharedMemoryThenCorrectResultIsReturned) {
ze_context_handle_t hContext;
ze_context_desc_t desc = {ZE_STRUCTURE_TYPE_CONTEXT_DESC, nullptr, 0};
@ -57,7 +57,7 @@ TEST_F(ContextIsShareable, whenCallingisSharedMemoryThenCorrectResultIsReturned)
EXPECT_EQ(ZE_RESULT_SUCCESS, res);
}
using GetMemHandlePtrTest = Test<GetMemHandlePtrTestFixture>;
using GetMemHandlePtrTest = TestLegacy<GetMemHandlePtrTestFixture>;
TEST_F(GetMemHandlePtrTest, whenCallingGetMemHandlePtrWithValidNTHandleThenSuccessIsReturned) {
MemoryManagerMemHandleMock *fixtureMemoryManager = static_cast<MemoryManagerMemHandleMock *>(currMemoryManager);

View File

@ -25,7 +25,7 @@
namespace L0 {
namespace ult {
using ContextIsShareable = Test<DeviceFixture>;
using ContextIsShareable = TestLegacy<DeviceFixture>;
TEST_F(ContextIsShareable, whenCallingisSharedMemoryThenCorrectResultIsReturned) {
ze_context_handle_t hContext;
ze_context_desc_t desc = {ZE_STRUCTURE_TYPE_CONTEXT_DESC, nullptr, 0};
@ -44,7 +44,7 @@ TEST_F(ContextIsShareable, whenCallingisSharedMemoryThenCorrectResultIsReturned)
EXPECT_EQ(ZE_RESULT_SUCCESS, res);
}
using GetMemHandlePtrTest = Test<GetMemHandlePtrTestFixture>;
using GetMemHandlePtrTest = TestLegacy<GetMemHandlePtrTestFixture>;
TEST_F(GetMemHandlePtrTest, whenCallingGetMemHandlePtrWithValidHandleThenSuccessIsReturned) {
MemoryManagerMemHandleMock *fixtureMemoryManager = static_cast<MemoryManagerMemHandleMock *>(currMemoryManager);

View File

@ -27,7 +27,7 @@
namespace L0 {
namespace ult {
using MultiDeviceContextTests = Test<MultiDeviceFixture>;
using MultiDeviceContextTests = TestLegacy<MultiDeviceFixture>;
TEST_F(MultiDeviceContextTests,
whenCreatingContextWithZeroNumDevicesThenAllDevicesAreAssociatedWithTheContext) {
@ -224,7 +224,7 @@ TEST_F(ContextHostAllocTests,
context->destroy();
}
using ContextGetStatusTest = Test<DeviceFixture>;
using ContextGetStatusTest = TestLegacy<DeviceFixture>;
TEST_F(ContextGetStatusTest, givenCallToContextGetStatusThenCorrectErrorCodeIsReturnedWhenResourcesHaveBeenReleased) {
ze_context_handle_t hContext;
ze_context_desc_t desc = {ZE_STRUCTURE_TYPE_CONTEXT_DESC, nullptr, 0};
@ -246,7 +246,7 @@ TEST_F(ContextGetStatusTest, givenCallToContextGetStatusThenCorrectErrorCodeIsRe
context->destroy();
}
using ContextPowerSavingHintTest = Test<DeviceFixture>;
using ContextPowerSavingHintTest = TestLegacy<DeviceFixture>;
TEST_F(ContextPowerSavingHintTest, givenCallToContextCreateWithPowerHintDescThenPowerHintSetInDriverHandle) {
ze_context_handle_t hContext;
ze_context_desc_t ctxtDesc = {ZE_STRUCTURE_TYPE_CONTEXT_DESC};
@ -313,7 +313,7 @@ TEST_F(ContextPowerSavingHintTest, givenCallToContextCreateWithoutPowerHintDescT
context->destroy();
}
using ContextTest = Test<DeviceFixture>;
using ContextTest = TestLegacy<DeviceFixture>;
TEST_F(ContextTest, whenCreatingAndDestroyingContextThenSuccessIsReturned) {
ze_context_handle_t hContext;
@ -326,7 +326,7 @@ TEST_F(ContextTest, whenCreatingAndDestroyingContextThenSuccessIsReturned) {
EXPECT_EQ(ZE_RESULT_SUCCESS, res);
}
using ContextMakeMemoryResidentTests = Test<HostPointerManagerFixure>;
using ContextMakeMemoryResidentTests = TestLegacy<HostPointerManagerFixure>;
TEST_F(ContextMakeMemoryResidentTests,
givenUknownPointerPassedToMakeMemoryResidentThenInvalidArgumentIsReturned) {

View File

@ -99,8 +99,8 @@ struct L0DebuggerLinuxMultitileFixture : public L0DebuggerLinuxFixture {
L0::Device *subDevice1 = nullptr;
};
using L0DebuggerLinuxTest = Test<L0DebuggerLinuxFixture>;
using L0DebuggerLinuxMultitileTest = Test<L0DebuggerLinuxMultitileFixture>;
using L0DebuggerLinuxTest = TestLegacy<L0DebuggerLinuxFixture>;
using L0DebuggerLinuxMultitileTest = TestLegacy<L0DebuggerLinuxMultitileFixture>;
TEST_F(L0DebuggerLinuxTest, givenProgramDebuggingEnabledWhenDriverHandleIsCreatedThenItAllocatesL0Debugger) {
EXPECT_NE(nullptr, neoDevice->getDebugger());

View File

@ -21,7 +21,7 @@
namespace L0 {
namespace ult {
using L0DebuggerTest = Test<L0DebuggerHwFixture>;
using L0DebuggerTest = TestLegacy<L0DebuggerHwFixture>;
using L0DebuggerParameterizedTests = L0DebuggerHwParameterizedFixture;
TEST_F(L0DebuggerTest, givenL0DebuggerWhenCallingIsLegacyThenFalseIsReturned) {
@ -75,7 +75,7 @@ TEST_F(L0DebuggerTest, givenProgramDebuggingEnabledWhenDebuggerIsCreatedThenComp
EXPECT_FALSE(neoDevice->getHardwareInfo().capabilityTable.ftrRenderCompressedImages);
}
using L0DebuggerPerContextAddressSpaceTest = Test<L0DebuggerPerContextAddressSpaceFixture>;
using L0DebuggerPerContextAddressSpaceTest = TestLegacy<L0DebuggerPerContextAddressSpaceFixture>;
HWTEST_F(L0DebuggerPerContextAddressSpaceTest, givenDebuggingEnabledWhenCommandListIsExecutedThenValidKernelDebugCommandsAreAdded) {
using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM;
using STATE_SIP = typename FamilyType::STATE_SIP;
@ -219,7 +219,7 @@ HWTEST_P(L0DebuggerParameterizedTests, givenEnabledDebuggingWhenIsaTypeAllocated
}
}
using L0DebuggerSimpleTest = Test<DeviceFixture>;
using L0DebuggerSimpleTest = TestLegacy<DeviceFixture>;
HWTEST_F(L0DebuggerSimpleTest, givenUseCsrImmediateSubmissionEnabledWithImmediateCommandListToInvokeNonKernelOperationsThenSuccessIsReturned) {
DebugManagerStateRestore restorer;

View File

@ -19,22 +19,22 @@
namespace L0 {
namespace ult {
struct PerContextAddressSpaceFixture : public Test<DeviceFixture> {
struct PerContextAddressSpaceFixture : public TestLegacy<DeviceFixture> {
void SetUp() override {
NEO::DebugManager.flags.DebuggerForceSbaTrackingMode.set(0);
Test<DeviceFixture>::SetUp();
TestLegacy<DeviceFixture>::SetUp();
}
void TearDown() override {
Test<DeviceFixture>::TearDown();
TestLegacy<DeviceFixture>::TearDown();
}
DebugManagerStateRestore restorer;
};
using L0DebuggerPerContextAddressSpaceTest = Test<L0DebuggerPerContextAddressSpaceFixture>;
using L0DebuggerPerContextAddressSpaceTest = TestLegacy<L0DebuggerPerContextAddressSpaceFixture>;
using L0DebuggerTest = Test<L0DebuggerHwFixture>;
using L0DebuggerTest = TestLegacy<L0DebuggerHwFixture>;
using L0DebuggerParameterizedTests = L0DebuggerHwParameterizedFixture;
@ -208,7 +208,7 @@ HWTEST2_F(L0DebuggerTest, givenDebuggingEnabledAndDebuggerLogsWhenCommandQueueIs
commandQueue->destroy();
}
using L0DebuggerSimpleTest = Test<DeviceFixture>;
using L0DebuggerSimpleTest = TestLegacy<DeviceFixture>;
HWTEST2_F(L0DebuggerSimpleTest, givenNullL0DebuggerAndDebuggerLogsWhenCommandQueueIsSynchronizedThenSbaAddressesAreNotPrinted, Gen12Plus) {
DebugManagerStateRestore restorer;
@ -332,14 +332,14 @@ HWTEST2_F(L0DebuggerTest, givenDebuggingEnabledWhenCommandListIsExecutedThenSbaB
INSTANTIATE_TEST_CASE_P(SBAModesForDebugger, L0DebuggerParameterizedTests, ::testing::Values(0, 1));
struct L0DebuggerSingleAddressSpace : public Test<L0DebuggerHwFixture> {
struct L0DebuggerSingleAddressSpace : public TestLegacy<L0DebuggerHwFixture> {
void SetUp() override {
NEO::DebugManager.flags.DebuggerForceSbaTrackingMode.set(1);
Test<L0DebuggerHwFixture>::SetUp();
TestLegacy<L0DebuggerHwFixture>::SetUp();
}
void TearDown() override {
Test<L0DebuggerHwFixture>::TearDown();
TestLegacy<L0DebuggerHwFixture>::TearDown();
}
DebugManagerStateRestore restorer;

View File

@ -25,7 +25,7 @@
namespace L0 {
namespace ult {
using DeviceWithDebuggerEnabledTest = Test<ActiveDebuggerFixture>;
using DeviceWithDebuggerEnabledTest = TestLegacy<ActiveDebuggerFixture>;
TEST_F(DeviceWithDebuggerEnabledTest, givenDebuggingEnabledWhenModuleIsCreatedThenDebugOptionsAreUsed) {
NEO::MockCompilerEnableGuard mock(true);
auto cip = new NEO::MockCompilerInterfaceCaptureBuildOptions();
@ -160,7 +160,7 @@ TEST_F(DeviceWithDebuggerEnabledTest, GivenNonDebuggeableKernelWhenModuleIsIniti
EXPECT_FALSE(module->isDebugEnabled());
}
using ModuleWithSLDTest = Test<ModuleFixture>;
using ModuleWithSLDTest = TestLegacy<ModuleFixture>;
TEST_F(ModuleWithSLDTest, GivenNoDebugDataWhenInitializingModuleThenRelocatedDebugDataIsNotCreated) {
NEO::MockCompilerEnableGuard mock(true);
@ -298,7 +298,7 @@ TEST_F(ModuleWithSLDTest, GivenDebugDataWithMultipleRelocationsWhenInitializingM
EXPECT_NE(nullptr, kernelInfo->kernelDescriptor.external.relocatedDebugData);
}
using ModuleWithZebinAndSLDTest = Test<ModuleWithZebinFixture>;
using ModuleWithZebinAndSLDTest = TestLegacy<ModuleWithZebinFixture>;
TEST_F(ModuleWithZebinAndSLDTest, GivenZebinThenCreateDebugZebinAndPassToSLD) {
module->addEmptyZebin();
module->addSegments();
@ -310,7 +310,7 @@ TEST_F(ModuleWithZebinAndSLDTest, GivenZebinThenCreateDebugZebinAndPassToSLD) {
EXPECT_TRUE(module->translationUnit->debugData);
}
using KernelDebugSurfaceTest = Test<ModuleFixture>;
using KernelDebugSurfaceTest = TestLegacy<ModuleFixture>;
HWTEST_F(KernelDebugSurfaceTest, givenDebuggerAndBindfulKernelWhenAppendingKernelToCommandListThenBindfulSurfaceStateForDebugSurfaceIsProgrammed) {
NEO::MockCompilerEnableGuard mock(true);
@ -376,7 +376,7 @@ HWTEST_F(KernelDebugSurfaceTest, givenDebuggerAndBindfulKernelWhenAppendingKerne
EXPECT_EQ(RENDER_SURFACE_STATE::SURFACE_TYPE_SURFTYPE_BUFFER, debugSurfaceState->getSurfaceType());
}
using ModuleWithDebuggerL0Test = Test<L0DebuggerHwFixture>;
using ModuleWithDebuggerL0Test = TestLegacy<L0DebuggerHwFixture>;
TEST_F(ModuleWithDebuggerL0Test, givenDebuggingEnabledWhenModuleIsCreatedThenDebugOptionsAreNotUsed) {
NEO::MockCompilerEnableGuard mock(true);
auto cip = new NEO::MockCompilerInterfaceCaptureBuildOptions();
@ -401,7 +401,7 @@ TEST_F(ModuleWithDebuggerL0Test, givenDebuggingEnabledWhenModuleIsCreatedThenDeb
EXPECT_FALSE(CompilerOptions::contains(cip->buildOptions, L0::BuildOptions::optDisable));
}
using KernelInitializeTest = Test<L0DebuggerHwFixture>;
using KernelInitializeTest = TestLegacy<L0DebuggerHwFixture>;
TEST_F(KernelInitializeTest, givenDebuggingEnabledWhenKernelsAreInitializedThenAllocationsAreNotResidentAndNotCopied) {
uint32_t kernelHeap = 0xDEAD;
@ -549,7 +549,7 @@ HWTEST_F(ModuleWithDebuggerL0Test, GivenNoDebugDataWhenInitializingModuleThenDoN
EXPECT_EQ(0u, getMockDebuggerL0Hw<FamilyType>()->notifyModuleCreateCount);
}
using ModuleWithZebinAndL0DebuggerTest = Test<L0DebuggerHwFixture>;
using ModuleWithZebinAndL0DebuggerTest = TestLegacy<L0DebuggerHwFixture>;
HWTEST_F(ModuleWithZebinAndL0DebuggerTest, GivenZebinDebugDataWhenInitializingModuleThenRegisterElfAndNotifyModuleCreate) {
NEO::MockCompilerEnableGuard mock(true);
@ -780,7 +780,7 @@ HWTEST_F(ModuleWithZebinAndL0DebuggerTest, GivenModuleDebugHandleZeroWhenInitial
EXPECT_EQ(std::numeric_limits<uint32_t>::max(), getMockDebuggerL0Hw<FamilyType>()->removedZebinModuleHandle);
}
using NotifyModuleLoadTest = Test<ModuleFixture>;
using NotifyModuleLoadTest = TestLegacy<ModuleFixture>;
HWTEST_F(NotifyModuleLoadTest, givenDebuggingEnabledWhenModuleIsCreatedAndFullyLinkedThenIsaAllocationsAreCopiedAndResidentOnlyForUserModules) {
NEO::MockCompilerEnableGuard mock(true);

View File

@ -25,7 +25,7 @@
namespace L0 {
namespace ult {
using CommandQueueDebugCommandsTest = Test<ActiveDebuggerFixture>;
using CommandQueueDebugCommandsTest = TestLegacy<ActiveDebuggerFixture>;
HWTEST2_F(CommandQueueDebugCommandsTest, givenDebuggingEnabledWhenCommandListIsExecutedThenKernelDebugCommandsAreAdded, IsAtMostGen12lp) {
NEO::MockCompilerEnableGuard mock(true);
@ -158,7 +158,7 @@ HWTEST2_F(CommandQueueDebugCommandsTest, givenDebuggingEnabledWhenCommandListIsE
commandQueue->destroy();
}
using SLDebuggerInternalUsageTest = Test<ActiveDebuggerFixture>;
using SLDebuggerInternalUsageTest = TestLegacy<ActiveDebuggerFixture>;
HWTEST2_F(SLDebuggerInternalUsageTest, givenDebuggingEnabledWhenInternalCmdQIsUsedThenDebuggerPathsAreNotExecuted, IsAtLeastSkl) {
using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM;
@ -232,7 +232,7 @@ HWTEST2_F(SLDebuggerInternalUsageTest, givenDebuggingEnabledWhenInternalCmdQIsUs
commandList->destroy();
}
using DeviceWithDebuggerEnabledTest = Test<ActiveDebuggerFixture>;
using DeviceWithDebuggerEnabledTest = TestLegacy<ActiveDebuggerFixture>;
TEST_F(DeviceWithDebuggerEnabledTest, givenDebuggingEnabledWhenDeviceIsCreatedThenItHasDebugSurfaceCreatedWithCorrectAllocationType) {
ASSERT_NE(nullptr, deviceL0->getDebugSurface());

View File

@ -74,7 +74,7 @@ struct L0DebuggerWindowsFixture {
MockGdi *gdi = nullptr;
};
using L0DebuggerWindowsTest = Test<L0DebuggerWindowsFixture>;
using L0DebuggerWindowsTest = TestLegacy<L0DebuggerWindowsFixture>;
TEST_F(L0DebuggerWindowsTest, givenProgramDebuggingEnabledWhenDriverHandleIsCreatedThenItAllocatesL0Debugger) {
EXPECT_NE(nullptr, neoDevice->getDebugger());

View File

@ -2026,7 +2026,7 @@ HWTEST_F(MultipleDevicesDisabledImplicitScalingTest, givenTwoRootDevicesFromSame
EXPECT_EQ(ZE_RESULT_ERROR_DEVICE_LOST, res);
}
using DeviceTests = Test<DeviceFixture>;
using DeviceTests = TestLegacy<DeviceFixture>;
TEST_F(DeviceTests, WhenGettingMemoryAccessPropertiesThenSuccessIsReturned) {
ze_device_memory_access_properties_t properties;
@ -2663,7 +2663,7 @@ TEST_F(MultipleDevicesTest, givenTopologyMapForSubdeviceZeroWhenGettingPhysicalS
EXPECT_FALSE(ret);
}
using MultipleDevicesWithCustomHwInfoTest = Test<MultipleDevicesWithCustomHwInfo>;
using MultipleDevicesWithCustomHwInfoTest = TestLegacy<MultipleDevicesWithCustomHwInfo>;
TEST_F(MultipleDevicesWithCustomHwInfoTest, givenTopologyWhenMappingToAndFromApiAndPhysicalSliceIdThenIdsAreMatching) {
L0::Device *device0 = driverHandle->devices[0];
@ -3247,7 +3247,7 @@ struct MultiSubDeviceFixture : public DeviceFixture {
std::unique_ptr<VariableBackup<bool>> apiSupportBackup;
};
using MultiSubDeviceTest = Test<MultiSubDeviceFixture<true, true, -1, -1>>;
using MultiSubDeviceTest = TestLegacy<MultiSubDeviceFixture<true, true, -1, -1>>;
TEST_F(MultiSubDeviceTest, GivenApiSupportAndLocalMemoryEnabledWhenDeviceContainsSubDevicesThenItIsImplicitScalingCapable) {
if (NEO::HwHelper::get(neoDevice->getHardwareInfo().platform.eRenderCoreFamily).platformSupportsImplicitScaling(neoDevice->getHardwareInfo())) {
EXPECT_TRUE(device->isImplicitScalingCapable());
@ -3258,25 +3258,25 @@ TEST_F(MultiSubDeviceTest, GivenApiSupportAndLocalMemoryEnabledWhenDeviceContain
}
}
using MultiSubDeviceTestNoApi = Test<MultiSubDeviceFixture<true, false, -1, -1>>;
using MultiSubDeviceTestNoApi = TestLegacy<MultiSubDeviceFixture<true, false, -1, -1>>;
TEST_F(MultiSubDeviceTestNoApi, GivenNoApiSupportAndLocalMemoryEnabledWhenDeviceContainsSubDevicesThenItIsNotImplicitScalingCapable) {
EXPECT_FALSE(device->isImplicitScalingCapable());
EXPECT_EQ(subDevice, deviceImp->getActiveDevice());
}
using MultiSubDeviceTestNoLocalMemory = Test<MultiSubDeviceFixture<false, true, -1, -1>>;
using MultiSubDeviceTestNoLocalMemory = TestLegacy<MultiSubDeviceFixture<false, true, -1, -1>>;
TEST_F(MultiSubDeviceTestNoLocalMemory, GivenApiSupportAndLocalMemoryDisabledWhenDeviceContainsSubDevicesThenItIsNotImplicitScalingCapable) {
EXPECT_FALSE(device->isImplicitScalingCapable());
EXPECT_EQ(subDevice, deviceImp->getActiveDevice());
}
using MultiSubDeviceTestNoApiForceOn = Test<MultiSubDeviceFixture<true, false, 1, -1>>;
using MultiSubDeviceTestNoApiForceOn = TestLegacy<MultiSubDeviceFixture<true, false, 1, -1>>;
TEST_F(MultiSubDeviceTestNoApiForceOn, GivenNoApiSupportAndLocalMemoryEnabledWhenForcedImplicitScalingThenItIsImplicitScalingCapable) {
EXPECT_TRUE(device->isImplicitScalingCapable());
EXPECT_EQ(neoDevice, deviceImp->getActiveDevice());
}
using MultiSubDeviceEnabledImplicitScalingTest = Test<MultiSubDeviceFixture<true, true, -1, 1>>;
using MultiSubDeviceEnabledImplicitScalingTest = TestLegacy<MultiSubDeviceFixture<true, true, -1, 1>>;
TEST_F(MultiSubDeviceEnabledImplicitScalingTest, GivenApiSupportAndLocalMemoryEnabledWhenDeviceContainsSubDevicesAndSupportsImplicitScalingThenItIsImplicitScalingCapable) {
EXPECT_TRUE(device->isImplicitScalingCapable());
EXPECT_EQ(neoDevice, deviceImp->getActiveDevice());
@ -3291,7 +3291,7 @@ TEST_F(MultiSubDeviceEnabledImplicitScalingTest, GivenEnabledImplicitScalingWhen
EXPECT_EQ(defaultEngine.commandStreamReceiver, csr);
}
using DeviceSimpleTests = Test<DeviceFixture>;
using DeviceSimpleTests = TestLegacy<DeviceFixture>;
static_assert(ZE_MEMORY_ACCESS_CAP_FLAG_RW == UNIFIED_SHARED_MEMORY_ACCESS, "Flags value difference");
static_assert(ZE_MEMORY_ACCESS_CAP_FLAG_ATOMIC == UNIFIED_SHARED_MEMORY_ATOMIC_ACCESS, "Flags value difference");

View File

@ -15,7 +15,7 @@
namespace L0 {
namespace ult {
using HostPointerManagerTest = Test<HostPointerManagerFixure>;
using HostPointerManagerTest = TestLegacy<HostPointerManagerFixure>;
TEST_F(HostPointerManagerTest,
givenMultipleGraphicsAllocationWhenCopyingHostPointerDataThenCopyOnlyExistingAllocations) {
@ -437,7 +437,7 @@ TEST_F(HostPointerManagerTest, givenMisalignedPointerRegisteredWhenGettingRelati
EXPECT_EQ(ZE_RESULT_SUCCESS, result);
}
using ForceDisabledHostPointerManagerTest = Test<ForceDisabledHostPointerManagerFixure>;
using ForceDisabledHostPointerManagerTest = TestLegacy<ForceDisabledHostPointerManagerFixure>;
TEST_F(ForceDisabledHostPointerManagerTest, givenHostPointerManagerForceDisabledThenReturnFeatureUnsupported) {
EXPECT_EQ(nullptr, hostDriverHandle->hostPointerManager.get());
@ -458,7 +458,7 @@ TEST_F(ForceDisabledHostPointerManagerTest, givenHostPointerManagerForceDisabled
EXPECT_EQ(ZE_RESULT_ERROR_UNSUPPORTED_FEATURE, result);
}
using ForceEnabledHostPointerManagerTest = Test<ForceEnabledHostPointerManagerFixure>;
using ForceEnabledHostPointerManagerTest = TestLegacy<ForceEnabledHostPointerManagerFixure>;
TEST_F(ForceEnabledHostPointerManagerTest, givenHostPointerManagerForceEnabledThenReturnSuccess) {
EXPECT_NE(nullptr, hostDriverHandle->hostPointerManager.get());

View File

@ -54,7 +54,7 @@ TEST(zeInit, whenCallingZeInitWithoutGpuOnlyFlagThenInitializeOnDriverIsNotCalle
EXPECT_EQ(0u, driver.initCalledCount);
}
using DriverHandleImpTest = Test<DeviceFixture>;
using DriverHandleImpTest = TestLegacy<DeviceFixture>;
TEST_F(DriverHandleImpTest, givenDriverImpWhenCallingupdateRootDeviceBitFieldsThendeviceBitfieldsAreUpdatedInAccordanceWithNeoDevice) {
auto hwInfo = *NEO::defaultHwInfo;
auto newNeoDevice = std::unique_ptr<NEO::Device>(NEO::MockDevice::createWithNewExecutionEnvironment<NEO::MockDevice>(&hwInfo, 0));
@ -64,7 +64,7 @@ TEST_F(DriverHandleImpTest, givenDriverImpWhenCallingupdateRootDeviceBitFieldsTh
EXPECT_EQ(newNeoDevice->getDeviceBitfield(), entry->second);
}
using DriverVersionTest = Test<DeviceFixture>;
using DriverVersionTest = TestLegacy<DeviceFixture>;
TEST_F(DriverVersionTest, givenCallToGetExtensionPropertiesThenSupportedExtensionsAreReturned) {
uint32_t count = 0;
@ -150,7 +150,7 @@ TEST_F(DriverVersionTest, whenCallingGetDriverPropertiesRepeatedlyThenTheSameUui
}
}
using ImportNTHandle = Test<DeviceFixture>;
using ImportNTHandle = TestLegacy<DeviceFixture>;
class MemoryManagerNTHandleMock : public NEO::OsAgnosticMemoryManager {
public:
@ -653,7 +653,7 @@ struct HostImportApiFixture : public HostPointerManagerFixure {
ze_driver_handle_t driverHandle;
};
using DriverExperimentalApiTest = Test<HostImportApiFixture>;
using DriverExperimentalApiTest = TestLegacy<HostImportApiFixture>;
TEST_F(DriverExperimentalApiTest, whenRetrievingApiFunctionThenExpectProperPointer) {
decltype(&zexDriverImportExternalPointer) expectedImport = L0::zexDriverImportExternalPointer;

View File

@ -41,8 +41,8 @@ extern std::function<void()> setupPauseAddress;
namespace L0 {
namespace ult {
using EventPoolCreate = Test<DeviceFixture>;
using EventCreate = Test<DeviceFixture>;
using EventPoolCreate = TestLegacy<DeviceFixture>;
using EventCreate = TestLegacy<DeviceFixture>;
class MemoryManagerEventPoolFailMock : public NEO::MemoryManager {
public:
@ -294,7 +294,7 @@ class MemoryManagerEventPoolIPCMock : public NEO::MockMemoryManager {
NEO::MockGraphicsAllocation *alloc;
};
using EventPoolIPCHandleTests = Test<DeviceFixture>;
using EventPoolIPCHandleTests = TestLegacy<DeviceFixture>;
TEST_F(EventPoolIPCHandleTests, whenGettingIpcHandleForEventPoolThenHandleAndNumberOfEventsAreReturnedInHandle) {
uint32_t numEvents = 4;
@ -428,7 +428,7 @@ TEST_F(EventPoolIPCHandleTests, GivenEventPoolWithIPCEventFlagAndHostMemoryThenS
EXPECT_FALSE(allocation->getGraphicsAllocation(device->getNEODevice()->getRootDeviceIndex())->isShareableHostMemory);
}
using EventPoolOpenIPCHandleFailTests = Test<DeviceFixture>;
using EventPoolOpenIPCHandleFailTests = TestLegacy<DeviceFixture>;
TEST_F(EventPoolOpenIPCHandleFailTests, givenFailureToAllocateMemoryWhenOpeningIpcHandleForEventPoolThenInvalidArgumentIsReturned) {
uint32_t numEvents = 4;
@ -497,7 +497,7 @@ class MultiDeviceEventPoolOpenIPCHandleFailTestsMemoryManager : public FailMemor
uint32_t calls = 0;
};
using MultiDeviceEventPoolOpenIPCHandleFailTests = Test<MultiDeviceFixture>;
using MultiDeviceEventPoolOpenIPCHandleFailTests = TestLegacy<MultiDeviceFixture>;
TEST_F(MultiDeviceEventPoolOpenIPCHandleFailTests,
givenFailureToAllocateMemoryWhenOpeningIpcHandleForEventPoolWithMultipleDevicesThenOutOfHostMemoryIsReturned) {
@ -788,7 +788,7 @@ HWTEST2_F(EventCreate, givenPlatformNotSupportsMultTileWhenDebugKeyIsSetToUseCon
event->destroy();
}
class EventSynchronizeTest : public Test<DeviceFixture> {
class EventSynchronizeTest : public TestLegacy<DeviceFixture> {
public:
void SetUp() override {
DeviceFixture::SetUp();
@ -1002,7 +1002,7 @@ TEST_F(EventSynchronizeTest, givenInfiniteTimeoutWhenWaitingForTimestampEventCom
EXPECT_EQ(ZE_RESULT_SUCCESS, result);
}
using EventPoolIPCEventResetTests = Test<DeviceFixture>;
using EventPoolIPCEventResetTests = TestLegacy<DeviceFixture>;
TEST_F(EventPoolIPCEventResetTests, whenOpeningIpcHandleForEventPoolCreateWithIpcFlagThenEventsInNewPoolAreNotReset) {
std::unique_ptr<L0::EventPoolImp> eventPool = nullptr;
@ -1068,7 +1068,7 @@ TEST_F(EventPoolIPCEventResetTests, whenOpeningIpcHandleForEventPoolCreateWithIp
EXPECT_EQ(*hostAddr2, Event::STATE_INITIAL);
}
using EventAubCsrTest = Test<DeviceFixture>;
using EventAubCsrTest = TestLegacy<DeviceFixture>;
HWTEST_F(EventAubCsrTest, givenCallToEventHostSynchronizeWithAubModeCsrReturnsSuccess) {
std::unique_ptr<Mock<L0::DriverHandleImp>> driverHandle;
@ -1132,7 +1132,7 @@ struct EventCreateAllocationResidencyTest : public ::testing::Test {
L0::Device *device = nullptr;
};
class TimestampEventCreate : public Test<DeviceFixture> {
class TimestampEventCreate : public TestLegacy<DeviceFixture> {
public:
void SetUp() override {
DeviceFixture::SetUp();
@ -1267,7 +1267,7 @@ TEST_F(TimestampEventCreate, givenEventWithStaticPartitionOffThenQueryTimestampE
EXPECT_EQ(ZE_RESULT_ERROR_UNSUPPORTED_FEATURE, result);
}
class TimestampDeviceEventCreate : public Test<DeviceFixture> {
class TimestampDeviceEventCreate : public TestLegacy<DeviceFixture> {
public:
void SetUp() override {
DeviceFixture::SetUp();
@ -1305,7 +1305,7 @@ TEST_F(TimestampDeviceEventCreate, givenTimestampDeviceEventThenAllocationsIsOfG
EXPECT_EQ(NEO::AllocationType::GPU_TIMESTAMP_DEVICE_BUFFER, allocation->getAllocationType());
}
using EventQueryTimestampExpWithSubDevice = Test<MultiDeviceFixture>;
using EventQueryTimestampExpWithSubDevice = TestLegacy<MultiDeviceFixture>;
TEST_F(EventQueryTimestampExpWithSubDevice, givenEventWhenQuerytimestampExpWithSubDeviceThenReturnsCorrectValueReturned) {
std::unique_ptr<L0::EventPool> eventPool;
@ -1542,7 +1542,7 @@ TEST_F(TimestampEventCreate, givenEventWhenQueryKernelTimestampThenNotReadyRetur
EXPECT_EQ(0u, resultTimestamp.global.kernelEnd);
}
using EventPoolCreateMultiDevice = Test<MultiDeviceFixture>;
using EventPoolCreateMultiDevice = TestLegacy<MultiDeviceFixture>;
TEST_F(EventPoolCreateMultiDevice, givenReturnSubDevicesAsApiDevicesWhenCallZeGetDevicesThenSubDevicesAreReturnedAsSeparateDevices) {
DebugManagerStateRestore restorer;
@ -1683,7 +1683,7 @@ TEST_F(EventPoolCreateMultiDevice, whenCreatingEventPoolWithNoDevicesThenEventPo
EXPECT_EQ(allocation->getGraphicsAllocations().size(), numRootDevices);
}
using EventPoolCreateSingleDevice = Test<DeviceFixture>;
using EventPoolCreateSingleDevice = TestLegacy<DeviceFixture>;
TEST_F(EventPoolCreateSingleDevice, whenCreatingEventPoolWithNoDevicesThenEventPoolCreateSucceedsAndSingleDeviceIsUsed) {
ze_event_pool_desc_t eventPoolDesc = {};
@ -1823,7 +1823,7 @@ class EventFixture : public DeviceFixture {
EventPool *eventPool;
};
using EventTests = Test<EventFixture>;
using EventTests = TestLegacy<EventFixture>;
TEST_F(EventTests, WhenQueryingStatusThenSuccessIsReturned) {
auto event = whiteboxCast(Event::create<uint32_t>(eventPool, &eventDesc, device));
@ -2011,7 +2011,7 @@ struct EventSizeFixture : public DeviceFixture {
std::unique_ptr<L0::Event> eventObj1;
};
using EventSizeTests = Test<EventSizeFixture>;
using EventSizeTests = TestLegacy<EventSizeFixture>;
HWTEST_F(EventSizeTests, whenCreatingEventPoolThenUseCorrectSizeAndAlignment) {
ze_result_t result = ZE_RESULT_SUCCESS;

View File

@ -33,7 +33,7 @@ extern std::function<void()> setupPauseAddress;
namespace L0 {
namespace ult {
using FenceTest = Test<DeviceFixture>;
using FenceTest = TestLegacy<DeviceFixture>;
TEST_F(FenceTest, whenQueryingStatusThenCsrAllocationsAreDownloaded) {
auto csr = std::make_unique<MockCommandStreamReceiver>(*neoDevice->getExecutionEnvironment(), 0, neoDevice->getDeviceBitfield());
*csr->tagAddress = 0;
@ -169,7 +169,7 @@ TEST_F(FenceTest, GivenSuccessfulQueryResultAndNoTimeoutWhenHostSynchronizeIsCal
EXPECT_EQ(ZE_RESULT_SUCCESS, result);
}
using FenceSynchronizeTest = Test<DeviceFixture>;
using FenceSynchronizeTest = TestLegacy<DeviceFixture>;
TEST_F(FenceSynchronizeTest, givenCallToFenceHostSynchronizeWithTimeoutZeroAndStateInitialThenHostSynchronizeReturnsNotReady) {
std::unique_ptr<MockCommandStreamReceiver> csr = nullptr;
@ -275,7 +275,7 @@ TEST_F(FenceSynchronizeTest, givenInfiniteTimeoutWhenWaitingForFenceCompletionTh
EXPECT_EQ(ZE_RESULT_SUCCESS, result);
}
using FenceAubCsrTest = Test<DeviceFixture>;
using FenceAubCsrTest = TestLegacy<DeviceFixture>;
HWTEST_F(FenceAubCsrTest, givenCallToFenceHostSynchronizeWithAubModeCsrReturnsSuccess) {
std::unique_ptr<Mock<L0::DriverHandleImp>> driverHandle;

View File

@ -16,7 +16,7 @@
namespace L0 {
namespace ult {
using AlocationHelperTests = Test<DeviceFixture>;
using AlocationHelperTests = TestLegacy<DeviceFixture>;
using Platforms = IsAtMostProduct<IGFX_TIGERLAKE_LP>;

View File

@ -27,8 +27,8 @@
namespace L0 {
namespace ult {
using ImageCreate = Test<DeviceFixture>;
using ImageView = Test<DeviceFixture>;
using ImageCreate = TestLegacy<DeviceFixture>;
using ImageView = TestLegacy<DeviceFixture>;
HWTEST2_F(ImageCreate, givenValidImageDescriptionWhenImageCreateThenImageIsCreatedCorrectly, IsAtLeastSkl) {
ze_image_desc_t zeDesc = {};
@ -813,7 +813,7 @@ TEST(ImageFormatDescHelperTest, givenSupportedSwizzlesThenProperClEnumIsReturned
EXPECT_EQ(getClChannelOrder(format), static_cast<cl_channel_order>(CL_BGRA));
}
using ImageGetMemoryProperties = Test<DeviceFixture>;
using ImageGetMemoryProperties = TestLegacy<DeviceFixture>;
HWTEST2_F(ImageGetMemoryProperties, givenImageMemoryPropertiesExpStructureWhenGetMemroyPropertiesThenProperDataAreSet, IsAtLeastSkl) {
ze_image_desc_t zeDesc = {};

View File

@ -14,7 +14,7 @@
namespace L0 {
namespace ult {
using KernelImp = Test<DeviceFixture>;
using KernelImp = TestLegacy<DeviceFixture>;
TEST_F(KernelImp, GivenCrossThreadDataThenIsCorrectlyPatchedWithGlobalWorkSizeAndGroupCount) {
uint32_t *crossThreadData =

View File

@ -43,7 +43,7 @@ void populatePointerKernelArg(ArgDescPointer &dst,
namespace L0 {
namespace ult {
using KernelInitTest = Test<ModuleImmutableDataFixture>;
using KernelInitTest = TestLegacy<ModuleImmutableDataFixture>;
TEST_F(KernelInitTest, givenKernelToInitWhenItHasUnknownArgThenUnknowKernelArgHandlerAssigned) {
uint32_t perHwThreadPrivateMemorySizeRequested = 32u;
@ -62,7 +62,7 @@ TEST_F(KernelInitTest, givenKernelToInitWhenItHasUnknownArgThenUnknowKernelArgHa
EXPECT_EQ(mockKernelImmData->getDescriptor().payloadMappings.explicitArgs[0].type, NEO::ArgDescriptor::ArgTUnknown);
}
using KernelBaseAddressTests = Test<ModuleImmutableDataFixture>;
using KernelBaseAddressTests = TestLegacy<ModuleImmutableDataFixture>;
TEST_F(KernelBaseAddressTests, whenQueryingKernelBaseAddressThenCorrectAddressIsReturned) {
uint32_t perHwThreadPrivateMemorySizeRequested = 32u;
@ -102,7 +102,7 @@ struct MockKernelWithCallTracking : Mock<::L0::Kernel> {
size_t setArgBufferWithAllocCalled = 0u;
};
using SetKernelArgCacheTest = Test<ModuleFixture>;
using SetKernelArgCacheTest = TestLegacy<ModuleFixture>;
TEST_F(SetKernelArgCacheTest, givenValidBufferArgumentWhenSetMultipleTimesThenSetArgBufferWithAllocOnlyCalledIfNeeded) {
MockKernelWithCallTracking mockKernel;
@ -172,7 +172,7 @@ TEST_F(SetKernelArgCacheTest, givenValidBufferArgumentWhenSetMultipleTimesThenSe
svmAllocsManager->freeSVMAlloc(svmAllocation);
}
using KernelImpSetGroupSizeTest = Test<DeviceFixture>;
using KernelImpSetGroupSizeTest = TestLegacy<DeviceFixture>;
TEST_F(KernelImpSetGroupSizeTest, WhenCalculatingLocalIdsThenGrfSizeIsTakenFromCapabilityTable) {
Mock<Kernel> mockKernel;
@ -246,7 +246,7 @@ TEST_F(KernelImpSetGroupSizeTest, givenZeroGroupSizeWhenSettingGroupSizeThenInva
EXPECT_EQ(ZE_RESULT_ERROR_INVALID_ARGUMENT, ret);
}
using SetKernelArg = Test<ModuleFixture>;
using SetKernelArg = TestLegacy<ModuleFixture>;
using ImageSupport = IsWithinProducts<IGFX_SKYLAKE, IGFX_TIGERLAKE_LP>;
HWTEST2_F(SetKernelArg, givenImageAndKernelWhenSetArgImageThenCrossThreadDataIsSet, ImageSupport) {
@ -390,7 +390,7 @@ class KernelImmutableDataFixture : public ModuleImmutableDataFixture {
}
};
using KernelImmutableDataTests = Test<KernelImmutableDataFixture>;
using KernelImmutableDataTests = TestLegacy<KernelImmutableDataFixture>;
TEST_F(KernelImmutableDataTests, givenKernelInitializedWithNoPrivateMemoryThenPrivateMemoryIsNull) {
uint32_t perHwThreadPrivateMemorySizeRequested = 0u;
@ -1490,7 +1490,7 @@ TEST_F(KernelPropertiesTests, WhenGetExtensionIsCalledWithUnknownExtensionTypeTh
EXPECT_EQ(nullptr, kernel->getExtension(0U));
}
using KernelLocalIdsTest = Test<ModuleFixture>;
using KernelLocalIdsTest = TestLegacy<ModuleFixture>;
TEST_F(KernelLocalIdsTest, WhenKernelIsCreatedThenDefaultLocalIdGenerationbyRuntimeIsTrue) {
createKernel();
@ -1498,9 +1498,9 @@ TEST_F(KernelLocalIdsTest, WhenKernelIsCreatedThenDefaultLocalIdGenerationbyRunt
EXPECT_TRUE(kernel->requiresGenerationOfLocalIdsByRuntime());
}
struct KernelIsaTests : Test<ModuleFixture> {
struct KernelIsaTests : TestLegacy<ModuleFixture> {
void SetUp() override {
Test<ModuleFixture>::SetUp();
TestLegacy<ModuleFixture>::SetUp();
auto &capabilityTable = device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo()->capabilityTable;
bool createBcsEngine = !capabilityTable.blitterOperationsSupported;
@ -1649,7 +1649,7 @@ TEST_F(KernelIsaTests, givenGlobalBuffersWhenCreatingKernelImmutableDataThenBuff
EXPECT_EQ(1, std::count(resCont.begin(), resCont.end(), &globalConstBuffer));
}
using KernelImpPatchBindlessTest = Test<ModuleFixture>;
using KernelImpPatchBindlessTest = TestLegacy<ModuleFixture>;
TEST_F(KernelImpPatchBindlessTest, GivenKernelImpWhenPatchBindlessOffsetCalledThenOffsetPatchedCorrectly) {
Mock<Kernel> kernel;
@ -1746,7 +1746,7 @@ HWTEST2_F(KernelImpPatchBindlessTest, GivenKernelImpWhenSetSurfaceStateBindfulTh
EXPECT_TRUE(memcmp(&surfaceStateAfter, &surfaceStateBefore, size) == 0);
}
using KernelImpL3CachingTests = Test<ModuleFixture>;
using KernelImpL3CachingTests = TestLegacy<ModuleFixture>;
HWTEST2_F(KernelImpL3CachingTests, GivenKernelImpWhenSetSurfaceStateWithUnalignedMemoryThenL3CachingIsDisabled, MatchAny) {
using RENDER_SURFACE_STATE = typename FamilyType::RENDER_SURFACE_STATE;
@ -1845,7 +1845,7 @@ TEST_F(KernelImpPatchBindlessTest, GivenUndefiedBidfulAndBindlesstOffsetWhenSetA
EXPECT_FALSE(mockKernel.setSurfaceStateCalled);
}
using KernelBindlessUncachedMemoryTests = Test<ModuleFixture>;
using KernelBindlessUncachedMemoryTests = TestLegacy<ModuleFixture>;
TEST_F(KernelBindlessUncachedMemoryTests, givenBindlessKernelAndAllocDataNoTfoundThenKernelRequiresUncachedMocsIsSet) {
ze_kernel_desc_t desc = {};
@ -2173,7 +2173,7 @@ HWTEST2_F(SetKernelArg, givenSupportsMediaBlockAndIsMediaBlockImageWhenSetArgIma
}
}
using ImportHostPointerSetKernelArg = Test<ImportHostPointerModuleFixture>;
using ImportHostPointerSetKernelArg = TestLegacy<ImportHostPointerModuleFixture>;
TEST_F(ImportHostPointerSetKernelArg, givenHostPointerImportedWhenSettingKernelArgThenUseHostPointerAllocation) {
createKernel();
@ -2242,7 +2242,7 @@ TEST_F(KernelGlobalWorkOffsetTests, whenSettingGlobalOffsetThenCrossThreadDataIs
EXPECT_EQ(*(dst.begin() + desc.payloadMappings.dispatchTraits.globalWorkOffset[2]), globalOffsetz);
}
using KernelWorkDimTests = Test<ModuleImmutableDataFixture>;
using KernelWorkDimTests = TestLegacy<ModuleImmutableDataFixture>;
TEST_F(KernelWorkDimTests, givenGroupCountsWhenPatchingWorkDimThenCrossThreadDataIsPatched) {
uint32_t perHwThreadPrivateMemorySizeRequested = 32u;
@ -2279,7 +2279,7 @@ TEST_F(KernelWorkDimTests, givenGroupCountsWhenPatchingWorkDimThenCrossThreadDat
}
}
using KernelPrintHandlerTest = Test<ModuleFixture>;
using KernelPrintHandlerTest = TestLegacy<ModuleFixture>;
struct MyPrintfHandler : public PrintfHandler {
static uint32_t getPrintfSurfaceInitialDataSize() {
return PrintfHandler::printfSurfaceInitialDataSize;
@ -2300,7 +2300,7 @@ TEST_F(KernelPrintHandlerTest, whenPrintPrintfOutputIsCalledThenPrintfBufferIsUs
EXPECT_EQ(buffer, MyPrintfHandler::getPrintfSurfaceInitialDataSize());
}
using PrintfTest = Test<DeviceFixture>;
using PrintfTest = TestLegacy<DeviceFixture>;
TEST_F(PrintfTest, givenKernelWithPrintfThenPrintfBufferIsCreated) {
Mock<Module> mockModule(this->device, nullptr);
@ -2373,7 +2373,7 @@ TEST_F(PrintfTest, WhenCreatingPrintfBufferThenCrossThreadDataIsPatched) {
mockKernel.crossThreadData.release();
}
using KernelPatchtokensPrintfStringMapTests = Test<ModuleImmutableDataFixture>;
using KernelPatchtokensPrintfStringMapTests = TestLegacy<ModuleImmutableDataFixture>;
TEST_F(KernelPatchtokensPrintfStringMapTests, givenKernelWithPrintfStringsMapUsageEnabledWhenPrintOutputThenProperStringIsPrinted) {
std::unique_ptr<MockImmutableData> mockKernelImmData = std::make_unique<MockImmutableData>(0u);
@ -2458,7 +2458,7 @@ TEST_F(KernelPatchtokensPrintfStringMapTests, givenKernelWithPrintfStringsMapUsa
EXPECT_STREQ(expectedString.c_str(), output.c_str());
}
using KernelImplicitArgTests = Test<ModuleImmutableDataFixture>;
using KernelImplicitArgTests = TestLegacy<ModuleImmutableDataFixture>;
TEST_F(KernelImplicitArgTests, givenKernelWithImplicitArgsWhenInitializeThenPrintfSurfaceIsCreatedAndProperlyPatchedInImplicitArgs) {
std::unique_ptr<MockImmutableData> mockKernelImmData = std::make_unique<MockImmutableData>(0u);
@ -2543,7 +2543,7 @@ TEST_F(KernelImplicitArgTests, givenKernelWithImplicitArgsWhenSettingKernelParam
EXPECT_EQ(0, memcmp(pImplicitArgs, &expectedImplicitArgs, sizeof(ImplicitArgs)));
}
using MultiTileModuleTest = Test<MultiTileModuleFixture>;
using MultiTileModuleTest = TestLegacy<MultiTileModuleFixture>;
HWTEST2_F(MultiTileModuleTest, GivenMultiTileDeviceWhenSettingKernelArgAndSurfaceStateThenMultiTileFlagsAreSetCorrectly, IsXeHpCore) {
using RENDER_SURFACE_STATE = typename FamilyType::RENDER_SURFACE_STATE;

View File

@ -276,7 +276,7 @@ TEST_F(MemoryExportImportImplicitScalingTest,
EXPECT_EQ(ZE_RESULT_SUCCESS, result);
}
using MemoryTest = Test<DeviceFixture>;
using MemoryTest = TestLegacy<DeviceFixture>;
struct CompressionMemoryTest : public MemoryTest {
GraphicsAllocation *allocDeviceMem(size_t size) {
@ -3046,7 +3046,7 @@ TEST_F(MemoryFailedOpenIpcHandleImplicitScalingTest,
EXPECT_EQ(ZE_RESULT_SUCCESS, result);
}
using DeviceMemorySizeTest = Test<DeviceFixture>;
using DeviceMemorySizeTest = TestLegacy<DeviceFixture>;
TEST_F(DeviceMemorySizeTest, givenSizeGreaterThanLimitThenDeviceAllocationFails) {
size_t size = neoDevice->getDeviceInfo().maxMemAllocSize + 1;
@ -3438,7 +3438,7 @@ TEST_F(AllocHostMemoryTest,
EXPECT_EQ(nullptr, ptr);
}
using ContextMemoryTest = Test<ContextFixture>;
using ContextMemoryTest = TestLegacy<ContextFixture>;
TEST_F(ContextMemoryTest, whenAllocatingSharedAllocationFromContextThenAllocationSucceeds) {
size_t size = 10u;

View File

@ -36,7 +36,7 @@
namespace L0 {
namespace ult {
using ModuleTest = Test<ModuleFixture>;
using ModuleTest = TestLegacy<ModuleFixture>;
HWTEST_F(ModuleTest, givenBinaryWithDebugDataWhenModuleCreatedFromNativeBinaryThenDebugDataIsStored) {
size_t size = 0;
@ -372,7 +372,7 @@ HWTEST_F(ModuleTest, givenUnalignedHostBufferWhenSurfaceStateProgrammedThenUnali
Kernel::fromHandle(kernelHandle)->destroy();
}
using ModuleUncachedBufferTest = Test<ModuleFixture>;
using ModuleUncachedBufferTest = TestLegacy<ModuleFixture>;
struct KernelImpUncachedTest : public KernelImp {
using KernelImp::kernelRequiresUncachedMocsCount;
@ -665,7 +665,7 @@ struct ModuleSpecConstantsFixture : public DeviceFixture {
};
template <typename T1, typename T2>
using ModuleSpecConstantsTests = Test<ModuleSpecConstantsFixture<T1, T2>>;
using ModuleSpecConstantsTests = TestLegacy<ModuleSpecConstantsFixture<T1, T2>>;
using ModuleSpecConstantsLongTests = ModuleSpecConstantsTests<uint32_t, uint64_t>;
TEST_F(ModuleSpecConstantsLongTests, givenSpecializationConstantsSetWithLongSizeInDescriptorThenModuleCorrectlyPassesThemToTheCompiler) {
@ -990,7 +990,7 @@ struct ModuleStaticLinkFixture : public DeviceFixture {
bool testSingle = false;
};
using ModuleStaticLinkTests = Test<ModuleStaticLinkFixture>;
using ModuleStaticLinkTests = TestLegacy<ModuleStaticLinkFixture>;
TEST_F(ModuleStaticLinkTests, givenMultipleModulesProvidedForSpirVStaticLinkAndCompilerFailsThenFailureIsReturned) {
runLinkFailureTest();
@ -1012,7 +1012,7 @@ TEST_F(ModuleStaticLinkTests, givenSingleModuleProvidedForSpirVStaticLinkAndBuil
runSprivLinkBuildWithOneModule();
}
using ModuleLinkingTest = Test<DeviceFixture>;
using ModuleLinkingTest = TestLegacy<DeviceFixture>;
HWTEST_F(ModuleLinkingTest, whenExternFunctionsAllocationIsPresentThenItsBeingAddedToResidencyContainer) {
Mock<Module> module(device, nullptr);
@ -1097,7 +1097,7 @@ HWTEST_F(ModuleLinkingTest, givenNotFullyLinkedModuleWhenCreatingKernelThenError
EXPECT_EQ(ZE_RESULT_ERROR_INVALID_MODULE_UNLINKED, retVal);
}
using ModulePropertyTest = Test<ModuleFixture>;
using ModulePropertyTest = TestLegacy<ModuleFixture>;
TEST_F(ModulePropertyTest, whenZeModuleGetPropertiesIsCalledThenGetPropertiesIsCalled) {
Mock<Module> module(device, nullptr);
@ -1144,21 +1144,21 @@ TEST_F(ModulePropertyTest, givenCallToGetPropertiesWithUnresolvedSymbolsThenFlag
EXPECT_EQ(expectedFlags, moduleProperties.flags);
}
struct ModuleFunctionPointerTests : public Test<ModuleFixture> {
struct ModuleFunctionPointerTests : public TestLegacy<ModuleFixture> {
void SetUp() override {
Test<ModuleFixture>::SetUp();
TestLegacy<ModuleFixture>::SetUp();
module0 = std::make_unique<WhiteBox<::L0::Module>>(device, nullptr, ModuleType::User);
}
void TearDown() override {
module0.reset(nullptr);
Test<ModuleFixture>::TearDown();
TestLegacy<ModuleFixture>::TearDown();
}
std::unique_ptr<WhiteBox<::L0::Module>> module0;
};
struct ModuleDynamicLinkTests : public Test<DeviceFixture> {
struct ModuleDynamicLinkTests : public TestLegacy<DeviceFixture> {
void SetUp() override {
Test<DeviceFixture>::SetUp();
TestLegacy<DeviceFixture>::SetUp();
module0 = std::make_unique<WhiteBox<::L0::Module>>(device, nullptr, ModuleType::User);
module1 = std::make_unique<WhiteBox<::L0::Module>>(device, nullptr, ModuleType::User);
module2 = std::make_unique<WhiteBox<::L0::Module>>(device, nullptr, ModuleType::User);
@ -1167,7 +1167,7 @@ struct ModuleDynamicLinkTests : public Test<DeviceFixture> {
module0.reset(nullptr);
module1.reset(nullptr);
module2.reset(nullptr);
Test<DeviceFixture>::TearDown();
TestLegacy<DeviceFixture>::TearDown();
}
std::unique_ptr<WhiteBox<::L0::Module>> module0;
std::unique_ptr<WhiteBox<::L0::Module>> module1;
@ -1657,7 +1657,7 @@ TEST_F(ModuleDynamicLinkTests, givenModuleWithUnresolvedSymbolsNotPresentInAnoth
zeModuleBuildLogDestroy(dynLinkLog);
}
using ModuleDynamicLinkTest = Test<ModuleFixture>;
using ModuleDynamicLinkTest = TestLegacy<ModuleFixture>;
TEST_F(ModuleDynamicLinkTest, givenUnresolvedSymbolsWhenModuleIsCreatedThenIsaAllocationsAreNotCopied) {
NEO::MockCompilerEnableGuard mock(true);
auto cip = new NEO::MockCompilerInterfaceCaptureBuildOptions();
@ -1944,7 +1944,7 @@ HWTEST_F(MultiDeviceModuleSetArgBufferTest,
}
}
using ContextModuleCreateTest = Test<ContextFixture>;
using ContextModuleCreateTest = TestLegacy<ContextFixture>;
HWTEST_F(ContextModuleCreateTest, givenCallToCreateModuleThenModuleIsReturned) {
std::string testFile;
@ -1971,7 +1971,7 @@ HWTEST_F(ContextModuleCreateTest, givenCallToCreateModuleThenModuleIsReturned) {
EXPECT_EQ(ZE_RESULT_SUCCESS, res);
}
using ModuleTranslationUnitTest = Test<DeviceFixture>;
using ModuleTranslationUnitTest = TestLegacy<DeviceFixture>;
struct MockModuleTU : public L0::ModuleTranslationUnit {
MockModuleTU(L0::Device *device) : L0::ModuleTranslationUnit(device) {}
@ -2386,7 +2386,7 @@ TEST(ModuleBuildLog, WhenTooSmallBufferIsPassedToGetStringThenErrorIsReturned) {
EXPECT_EQ(ZE_RESULT_SUCCESS, destroyResult);
}
using PrintfModuleTest = Test<DeviceFixture>;
using PrintfModuleTest = TestLegacy<DeviceFixture>;
HWTEST_F(PrintfModuleTest, GivenModuleWithPrintfWhenKernelIsCreatedThenPrintfAllocationIsPlacedInResidencyContainer) {
std::string testFile;
@ -2618,7 +2618,7 @@ TEST_F(ModuleTest, whenContainsStatefulAccessIsCalledThenResultIsCorrect) {
}
}
using ModuleInitializeTest = Test<DeviceFixture>;
using ModuleInitializeTest = TestLegacy<DeviceFixture>;
TEST_F(ModuleInitializeTest, whenModuleInitializeIsCalledThenCorrectResultIsReturned) {
class MockModuleImp : public ModuleImp {
@ -2691,7 +2691,7 @@ TEST_F(ModuleInitializeTest, whenModuleInitializeIsCalledThenCorrectResultIsRetu
}
}
using ModuleDebugDataTest = Test<DeviceFixture>;
using ModuleDebugDataTest = TestLegacy<DeviceFixture>;
TEST_F(ModuleDebugDataTest, GivenDebugDataWithRelocationsWhenCreatingRelocatedDebugDataThenRelocationsAreApplied) {
auto cip = new NEO::MockCompilerInterfaceCaptureBuildOptions();
neoDevice->getExecutionEnvironment()->rootDeviceEnvironments[device->getRootDeviceIndex()]->compilerInterface.reset(cip);
@ -2843,7 +2843,7 @@ TEST_F(ModuleTest, givenModuleWithGlobalSymbolsMapWhenPopulatingMapWithSymbolFro
EXPECT_STREQ(expectedErrorOutput.c_str(), module0->getTranslationUnit()->buildLog.c_str());
}
using ModuleTests = Test<DeviceFixture>;
using ModuleTests = TestLegacy<DeviceFixture>;
TEST_F(ModuleTests, whenCopyingPatchedSegmentsThenAllocationsAreSetWritableForTbxAndAub) {
auto pModule = std::make_unique<Module>(device, nullptr, ModuleType::User);
@ -3036,7 +3036,7 @@ TEST_F(ModuleTests, givenModuleWithGlobalAndConstAllocationsWhenGettingModuleAll
EXPECT_NE(allocs.end(), iter);
}
using ModuleIsaCopyTest = Test<ModuleImmutableDataFixture>;
using ModuleIsaCopyTest = TestLegacy<ModuleImmutableDataFixture>;
TEST_F(ModuleIsaCopyTest, whenModuleIsInitializedThenIsaIsCopied) {
MockImmutableMemoryManager *mockMemoryManager = static_cast<MockImmutableMemoryManager *>(device->getNEODevice()->getMemoryManager());
@ -3060,7 +3060,7 @@ TEST_F(ModuleIsaCopyTest, whenModuleIsInitializedThenIsaIsCopied) {
}
}
using ModuleWithZebinTest = Test<ModuleWithZebinFixture>;
using ModuleWithZebinTest = TestLegacy<ModuleWithZebinFixture>;
TEST_F(ModuleWithZebinTest, givenNoZebinThenSegmentsAreEmpty) {
auto segments = module->getZebinSegments();

View File

@ -47,7 +47,7 @@ class ModuleOnlineCompiled : public DeviceFixture, public testing::Test {
std::unique_ptr<WhiteBox<L0::Module>> module;
};
using ModuleTests = Test<DeviceFixture>;
using ModuleTests = TestLegacy<DeviceFixture>;
TEST_F(ModuleTests, WhenCreatingBuildOptionsThenOptionsParsedCorrectly) {
auto module = new ModuleImp(device, nullptr, ModuleType::User);

View File

@ -33,16 +33,16 @@ const auto samplerIsNormalized = ::testing::Values(
using SamplerCreateSupport = IsWithinProducts<IGFX_SKYLAKE, IGFX_TIGERLAKE_LP>;
class SamplerCreateTest
: public Test<DeviceFixture>,
: public TestLegacy<DeviceFixture>,
public ::testing::WithParamInterface<std::tuple<ze_sampler_address_mode_t,
ze_sampler_filter_mode_t,
ze_bool_t>> {
public:
void SetUp() override {
Test<DeviceFixture>::SetUp();
TestLegacy<DeviceFixture>::SetUp();
}
void TearDown() override {
Test<DeviceFixture>::TearDown();
TestLegacy<DeviceFixture>::TearDown();
}
};
@ -151,7 +151,7 @@ INSTANTIATE_TEST_CASE_P(SamplerDescCombinations, SamplerCreateTest,
samplerFilterMode,
samplerIsNormalized));
using ContextCreateSamplerTest = Test<ContextFixture>;
using ContextCreateSamplerTest = TestLegacy<ContextFixture>;
HWTEST2_F(ContextCreateSamplerTest, givenDifferentDescriptorValuesThenSamplerIsCorrectlyCreated, SamplerCreateSupport) {
ze_sampler_address_mode_t addressMode = ZE_SAMPLER_ADDRESS_MODE_NONE;

View File

@ -25,10 +25,10 @@
namespace L0 {
namespace ult {
using CommandListCreate = Test<DeviceFixture>;
using CommandListAppendLaunchKernel = Test<ModuleFixture>;
using CommandListCreate = TestLegacy<DeviceFixture>;
using CommandListAppendLaunchKernel = TestLegacy<ModuleFixture>;
using CommandListAppendLaunchKernelWithAtomics = Test<ModuleFixture>;
using CommandListAppendLaunchKernelWithAtomics = TestLegacy<ModuleFixture>;
HWTEST2_F(CommandListAppendLaunchKernelWithAtomics, givenKernelWithNoGlobalAtomicsThenLastSentGlobalAtomicsInContainerStaysFalse, IsXeHpCore) {
Mock<::L0::Kernel> kernel;
@ -144,7 +144,7 @@ HWTEST2_F(CommandListAppendLaunchKernelWithAtomics, givenKernelWithGlobalAtomics
EXPECT_FALSE(pCommandList->commandContainer.lastSentUseGlobalAtomics);
}
using MultTileCommandListAppendLaunchKernelL3Flush = Test<MultiTileCommandListFixture<false, false, false>>;
using MultTileCommandListAppendLaunchKernelL3Flush = TestLegacy<MultiTileCommandListFixture<false, false, false>>;
HWTEST2_F(MultTileCommandListAppendLaunchKernelL3Flush, givenKernelWithRegularEventAndWithWalkerPartitionThenProperCommandsEncoded, IsXeHpCore) {
using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM;
@ -262,7 +262,7 @@ HWTEST2_F(MultTileCommandListAppendLaunchKernelL3Flush, givenKernelWithTimestamp
ASSERT_LE(1u, postSyncCount);
}
using CommandListAppendLaunchKernelL3Flush = Test<ModuleFixture>;
using CommandListAppendLaunchKernelL3Flush = TestLegacy<ModuleFixture>;
HWTEST2_F(CommandListAppendLaunchKernelL3Flush, givenKernelWithEventAndWithoutWalkerPartitionThenProperCommandsEncoded, IsXeHpCore) {
using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM;

View File

@ -24,8 +24,8 @@
namespace L0 {
namespace ult {
using CommandQueueDebugCommandsForSldXeHP = Test<ActiveDebuggerFixture>;
using CommandQueueDebugCommandsDebuggerL0XeHP = Test<L0DebuggerHwFixture>;
using CommandQueueDebugCommandsForSldXeHP = TestLegacy<ActiveDebuggerFixture>;
using CommandQueueDebugCommandsDebuggerL0XeHP = TestLegacy<L0DebuggerHwFixture>;
XEHPTEST_F(CommandQueueDebugCommandsForSldXeHP, givenSteppingA0OrBWhenGlobalSipIsUsedThenMmioIsRestoredAtTheEndOfCmdBuffer) {
using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM;

View File

@ -22,7 +22,7 @@
namespace L0 {
namespace ult {
using CommandQueueExecuteCommandListsXE_HP_CORE = Test<DeviceFixture>;
using CommandQueueExecuteCommandListsXE_HP_CORE = TestLegacy<DeviceFixture>;
XE_HP_CORE_TEST_F(CommandQueueExecuteCommandListsXE_HP_CORE, WhenExecutingCmdListsThenPipelineSelectAndCfeStateAreAddedToCmdBuffer) {
const ze_command_queue_desc_t desc = {};

View File

@ -12,7 +12,7 @@
namespace L0 {
namespace ult {
using DeviceFixtureXeHpCore = Test<DeviceFixture>;
using DeviceFixtureXeHpCore = TestLegacy<DeviceFixture>;
HWTEST2_F(DeviceFixtureXeHpCore, GivenTargetXeHpCoreaWhenGettingMemoryPropertiesThenMemoryNameComesAsHBM, IsXeHpCore) {
ze_device_memory_properties_t memProperties = {};
@ -32,7 +32,7 @@ HWTEST2_F(DeviceFixtureXeHpCore, givenReturnedDevicePropertiesThenExpectedProper
EXPECT_EQ(0u, deviceProps.flags & ZE_DEVICE_PROPERTY_FLAG_INTEGRATED);
}
using CommandQueueGroupTest = Test<DeviceFixture>;
using CommandQueueGroupTest = TestLegacy<DeviceFixture>;
HWTEST2_F(CommandQueueGroupTest, givenNoBlitterSupportAndNoCCSThenOneQueueGroupIsReturned, IsXeHpCore) {
const uint32_t rootDeviceIndex = 0u;
@ -117,7 +117,7 @@ class DeviceCopyQueueGroupFixture : public DeviceFixture {
DebugManagerStateRestore restorer;
};
using DeviceCopyQueueGroupTest = Test<DeviceCopyQueueGroupFixture>;
using DeviceCopyQueueGroupTest = TestLegacy<DeviceCopyQueueGroupFixture>;
HWTEST2_F(DeviceCopyQueueGroupTest,
givenBlitterSupportAndEnableBlitterOperationsSupportSetToZeroThenNoCopyEngineIsReturned, IsXeHpCore) {

View File

@ -13,7 +13,7 @@
namespace L0 {
namespace ult {
using KernelPropertyTest = Test<DeviceFixture>;
using KernelPropertyTest = TestLegacy<DeviceFixture>;
HWTEST2_F(KernelPropertyTest, givenKernelExtendedPropertiesStructureWhenKernelPropertiesCalledThenPropertiesAreCorrectlySet, IsXeHpCore) {
ze_device_module_properties_t kernelProperties = {};

View File

@ -16,7 +16,7 @@
namespace L0 {
namespace ult {
using XeHpcCoreBuiltInTestL0 = Test<NEO::DeviceFixture>;
using XeHpcCoreBuiltInTestL0 = TestLegacy<NEO::DeviceFixture>;
HWTEST_EXCLUDE_PRODUCT(BuiltInSharedTest, GivenBuiltinTypeBinaryWhenGettingBuiltinResourceForNotRegisteredRevisionThenBuiltinFromDefaultRevisionIsTaken, IGFX_XE_HPC_CORE);
HWTEST_EXCLUDE_PRODUCT(BuiltInTestL0, givenDeviceWithUnregisteredBinaryBuiltinWhenGettingBuiltinKernelThenTakeBinaryBuiltinFromDefaultRevision, IGFX_XE_HPC_CORE);

View File

@ -17,7 +17,7 @@
namespace L0 {
namespace ult {
using CommandListStatePrefetchPvcXt = Test<CommandListStatePrefetchXeHpcCore>;
using CommandListStatePrefetchPvcXt = TestLegacy<CommandListStatePrefetchXeHpcCore>;
PVCTEST_F(CommandListStatePrefetchPvcXt, givenCommandBufferIsExhaustedWhenPrefetchApiCalledAndIsPvcXtNotBaseDieA0ThenProgramStatePrefetch) {
auto hwInfo = device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo();
@ -36,7 +36,7 @@ PVCTEST_F(CommandListStatePrefetchPvcXt, givenDebugFlagSetWhenPrefetchApiCalledA
checkIfDebugFlagSetWhenPrefetchApiCalledAThenStatePrefetchProgrammed(hwInfo);
}
using CommandListEventFenceTestsPvc = Test<ModuleFixture>;
using CommandListEventFenceTestsPvc = TestLegacy<ModuleFixture>;
PVCTEST_F(CommandListEventFenceTestsPvc, givenCommandListWithProfilingEventAfterCommandOnPvcRev00ThenMiFenceIsNotAdded) {
using GfxFamily = typename NEO::GfxFamilyMapper<IGFX_XE_HPC_CORE>::GfxFamily;
@ -69,7 +69,7 @@ PVCTEST_F(CommandListEventFenceTestsPvc, givenCommandListWithProfilingEventAfter
EXPECT_EQ(cmdList.end(), itor);
}
using CommandListAppendBarrierXeHpcCore = Test<DeviceFixture>;
using CommandListAppendBarrierXeHpcCore = TestLegacy<DeviceFixture>;
PVCTEST_F(CommandListAppendBarrierXeHpcCore, givenCommandListWhenAppendingBarrierThenPipeControlIsProgrammedAndHdcAndUnTypedFlushesAreSet) {
using GfxFamily = typename NEO::GfxFamilyMapper<IGFX_XE_HPC_CORE>::GfxFamily;

View File

@ -19,7 +19,7 @@
namespace L0 {
namespace ult {
using DeviceTestPvcXt = Test<DeviceFixtureXeHpcTests>;
using DeviceTestPvcXt = TestLegacy<DeviceFixtureXeHpcTests>;
PVCTEST_F(DeviceTestPvcXt, whenCallingGetMemoryPropertiesWithNonNullPtrAndRevisionIsNotBaseDieA0OnPvcXtThenMaxClockRateReturnedIsZero) {
auto &device = driverHandle->devices[0];
@ -31,7 +31,7 @@ PVCTEST_F(DeviceTestPvcXt, whenCallingGetMemoryPropertiesWithNonNullPtrAndRevisi
checkIfCallingGetMemoryPropertiesWithNonNullPtrThenMaxClockRateReturnZero(hwInfo);
}
using DeviceTestPvc = Test<DeviceFixtureXeHpcTests>;
using DeviceTestPvc = TestLegacy<DeviceFixtureXeHpcTests>;
PVCTEST_F(DeviceTestPvc, givenPvcAStepWhenCreatingMultiTileDeviceThenExpectImplicitScalingDisabled) {
auto hwInfo = *NEO::defaultHwInfo;
const auto &hwInfoConfig = *HwInfoConfig::get(hwInfo.platform.eProductFamily);

View File

@ -28,7 +28,7 @@ struct LocalMemoryModuleFixture : public ModuleFixture {
DebugManagerStateRestore restore;
};
using CommandListAppendLaunchKernelXeHpcCore = Test<LocalMemoryModuleFixture>;
using CommandListAppendLaunchKernelXeHpcCore = TestLegacy<LocalMemoryModuleFixture>;
HWTEST2_F(CommandListAppendLaunchKernelXeHpcCore, givenKernelUsingSyncBufferWhenAppendLaunchCooperativeKernelIsCalledThenCorrectValueIsReturned, IsXeHpcCore) {
auto &hwInfo = *device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo();
auto &hwConfig = *NEO::HwInfoConfig::get(hwInfo.platform.eProductFamily);
@ -64,7 +64,7 @@ HWTEST2_F(CommandListAppendLaunchKernelXeHpcCore, givenKernelUsingSyncBufferWhen
}
}
using CommandListStatePrefetchXeHpcCore = Test<ModuleFixture>;
using CommandListStatePrefetchXeHpcCore = TestLegacy<ModuleFixture>;
HWTEST2_F(CommandListStatePrefetchXeHpcCore, givenUnifiedSharedMemoryWhenPrefetchApiIsCalledThenDontRequestMemoryPrefetchByDefault, IsXeHpcCore) {
auto pCommandList = std::make_unique<WhiteBox<::L0::CommandListCoreFamily<gfxCoreFamily>>>();
@ -386,7 +386,7 @@ HWTEST2_F(CommandListStatePrefetchXeHpcCore, givenAppendMemoryPrefetchForKmdMigr
commandQueue->destroy();
}
using CommandListEventFenceTestsXeHpcCore = Test<ModuleFixture>;
using CommandListEventFenceTestsXeHpcCore = TestLegacy<ModuleFixture>;
HWTEST2_F(CommandListEventFenceTestsXeHpcCore, givenCommandListWithProfilingEventAfterCommandWhenRevId03ThenMiFenceIsAdded, IsXeHpcCore) {
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
@ -449,7 +449,7 @@ HWTEST2_F(CommandListEventFenceTestsXeHpcCore, givenCommandListWithRegularEventA
EXPECT_NE(cmdList.end(), itor);
}
using CommandListAppendRangesBarrierXeHpcCore = Test<DeviceFixture>;
using CommandListAppendRangesBarrierXeHpcCore = TestLegacy<DeviceFixture>;
HWTEST2_F(CommandListAppendRangesBarrierXeHpcCore, givenCallToAppendRangesBarrierThenPipeControlProgrammed, IsXeHpcCore) {
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;

View File

@ -45,7 +45,7 @@ struct CommandQueueCreateMultiOrdinalFixture : public DeviceFixture {
L0::Device *device = nullptr;
};
using CommandQueueCommandsXeHpc = Test<DeviceFixture>;
using CommandQueueCommandsXeHpc = TestLegacy<DeviceFixture>;
HWTEST2_F(CommandQueueCommandsXeHpc, givenCommandQueueWhenExecutingCommandListsThenGlobalFenceAllocationIsResident, IsXeHpcCore) {
using STATE_SYSTEM_MEM_FENCE_ADDRESS = typename FamilyType::STATE_SYSTEM_MEM_FENCE_ADDRESS;

View File

@ -20,7 +20,7 @@ namespace ult {
HWTEST_EXCLUDE_PRODUCT(AppendMemoryCopy, givenCopyOnlyCommandListAndHostPointersWhenMemoryCopyCalledThenPipeControlWithDcFlushAddedIsNotAddedAfterBlitCopy, IGFX_XE_HPC_CORE);
using DeviceTestXeHpc = Test<DeviceFixture>;
using DeviceTestXeHpc = TestLegacy<DeviceFixture>;
HWTEST2_F(DeviceTestXeHpc, WhenGettingImagePropertiesThenPropertiesAreNotSet, IsXeHpcCore) {
ze_image_properties_t properties{};
@ -85,7 +85,7 @@ HWTEST2_F(DeviceTestXeHpc, givenXeHpcBStepWhenCreatingMultiTileDeviceThenExpectI
delete device;
}
using MultiDeviceCommandQueueGroupWithNineCopyEnginesTest = Test<SingleRootMultiSubDeviceFixtureWithImplicitScaling<9, 1>>;
using MultiDeviceCommandQueueGroupWithNineCopyEnginesTest = TestLegacy<SingleRootMultiSubDeviceFixtureWithImplicitScaling<9, 1>>;
HWTEST2_F(MultiDeviceCommandQueueGroupWithNineCopyEnginesTest, givenMainAndLinkCopyEngineSupportAndCCSAndImplicitScalingThenExpectedQueueGroupsAreReturned, IsXeHpcCore) {
uint32_t count = 0;
@ -279,7 +279,7 @@ HWTEST2_F(MultiDeviceCommandQueueGroupWithNineCopyEnginesTest, givenMainAndLinkC
}
}
using MultiDeviceCommandQueueGroupWithNoCopyEnginesTest = Test<SingleRootMultiSubDeviceFixtureWithImplicitScaling<0, 1>>;
using MultiDeviceCommandQueueGroupWithNoCopyEnginesTest = TestLegacy<SingleRootMultiSubDeviceFixtureWithImplicitScaling<0, 1>>;
HWTEST2_F(MultiDeviceCommandQueueGroupWithNoCopyEnginesTest,
givenNoCopyEngineSupportAndCCSAndImplicitScalingThenExpectedQueueGroupsAreReturned, IsXeHpcCore) {
uint32_t count = 0;
@ -298,7 +298,7 @@ HWTEST2_F(MultiDeviceCommandQueueGroupWithNoCopyEnginesTest,
}
}
using MultiDeviceCommandQueueGroupWithNoCopyEnginesAndNoImplicitScalingTest = Test<SingleRootMultiSubDeviceFixtureWithImplicitScaling<0, 0>>;
using MultiDeviceCommandQueueGroupWithNoCopyEnginesAndNoImplicitScalingTest = TestLegacy<SingleRootMultiSubDeviceFixtureWithImplicitScaling<0, 0>>;
HWTEST2_F(MultiDeviceCommandQueueGroupWithNoCopyEnginesAndNoImplicitScalingTest,
givenNoCopyEngineSupportAndCCSAndNoImplicitScalingThenOnlyTheQueueGroupsFromSubDeviceAreReturned, IsXeHpcCore) {
uint32_t count = 0;
@ -317,7 +317,7 @@ HWTEST2_F(MultiDeviceCommandQueueGroupWithNoCopyEnginesAndNoImplicitScalingTest,
}
}
using CommandQueueGroupTest = Test<DeviceFixture>;
using CommandQueueGroupTest = TestLegacy<DeviceFixture>;
HWTEST2_F(CommandQueueGroupTest, givenNoBlitterSupportAndNoCCSThenOneQueueGroupIsReturned, IsXeHpcCore) {
const uint32_t rootDeviceIndex = 0u;
@ -374,7 +374,7 @@ class DeviceCopyQueueGroupXeHpcFixture : public DeviceFixture {
}
DebugManagerStateRestore restorer;
};
using DeviceCopyQueueGroupXeHpcTest = Test<DeviceCopyQueueGroupXeHpcFixture>;
using DeviceCopyQueueGroupXeHpcTest = TestLegacy<DeviceCopyQueueGroupXeHpcFixture>;
HWTEST2_F(DeviceCopyQueueGroupXeHpcTest,
givenBlitterSupportAndEnableBlitterOperationsSupportSetToZeroThenNoCopyEngineIsReturned, IsXeHpcCore) {

View File

@ -13,7 +13,7 @@
namespace L0 {
namespace ult {
using KernelPropertyTest = Test<DeviceFixture>;
using KernelPropertyTest = TestLegacy<DeviceFixture>;
HWTEST2_F(KernelPropertyTest, givenKernelExtendedPropertiesStructureWhenKernelPropertiesCalledThenPropertiesAreCorrectlySet, IsXeHpcCore) {
ze_device_module_properties_t kernelProperties = {};

View File

@ -17,7 +17,7 @@
namespace L0 {
namespace ult {
using CommandListTests = Test<DeviceFixture>;
using CommandListTests = TestLegacy<DeviceFixture>;
HWTEST2_F(CommandListTests, givenDG2WithBSteppingWhenCreatingCommandListThenAdditionalStateBaseAddressCmdIsAdded, IsDG2) {
using STATE_BASE_ADDRESS = typename FamilyType::STATE_BASE_ADDRESS;

View File

@ -13,7 +13,7 @@
namespace L0 {
namespace ult {
using CommandQueueTestDG2 = Test<DeviceFixture>;
using CommandQueueTestDG2 = TestLegacy<DeviceFixture>;
HWTEST2_F(CommandQueueTestDG2, givenBindlessEnabledWhenEstimateStateBaseAddressCmdSizeCalledOnDG2ThenReturnedSizeOf2SBAAndPCAnd3DBindingTablePoolPool, IsDG2) {
DebugManagerStateRestore restorer;

View File

@ -15,7 +15,7 @@
namespace L0 {
namespace ult {
using SamplerCreateTest = Test<DeviceFixture>;
using SamplerCreateTest = TestLegacy<DeviceFixture>;
HWTEST2_F(SamplerCreateTest, givenDg2WhenInitializeSamplerAndForceSamplerLowFilteringPrecisionIsFalseThenLowQualityFilterIsDisabled, IsDG2) {
using SAMPLER_STATE = typename NEO::XeHpgCoreFamily::SAMPLER_STATE;

View File

@ -27,7 +27,7 @@
namespace L0 {
namespace ult {
using CommandListCreate = Test<DeviceFixture>;
using CommandListCreate = TestLegacy<DeviceFixture>;
HWTEST2_F(CommandListCreate, WhenCreatingCommandListThenBindingTablePoolAllocAddedToBatchBuffer, IsXeHpgCore) {
using _3DSTATE_BINDING_TABLE_POOL_ALLOC = typename FamilyType::_3DSTATE_BINDING_TABLE_POOL_ALLOC;
@ -381,7 +381,7 @@ HWTEST2_F(CommandListCreate, GivenComputeModePropertiesWhenUpdateStreamPropertie
EXPECT_FALSE(pCommandList->finalStreamState.stateComputeMode.isCoherencyRequired.isDirty);
}
using CommandListAppendLaunchKernelXeHpgCore = Test<ModuleFixture>;
using CommandListAppendLaunchKernelXeHpgCore = TestLegacy<ModuleFixture>;
HWTEST2_F(CommandListAppendLaunchKernelXeHpgCore, givenEventWhenAppendKernelIsCalledThenImmediateDataPostSyncIsAdded, IsXeHpgCore) {
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
using POSTSYNC_DATA = typename FamilyType::POSTSYNC_DATA;

View File

@ -24,7 +24,7 @@
namespace L0 {
namespace ult {
using CommandQueueExecuteCommandListsXeHpgCore = Test<DeviceFixture>;
using CommandQueueExecuteCommandListsXeHpgCore = TestLegacy<DeviceFixture>;
XE_HPG_CORETEST_F(CommandQueueExecuteCommandListsXeHpgCore, WhenExecutingCmdListsThenPipelineSelectAndCfeStateAreAddedToCmdBuffer) {
const ze_command_queue_desc_t desc = {};

View File

@ -12,7 +12,7 @@
namespace L0 {
namespace ult {
using CommandQueueGroupTest = Test<DeviceFixture>;
using CommandQueueGroupTest = TestLegacy<DeviceFixture>;
HWTEST2_F(CommandQueueGroupTest, givenNoBlitterSupportAndNoCCSThenOneQueueGroupIsReturned, IsXeHpgCore) {
const uint32_t rootDeviceIndex = 0u;
@ -97,7 +97,7 @@ class DeviceCopyQueueGroupFixture : public DeviceFixture {
DebugManagerStateRestore restorer;
};
using DeviceCopyQueueGroupTest = Test<DeviceCopyQueueGroupFixture>;
using DeviceCopyQueueGroupTest = TestLegacy<DeviceCopyQueueGroupFixture>;
HWTEST2_F(DeviceCopyQueueGroupTest,
givenBlitterSupportAndEnableBlitterOperationsSupportSetToZeroThenNoCopyEngineIsReturned, IsXeHpgCore) {
@ -123,7 +123,7 @@ HWTEST2_F(DeviceCopyQueueGroupTest,
}
}
using TestDeviceXeHpgCore = Test<DeviceFixture>;
using TestDeviceXeHpgCore = TestLegacy<DeviceFixture>;
HWTEST2_F(TestDeviceXeHpgCore, givenReturnedDevicePropertiesThenExpectedPropertyFlagsSet, IsXeHpgCore) {
ze_device_properties_t deviceProps = {ZE_STRUCTURE_TYPE_DEVICE_PROPERTIES};

View File

@ -19,7 +19,7 @@
namespace L0 {
namespace ult {
using ImageCreate = Test<DeviceFixture>;
using ImageCreate = TestLegacy<DeviceFixture>;
HWTEST2_F(ImageCreate, WhenGettingImagePropertiesThenPropertiesSetCorrectly, IsXeHpgCore) {
ze_image_properties_t properties;

View File

@ -14,7 +14,7 @@
namespace L0 {
namespace ult {
using KernelPropertyTest = Test<DeviceFixture>;
using KernelPropertyTest = TestLegacy<DeviceFixture>;
HWTEST2_F(KernelPropertyTest, givenKernelExtendedPropertiesStructureWhenKernelPropertiesCalledThenPropertiesAreCorrectlySet, IsXeHpgCore) {
ze_device_module_properties_t kernelProperties = {};

View File

@ -1342,7 +1342,7 @@ TEST(DebugSessionTest, GivenBindlessSipVersion2WhenResumingThreadThenCheckIfThre
EXPECT_EQ(1u, sessionMock->checkThreadIsResumedCalled);
}
using MultiTileDebugSessionTest = Test<MultipleDevicesWithCustomHwInfo>;
using MultiTileDebugSessionTest = TestLegacy<MultipleDevicesWithCustomHwInfo>;
TEST_F(MultiTileDebugSessionTest, givenThreadsFromMultipleTilesWhenResumeCalledThenThreadsResumedInAllTiles) {
zet_debug_config_t config = {};
@ -1701,7 +1701,7 @@ struct DebugSessionRegistersAccess {
NEO::MockDevice *neoDevice = nullptr;
};
using DebugSessionRegistersAccessTest = Test<DebugSessionRegistersAccess>;
using DebugSessionRegistersAccessTest = TestLegacy<DebugSessionRegistersAccess>;
TEST_F(DebugSessionRegistersAccessTest, givenTypeToRegsetDescCalledThenCorrectRegdescIsReturned) {
session->stateSaveAreaHeader = MockSipData::createStateSaveAreaHeader(2);

View File

@ -500,7 +500,7 @@ TEST(DebugSession, GivenLogsDisabledWhenPrintBitmaskCalledThenBitmaskIsNotPrinte
EXPECT_EQ(0u, output.size());
}
using DebugSessionMultiTile = Test<MultipleDevicesWithCustomHwInfo>;
using DebugSessionMultiTile = TestLegacy<MultipleDevicesWithCustomHwInfo>;
TEST_F(DebugSessionMultiTile, givenApiThreadAndMultipleTilesWhenConvertingToPhysicalThenCorrectValueReturned) {
L0::Device *device = driverHandle->devices[0];

View File

@ -871,7 +871,7 @@ TEST(DebugSessionTest, GivenNullptrEventWhenReadingEventThenErrorNullptrReturned
EXPECT_EQ(ZE_RESULT_ERROR_INVALID_NULL_POINTER, result);
}
using DebugApiLinuxTest = Test<DebugApiLinuxFixture>;
using DebugApiLinuxTest = TestLegacy<DebugApiLinuxFixture>;
TEST_F(DebugApiLinuxTest, givenDeviceWhenCallingDebugAttachThenSuccessAndValidSessionHandleAreReturned) {
zet_debug_config_t config = {};
@ -3710,7 +3710,7 @@ struct DebugApiLinuxVmBindFixture : public DebugApiLinuxFixture {
std::unique_ptr<MockDebugSessionLinux> session;
};
using DebugApiLinuxVmBindTest = Test<DebugApiLinuxVmBindFixture>;
using DebugApiLinuxVmBindTest = TestLegacy<DebugApiLinuxVmBindFixture>;
TEST_F(DebugApiLinuxVmBindTest, GivenVmBindEventWithKnownUuidClassWhenHandlingEventThenBindInfoIsStoredForVm) {
uint64_t sbaAddress = 0x1234000;
@ -5400,7 +5400,7 @@ TEST_F(DebugApiLinuxTest, givenEnginesEventHandledThenLrcToContextHandleMapIsFil
EXPECT_TRUE(hasSubstr(infoMessage, std::string("ENGINES event: client_handle = 34, ctx_handle = 20, num_engines = 2 DESTROY")));
}
using DebugApiLinuxAttentionTest = Test<DebugApiLinuxFixture>;
using DebugApiLinuxAttentionTest = TestLegacy<DebugApiLinuxFixture>;
TEST_F(DebugApiLinuxAttentionTest, GivenEuAttentionEventForThreadsWhenHandlingEventThenNewlyStoppedThreadsSaved) {
zet_debug_config_t config = {};
@ -5801,7 +5801,7 @@ TEST_F(DebugApiLinuxAttentionTest, GivenInvalidVmHandleWhenHandlingAttentionEven
EXPECT_EQ(0u, sessionMock->pendingInterrupts.size());
EXPECT_FALSE(sessionMock->triggerEvents);
}
using DebugApiLinuxAsyncThreadTest = Test<DebugApiLinuxFixture>;
using DebugApiLinuxAsyncThreadTest = TestLegacy<DebugApiLinuxFixture>;
TEST_F(DebugApiLinuxAsyncThreadTest, GivenPollReturnsErrorAndEinvalWhenReadingInternalEventsAsyncThenDetachEventIsGenerated) {
zet_debug_config_t config = {};
@ -6125,7 +6125,7 @@ struct DebugApiRegistersAccessFixture : public DebugApiLinuxFixture {
EuThread::ThreadId stoppedThreadId{0, stoppedThread};
};
using DebugApiRegistersAccessTest = Test<DebugApiRegistersAccessFixture>;
using DebugApiRegistersAccessTest = TestLegacy<DebugApiRegistersAccessFixture>;
TEST_F(DebugApiRegistersAccessTest, givenInvalidClientHandleWhenReadRegistersCalledThenErrorIsReturned) {
session->clientHandle = MockDebugSessionLinux::invalidClientHandle;
@ -6637,7 +6637,7 @@ TEST_F(DebugApiRegistersAccessTest, givenWriteSbaRegistersCalledThenErrorInvalid
EXPECT_EQ(ZE_RESULT_ERROR_INVALID_ARGUMENT, zetDebugWriteRegisters(session->toHandle(), {0, 0, 0, 0}, ZET_DEBUG_REGSET_TYPE_SBA_INTEL_GPU, 0, 1, nullptr));
}
using DebugApiLinuxMultitileTest = Test<DebugApiLinuxMultiDeviceFixture>;
using DebugApiLinuxMultitileTest = TestLegacy<DebugApiLinuxMultiDeviceFixture>;
TEST_F(DebugApiLinuxMultitileTest, GivenMultitileDeviceWhenCallingResumeThenThreadsFromBothTilesAreResumed) {
zet_debug_config_t config = {};

View File

@ -34,7 +34,7 @@ struct DebugApiFixture : public DeviceFixture {
MockBuiltins *mockBuiltins = nullptr;
};
using DebugApiTest = Test<DebugApiFixture>;
using DebugApiTest = TestLegacy<DebugApiFixture>;
TEST_F(DebugApiTest, givenDeviceWhenGettingDebugPropertiesThenNoFlagIsSet) {
zet_device_debug_properties_t debugProperties = {};

View File

@ -113,7 +113,7 @@ struct DebugApiWindowsFixture : public DeviceFixture {
WddmEuDebugInterfaceMock *mockWddm = nullptr;
};
using DebugApiWindowsTest = Test<DebugApiWindowsFixture>;
using DebugApiWindowsTest = TestLegacy<DebugApiWindowsFixture>;
TEST_F(DebugApiWindowsTest, GivenReadOfGpuVaFailDueToEscapeCallFailureWhenTryingToReadSbaThenErrorIsReported) {
zet_debug_config_t config = {};
@ -849,7 +849,7 @@ TEST(DebugSessionWindowsTest, whenTranslateEscapeErrorStatusCalledThenCorrectZeR
EXPECT_EQ(ZE_RESULT_ERROR_UNKNOWN, DebugSessionWindows::translateEscapeReturnStatusToZeResult(DBGUMD_RETURN_TYPE_MAX));
}
using DebugApiWindowsAsyncThreadTest = Test<DebugApiWindowsFixture>;
using DebugApiWindowsAsyncThreadTest = TestLegacy<DebugApiWindowsFixture>;
TEST_F(DebugApiWindowsAsyncThreadTest, GivenDebugSessionWhenStartingAndClosingAsyncThreadThenThreadIsStartedAndFinishes) {
auto session = std::make_unique<MockDebugSessionWindows>(zet_debug_config_t{0x1234}, device);

View File

@ -22,7 +22,7 @@ using ::testing::Return;
namespace L0 {
namespace ult {
using MetricEnumerationTest = Test<MetricContextFixture>;
using MetricEnumerationTest = TestLegacy<MetricContextFixture>;
TEST_F(MetricEnumerationTest, givenIncorrectMetricsDiscoveryDeviceWhenZetGetMetricGroupIsCalledThenNoMetricGroupsAreReturned) {
EXPECT_CALL(*mockMetricEnumeration, loadMetricsDiscovery())
@ -887,7 +887,7 @@ TEST_F(MetricEnumerationTest, givenValidEventBasedMetricGroupWhenzetContextActiv
EXPECT_EQ(zetContextActivateMetricGroups(context->toHandle(), device->toHandle(), 1, &metricGroupHandle), ZE_RESULT_SUCCESS);
}
using MultiDeviceMetricEnumerationTest = Test<MetricMultiDeviceFixture>;
using MultiDeviceMetricEnumerationTest = TestLegacy<MetricMultiDeviceFixture>;
TEST_F(MultiDeviceMetricEnumerationTest, givenMultipleDevicesAndValidEventBasedMetricGroupWhenzetContextActivateMetricGroupsIsCalledThenReturnsSuccess) {

View File

@ -20,7 +20,7 @@ using ::testing::Return;
namespace L0 {
namespace ult {
using MetricEnumerationTest = Test<MetricContextFixture>;
using MetricEnumerationTest = TestLegacy<MetricContextFixture>;
TEST_F(MetricEnumerationTest, givenTimeAndBufferSizeWhenOpenIoStreamReturnsErrorThenTheMetricGroupOpenIoStreamReturnsErrorUnknown) {
@ -138,7 +138,7 @@ TEST_F(MetricEnumerationTest, givenTTypedValueWhenCopyValueIsCalledReturnsFilled
}
}
using MetricEnumerationMultiDeviceTest = Test<MetricMultiDeviceFixture>;
using MetricEnumerationMultiDeviceTest = TestLegacy<MetricMultiDeviceFixture>;
TEST_F(MetricEnumerationMultiDeviceTest, givenRootDeviceWhenLoadDependenciesIsCalledThenOpenMetricsSubDeviceWillBeCalled) {

View File

@ -43,7 +43,7 @@ class MockOsLibrary : public NEO::OsLibrary {
}
};
using MetricInitializationTest = Test<MetricContextFixture>;
using MetricInitializationTest = TestLegacy<MetricContextFixture>;
TEST_F(MetricInitializationTest, GivenOaDependenciesAreAvailableThenMetricInitializationIsSuccess) {

View File

@ -22,7 +22,7 @@ using ::testing::Return;
namespace L0 {
namespace ult {
using MetricStreamerTest = Test<MetricContextFixture>;
using MetricStreamerTest = TestLegacy<MetricContextFixture>;
TEST_F(MetricStreamerTest, givenInvalidMetricGroupTypeWhenZetMetricStreamerOpenIsCalledThenReturnsFail) {

View File

@ -18,7 +18,7 @@ using ::testing::Return;
namespace L0 {
namespace ult {
using MetricStreamerMultiDeviceTest = Test<MetricStreamerMultiDeviceFixture>;
using MetricStreamerMultiDeviceTest = TestLegacy<MetricStreamerMultiDeviceFixture>;
TEST_F(MetricStreamerMultiDeviceTest, givenInvalidMetricGroupTypeWhenZetMetricStreamerOpenIsCalledThenReturnsFail) {

Some files were not shown because too many files have changed in this diff Show More