Files
compute-runtime/unit_tests/gen_common/exclude_tests/exclude_test_declare.cpp
Mateusz Jablonski e7ee6daaa0 Remove runtime/gen_common from include paths
Change-Id: I4d1f9e64e0f4099e7903234e62b070ad4235347a
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-11-19 13:37:34 +01:00

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);
}