test: add meteorlake command list unit tests

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2023-05-11 19:45:10 +00:00
committed by Compute-Runtime-Automation
parent bfd7067c1a
commit db9559c898
2 changed files with 42 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
#
# Copyright (C) 2022 Intel Corporation
# Copyright (C) 2022-2023 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
@@ -7,6 +7,7 @@
if(TESTS_MTL)
target_sources(${TARGET_NAME} PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
${CMAKE_CURRENT_SOURCE_DIR}/test_cmdlist_mtl.cpp
${CMAKE_CURRENT_SOURCE_DIR}/test_sampler_mtl.cpp
)
endif()

View File

@@ -0,0 +1,40 @@
/*
* Copyright (C) 2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/test/common/test_macros/hw_test.h"
#include "level_zero/core/test/unit_tests/fixtures/cmdlist_fixture.inl"
namespace L0 {
namespace ult {
using CmdListPipelineSelectStateTestMtl = Test<CmdListPipelineSelectStateFixture>;
HWTEST2_F(CmdListPipelineSelectStateTestMtl,
givenAppendSystolicKernelToCommandListWhenExecutingCommandListThenPipelineSelectStateIsTrackedCorrectly, IsMTL) {
testBody<FamilyType>();
}
HWTEST2_F(CmdListPipelineSelectStateTestMtl,
givenCmdQueueAndImmediateCmdListUseSameCsrWhenAppendingSystolicKernelOnBothRegularFirstThenPipelineSelectStateIsNotChanged, IsMTL) {
testBodyShareStateRegularImmediate<FamilyType>();
}
HWTEST2_F(CmdListPipelineSelectStateTestMtl,
givenCmdQueueAndImmediateCmdListUseSameCsrWhenAppendingSystolicKernelOnBothImmediateFirstThenPipelineSelectStateIsNotChanged, IsMTL) {
testBodyShareStateImmediateRegular<FamilyType>();
}
using CmdListLargeGrfTestMtl = Test<CmdListLargeGrfFixture>;
HWTEST2_F(CmdListLargeGrfTestMtl,
givenAppendLargeGrfKernelToCommandListWhenExecutingCommandListThenStateComputeModeStateIsTrackedCorrectly, IsMTL) {
testBody<FamilyType>();
}
} // namespace ult
} // namespace L0