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

@ -13,7 +13,7 @@
using namespace NEO;
typedef Test<ClDeviceFixture> DeviceTest;
typedef TestLegacy<ClDeviceFixture> DeviceTest;
BXTTEST_F(DeviceTest, givenBxtDeviceWhenAskedForProflingTimerResolutionThen52IsReturned) {
auto resolution = pDevice->getProfilingTimerResolution();

View File

@ -13,7 +13,7 @@
using namespace NEO;
typedef Test<ClDeviceFixture> BxtDeviceCaps;
typedef TestLegacy<ClDeviceFixture> BxtDeviceCaps;
BXTTEST_F(BxtDeviceCaps, WhenCheckingProfilingTimerResolutionThenCorrectResolutionIsReturned) {
const auto &caps = pDevice->getDeviceInfo();
@ -45,7 +45,7 @@ BXTTEST_F(BxtDeviceCaps, WhenCheckFtrSupportsInteger64BitAtomicsThenReturnFalse)
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.ftrSupportsInteger64BitAtomics);
}
typedef Test<ClDeviceFixture> BxtUsDeviceIdTest;
typedef TestLegacy<ClDeviceFixture> BxtUsDeviceIdTest;
BXTTEST_F(BxtUsDeviceIdTest, WhenCheckingIsSimulationThenTrueReturnedOnlyForSimulationId) {
unsigned short bxtSimulationIds[3] = {

View File

@ -13,7 +13,7 @@
using namespace NEO;
typedef Test<ClDeviceFixture> BxtDeviceCapsWindows;
typedef TestLegacy<ClDeviceFixture> BxtDeviceCapsWindows;
BXTTEST_F(BxtDeviceCapsWindows, GivenWhenGettingKmdNotifyPropertiesThenItIsDisabled) {
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.enableKmdNotify);

View File

@ -13,7 +13,7 @@
using namespace NEO;
typedef Test<ClDeviceFixture> CflDeviceCaps;
typedef TestLegacy<ClDeviceFixture> CflDeviceCaps;
CFLTEST_F(CflDeviceCaps, GivenCFLWhenCheckftr64KBpagesThenTrue) {
EXPECT_TRUE(pDevice->getHardwareInfo().capabilityTable.ftr64KBpages);

View File

@ -13,7 +13,7 @@
using namespace NEO;
typedef Test<ClDeviceFixture> CflDeviceCapsWindows;
typedef TestLegacy<ClDeviceFixture> CflDeviceCapsWindows;
CFLTEST_F(CflDeviceCapsWindows, GivenWhenGettingKmdNotifyPropertiesThenItIsDisabled) {
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.enableKmdNotify);

View File

@ -19,7 +19,7 @@
namespace NEO {
using Gen9EnqueueTest = Test<ClDeviceFixture>;
using Gen9EnqueueTest = TestLegacy<ClDeviceFixture>;
GEN9TEST_F(Gen9EnqueueTest, givenKernelRequiringIndependentForwardProgressWhenKernelIsSubmittedThenRoundRobinPolicyIsProgrammed) {
MockContext mc;
CommandQueueHw<Gen9Family> cmdQ{&mc, pClDevice, 0, false};

View File

@ -13,7 +13,7 @@
using namespace NEO;
typedef Test<ClDeviceFixture> Gen9DeviceCaps;
typedef TestLegacy<ClDeviceFixture> Gen9DeviceCaps;
GLKTEST_F(Gen9DeviceCaps, WhenCheckingProfilingTimerResolutionThenCorrectResolutionIsReturned) {
const auto &caps = pDevice->getDeviceInfo();
@ -36,7 +36,7 @@ GLKTEST_F(Gen9DeviceCaps, GlkIs32BitOsAllocatorAvailable) {
}
}
typedef Test<ClDeviceFixture> GlkUsDeviceIdTest;
typedef TestLegacy<ClDeviceFixture> GlkUsDeviceIdTest;
GLKTEST_F(GlkUsDeviceIdTest, WhenCheckingIsSimulationThenTrueReturnedOnlyForSimulationId) {
unsigned short glkSimulationIds[3] = {

View File

@ -13,7 +13,7 @@
using namespace NEO;
typedef Test<ClDeviceFixture> GlkDeviceCapsWindows;
typedef TestLegacy<ClDeviceFixture> GlkDeviceCapsWindows;
GLKTEST_F(GlkDeviceCapsWindows, WhenCheckingKmdNotifyPropertiesThenKmdNotifyIsEnabledCorrectly) {
EXPECT_TRUE(pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.enableKmdNotify);

View File

@ -11,7 +11,7 @@
using namespace NEO;
typedef Test<ClDeviceFixture> KblDeviceCaps;
typedef TestLegacy<ClDeviceFixture> KblDeviceCaps;
KBLTEST_F(KblDeviceCaps, GivenKBLWhenCheckftr64KBpagesThenTrue) {
EXPECT_TRUE(pDevice->getHardwareInfo().capabilityTable.ftr64KBpages);

View File

@ -11,7 +11,7 @@
using namespace NEO;
typedef Test<ClDeviceFixture> KblDeviceCapsWindows;
typedef TestLegacy<ClDeviceFixture> KblDeviceCapsWindows;
KBLTEST_F(KblDeviceCapsWindows, GivenWhenGettingKmdNotifyPropertiesThenItIsDisabled) {
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.enableKmdNotify);

View File

@ -16,7 +16,7 @@
using namespace NEO;
using Gen9KernelTest = Test<ClDeviceFixture>;
using Gen9KernelTest = TestLegacy<ClDeviceFixture>;
GEN9TEST_F(Gen9KernelTest, givenKernelWhenCanTransformImagesIsCalledThenReturnsTrue) {
MockKernelWithInternals mockKernel(*pClDevice);
auto retVal = mockKernel.mockKernel->Kernel::canTransformImages();

View File

@ -16,7 +16,7 @@
using namespace NEO;
typedef Test<ClDeviceFixture> Gen9SamplerTest;
typedef TestLegacy<ClDeviceFixture> Gen9SamplerTest;
GEN9TEST_F(Gen9SamplerTest, WhenAppendingSamplerStateParamsThenStateIsNotChanged) {
typedef typename FamilyType::SAMPLER_STATE SAMPLER_STATE;

View File

@ -13,7 +13,7 @@
using namespace NEO;
typedef Test<ClDeviceFixture> DeviceTest;
typedef TestLegacy<ClDeviceFixture> DeviceTest;
SKLTEST_F(DeviceTest, givenSklDeviceWhenAskedForProflingTimerResolutionThen83IsReturned) {
auto resolution = pDevice->getProfilingTimerResolution();

View File

@ -13,7 +13,7 @@
using namespace NEO;
typedef Test<ClDeviceFixture> SklDeviceCaps;
typedef TestLegacy<ClDeviceFixture> SklDeviceCaps;
SKLTEST_F(SklDeviceCaps, WhenCheckingProfilingTimerResolutionThenCorrectResolutionIsReturned) {
const auto &caps = pDevice->getDeviceInfo();
@ -35,7 +35,7 @@ SKLTEST_F(SklDeviceCaps, WhenCheckingCapabilitiesThenSvmIsEnabled) {
EXPECT_EQ(expectedCaps, caps.svmCapabilities);
}
typedef Test<ClDeviceFixture> SklUsDeviceIdTest;
typedef TestLegacy<ClDeviceFixture> SklUsDeviceIdTest;
SKLTEST_F(SklUsDeviceIdTest, WhenCheckingIsSimulationThenTrueReturnedOnlyForSimulationId) {
unsigned short sklSimulationIds[6] = {

View File

@ -13,7 +13,7 @@
using namespace NEO;
typedef Test<ClDeviceFixture> SkylakeOnlyTest;
typedef TestLegacy<ClDeviceFixture> SkylakeOnlyTest;
SKLTEST_F(SkylakeOnlyTest, WhenGettingProductFamilyThenSkylakeIsReturned) {
EXPECT_EQ(IGFX_SKYLAKE, pDevice->getHardwareInfo().platform.eProductFamily);

View File

@ -13,7 +13,7 @@
using namespace NEO;
typedef Test<ClDeviceFixture> SklDeviceCapsWindows;
typedef TestLegacy<ClDeviceFixture> SklDeviceCapsWindows;
SKLTEST_F(SklDeviceCapsWindows, GivenWhenGettingKmdNotifyPropertiesThenItIsDisabled) {
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.enableKmdNotify);

View File

@ -15,7 +15,7 @@
using namespace NEO;
typedef Test<ClDeviceFixture> Gen9DeviceCaps;
typedef TestLegacy<ClDeviceFixture> Gen9DeviceCaps;
GEN9TEST_F(Gen9DeviceCaps, WhenCheckingExtensionStringThenFp64CorrectlyReported) {
const auto &caps = pClDevice->getDeviceInfo();

View File

@ -13,7 +13,7 @@
using namespace NEO;
typedef Test<ClDeviceFixture> Gen9OnlyTest;
typedef TestLegacy<ClDeviceFixture> Gen9OnlyTest;
GEN9TEST_F(Gen9OnlyTest, WhenGettingRenderCoreFamilyThenGen9CoreIsReturned) {
EXPECT_EQ(IGFX_GEN9_CORE, pDevice->getRenderCoreFamily());