From a9da0c4ed5678576ed9ede313ebfd779b711961f Mon Sep 17 00:00:00 2001 From: Marcel Skierkowski Date: Wed, 26 Feb 2025 15:36:17 +0000 Subject: [PATCH] test: Expand tests to more products Add test for PTL Update xe2_hpg test Signed-off-by: Marcel Skierkowski --- .../tools/test/unit_tests/sources/debug/test_debug_api.cpp | 4 ++-- .../debug/xe2_hpg_core/debug_session_tests_xe2_hpg_core.cpp | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/level_zero/tools/test/unit_tests/sources/debug/test_debug_api.cpp b/level_zero/tools/test/unit_tests/sources/debug/test_debug_api.cpp index 76fd58dce8..59ddd799c8 100644 --- a/level_zero/tools/test/unit_tests/sources/debug/test_debug_api.cpp +++ b/level_zero/tools/test/unit_tests/sources/debug/test_debug_api.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021-2024 Intel Corporation + * Copyright (C) 2021-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -141,7 +141,7 @@ TEST_F(DebugApiTest, givenSubDeviceWhenCallingDebugAttachThenErrorIsReturned) { EXPECT_EQ(nullptr, debugSession); } -using isDebugSupportedProduct = IsWithinProducts; +using isDebugSupportedProduct = IsWithinProducts; HWTEST2_F(DebugApiTest, givenDeviceWhenDebugAttachIsAvaialbleThenGetPropertiesReturnsCorrectFlag, isDebugSupportedProduct) { zet_device_debug_properties_t debugProperties = {}; debugProperties.flags = ZET_DEVICE_DEBUG_PROPERTY_FLAG_FORCE_UINT32; diff --git a/level_zero/tools/test/unit_tests/sources/debug/xe2_hpg_core/debug_session_tests_xe2_hpg_core.cpp b/level_zero/tools/test/unit_tests/sources/debug/xe2_hpg_core/debug_session_tests_xe2_hpg_core.cpp index 0e2a4d45ed..39ead12bd5 100644 --- a/level_zero/tools/test/unit_tests/sources/debug/xe2_hpg_core/debug_session_tests_xe2_hpg_core.cpp +++ b/level_zero/tools/test/unit_tests/sources/debug/xe2_hpg_core/debug_session_tests_xe2_hpg_core.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Intel Corporation + * Copyright (C) 2024-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -77,8 +77,7 @@ HWTEST2_F(Xe2HpgCoreDebugSessionTest, } using DebugApiTest = Test; -using isDebugSupportedProduct = IsAtLeastProduct; -HWTEST2_F(DebugApiTest, givenDeviceWhenDebugAttachIsAvaialbleThenGetPropertiesReturnsCorrectFlag2, isDebugSupportedProduct) { +HWTEST2_F(DebugApiTest, givenDeviceWhenDebugAttachIsAvaialbleThenGetPropertiesReturnsCorrectFlag2, IsXe2HpgCore) { zet_device_debug_properties_t debugProperties = {}; debugProperties.flags = ZET_DEVICE_DEBUG_PROPERTY_FLAG_FORCE_UINT32;