Add xe_hp_sdv unit test target + minor test fixes

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2021-08-02 15:16:41 +00:00
committed by Compute-Runtime-Automation
parent 29580e53ec
commit e880cf2ad6
17 changed files with 89 additions and 43 deletions

View File

@ -23,8 +23,12 @@ TEST(DrmMapperTests, GivenBcsWhenGettingEngineNodeMapThenExecBltIsReturned) {
EXPECT_EQ(DrmEngineMapper::engineNodeMap(aub_stream::ENGINE_BCS), expected);
}
TEST(DrmMapperTests, GivenCcsWhenGettingEngineNodeMapThenExceptionIsThrown) {
EXPECT_THROW(DrmEngineMapper::engineNodeMap(aub_stream::ENGINE_CCS), std::exception);
TEST(DrmMapperTests, GivenCcsWhenGettingEngineNodeMapThenReturnDefault) {
unsigned int expected = I915_EXEC_DEFAULT;
EXPECT_EQ(DrmEngineMapper::engineNodeMap(aub_stream::ENGINE_CCS), expected);
EXPECT_EQ(DrmEngineMapper::engineNodeMap(aub_stream::ENGINE_CCS1), expected);
EXPECT_EQ(DrmEngineMapper::engineNodeMap(aub_stream::ENGINE_CCS2), expected);
EXPECT_EQ(DrmEngineMapper::engineNodeMap(aub_stream::ENGINE_CCS3), expected);
}
TEST(DrmMapperTests, GivenVcsWhenGettingEngineNodeMapThenExceptionIsThrown) {