2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2019-02-27 18:39:32 +08:00
|
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2019-02-27 18:39:32 +08:00
|
|
|
#include "unit_tests/os_interface/hw_info_config_tests.h"
|
|
|
|
|
2019-11-13 17:01:19 +08:00
|
|
|
#include "core/helpers/hw_helper.h"
|
2017-12-21 07:45:38 +08:00
|
|
|
#include "runtime/helpers/options.h"
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
using namespace NEO;
|
2017-12-21 07:45:38 +08:00
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
void HwInfoConfigTest::SetUp() {
|
2018-06-26 16:51:01 +08:00
|
|
|
PlatformFixture::SetUp();
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2019-05-06 18:33:44 +08:00
|
|
|
pInHwInfo = pPlatform->getDevice(0)->getHardwareInfo();
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2019-05-08 22:00:24 +08:00
|
|
|
testPlatform = &pInHwInfo.platform;
|
|
|
|
testSkuTable = &pInHwInfo.featureTable;
|
|
|
|
testWaTable = &pInHwInfo.workaroundTable;
|
|
|
|
testSysInfo = &pInHwInfo.gtSystemInfo;
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2018-06-12 15:42:47 +08:00
|
|
|
outHwInfo = {};
|
2017-12-21 07:45:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void HwInfoConfigTest::TearDown() {
|
|
|
|
PlatformFixture::TearDown();
|
|
|
|
}
|