compute-runtime/unit_tests/gen10/test_sample_gen10.cpp

26 lines
649 B
C++

/*
* Copyright (C) 2017-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "test.h"
#include "unit_tests/fixtures/device_fixture.h"
using namespace NEO;
typedef Test<DeviceFixture> CannonlakeOnlyTest;
CNLTEST_F(CannonlakeOnlyTest, shouldPassOnCnl) {
EXPECT_EQ(IGFX_CANNONLAKE, pDevice->getHardwareInfo().platform.eProductFamily);
}
typedef Test<DeviceFixture> Gen10OnlyTest;
GEN10TEST_F(Gen10OnlyTest, shouldPassOnGen10) {
EXPECT_NE(IGFX_GEN8_CORE, pDevice->getRenderCoreFamily());
EXPECT_NE(IGFX_GEN9_CORE, pDevice->getRenderCoreFamily());
EXPECT_EQ(IGFX_GEN10_CORE, pDevice->getRenderCoreFamily());
}