test: add test to keep backward compatibility of mtl/arl AoT acronyms
Related-To: HSD-18038679041 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
parent
32726bb623
commit
ae90c526f2
|
@ -64,3 +64,19 @@ ARLTEST_F(ArlProductHelper, givenArlWithoutHwIpVersionInHwInfoWhenGettingIpVersi
|
|||
|
||||
EXPECT_EQ(compilerProductHelper->getDefaultHwIpVersion(), compilerProductHelper->getHwIpVersion(hwInfo));
|
||||
}
|
||||
|
||||
ARLTEST_F(ArlProductHelper, givenPubliclyAvailableAcronymsForMtlDevicesWhenGetProductConfigThenCorrectValueIsReturned) {
|
||||
auto productConfigHelper = std::make_unique<ProductConfigHelper>();
|
||||
std::vector<std::string> arlSAcronyms = {"arl-s", "arl-u"};
|
||||
std::vector<std::string> arlHAcronyms = {"arl-h"};
|
||||
for (auto &acronym : arlSAcronyms) {
|
||||
ProductConfigHelper::adjustDeviceName(acronym);
|
||||
auto ret = productConfigHelper->getProductConfigFromDeviceName(acronym);
|
||||
EXPECT_EQ(ret, AOT::MTL_U_B0);
|
||||
}
|
||||
for (auto &acronym : arlHAcronyms) {
|
||||
ProductConfigHelper::adjustDeviceName(acronym);
|
||||
auto ret = productConfigHelper->getProductConfigFromDeviceName(acronym);
|
||||
EXPECT_EQ(ret, AOT::ARL_H_B0);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,4 +42,20 @@ MTLTEST_F(ProductConfigHelperMtlTests, givenMtlConfigsWhenSearchForDeviceAcronym
|
|||
auto acronym = productConfigHelper->getAcronymForProductConfig(config);
|
||||
EXPECT_NE(std::find(deviceAcronyms.begin(), deviceAcronyms.end(), acronym), deviceAcronyms.end());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
MTLTEST_F(ProductConfigHelperMtlTests, givenPubliclyAvailableAcronymsForMtlDevicesWhenGetProductConfigThenCorrectValueIsReturned) {
|
||||
auto productConfigHelper = std::make_unique<ProductConfigHelper>();
|
||||
std::vector<std::string> mtlUAcronyms = {"mtl-s", "mtl-u"};
|
||||
std::vector<std::string> mtlHAcronyms = {"mtl-h", "mtl-p"};
|
||||
for (auto &acronym : mtlUAcronyms) {
|
||||
ProductConfigHelper::adjustDeviceName(acronym);
|
||||
auto ret = productConfigHelper->getProductConfigFromDeviceName(acronym);
|
||||
EXPECT_EQ(ret, AOT::MTL_U_B0);
|
||||
}
|
||||
for (auto &acronym : mtlHAcronyms) {
|
||||
ProductConfigHelper::adjustDeviceName(acronym);
|
||||
auto ret = productConfigHelper->getProductConfigFromDeviceName(acronym);
|
||||
EXPECT_EQ(ret, AOT::MTL_H_B0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue