mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
Change-Id: I4d1f9e64e0f4099e7903234e62b070ad4235347a Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
38 lines
1.0 KiB
C++
38 lines
1.0 KiB
C++
/*
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/helpers/hw_info.h"
|
|
#include "test.h"
|
|
|
|
#include <type_traits>
|
|
|
|
template <uint32_t prohibitedValue>
|
|
struct ExcludeTest : ::testing::Test {
|
|
void SetUp() override {
|
|
EXPECT_NE(prohibitedValue, ::productFamily);
|
|
}
|
|
void TearDown() override {
|
|
EXPECT_NE(prohibitedValue, ::productFamily);
|
|
}
|
|
};
|
|
|
|
using ExcludeTestBdw = ExcludeTest<IGFX_BROADWELL>;
|
|
HWCMDTEST_F(IGFX_GEN8_CORE, ExcludeTestBdw, givenHwCmdTestWhenBdwExcludedDontRunOnBdw) {
|
|
EXPECT_NE(IGFX_BROADWELL, ::productFamily);
|
|
}
|
|
HWTEST_F(ExcludeTestBdw, givenHwTestWhenBdwExcludedDontRunOnBdw) {
|
|
EXPECT_NE(IGFX_BROADWELL, ::productFamily);
|
|
}
|
|
|
|
using ExcludeTestSkl = ExcludeTest<IGFX_SKYLAKE>;
|
|
HWCMDTEST_F(IGFX_GEN8_CORE, ExcludeTestSkl, givenHwCmdTestWhenSklExcludedDontRunOnSkl) {
|
|
EXPECT_NE(IGFX_SKYLAKE, ::productFamily);
|
|
}
|
|
HWTEST_F(ExcludeTestSkl, givenHwTestWhenSklExcludedDontRunOnSkl) {
|
|
EXPECT_NE(IGFX_SKYLAKE, ::productFamily);
|
|
}
|