Define variable with binary name suffix

use this variable in tests as it is set once in main.cpp
create function to get binary kernel filename

Change-Id: Ibf7b4c2d390caefda4a5d7fc4667006e7f2edde8
This commit is contained in:
Mateusz Jablonski
2018-04-24 13:06:49 +02:00
committed by sys_ocldev
parent 103fe670bd
commit 180de340d8
25 changed files with 124 additions and 259 deletions

View File

@@ -40,6 +40,12 @@ TEST_F(DeviceTest, Create) {
EXPECT_NE(nullptr, pDevice);
}
TEST_F(DeviceTest, givenDeviceWhenGetProductAbbrevThenReturnsHardwarePrefix) {
const auto productAbbrev = pDevice->getProductAbbrev();
const auto hwPrefix = hardwarePrefix[pDevice->getHardwareInfo().pPlatform->eProductFamily];
EXPECT_EQ(hwPrefix, productAbbrev);
}
TEST_F(DeviceTest, getCommandStreamReceiver) {
EXPECT_NE(nullptr, &pDevice->getCommandStreamReceiver());
}