mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 21:27:04 +08:00
test: correct scope of unit test
ensure that getHwRevIdFromStepping is not defined for MTL+ Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9bb64d0b15
commit
d4f80fb957
@@ -263,6 +263,22 @@ HWTEST_F(ProductHelperTest, givenVariousValuesWhenConvertingHwRevIdAndSteppingTh
|
||||
}
|
||||
}
|
||||
|
||||
struct PlatformsWithReleaseHelper {
|
||||
template <PRODUCT_FAMILY productFamily>
|
||||
static constexpr bool isMatched() {
|
||||
return IsAtLeastMtl::isMatched<productFamily>() && !IsXeHpcCore::isMatched<productFamily>();
|
||||
}
|
||||
};
|
||||
|
||||
HWTEST2_F(ProductHelperTest, whenPlatformsSupportsReleaseHelperThenRevIdFromSteppingsAreNotAvailable, PlatformsWithReleaseHelper) {
|
||||
ASSERT_NE(nullptr, releaseHelper);
|
||||
for (uint32_t testValue = 0; testValue < 0x10; testValue++) {
|
||||
EXPECT_EQ(CommonConstants::invalidStepping, productHelper->getHwRevIdFromStepping(testValue, pInHwInfo));
|
||||
pInHwInfo.platform.usRevId = testValue;
|
||||
EXPECT_EQ(CommonConstants::invalidStepping, productHelper->getSteppingFromHwRevId(pInHwInfo));
|
||||
}
|
||||
}
|
||||
|
||||
HWTEST_F(ProductHelperTest, givenVariousValuesWhenGettingAubStreamSteppingFromHwRevIdThenReturnValuesAreCorrect) {
|
||||
MockProductHelperHw<IGFX_UNKNOWN> mockProductHelper;
|
||||
mockProductHelper.returnedStepping = REVISION_A0;
|
||||
|
||||
Reference in New Issue
Block a user