Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

Move INFERENCE_PRECISION_HINT test to optional conformance for meta-plugin (#25598)

Haiqi Pan6f899d293a10
diff --git a/src/tests/functional/plugin/conformance/test_runner/api_conformance_runner/src/ov_plugin/properties.cpp b/src/tests/functional/plugin/conformance/test_runner/api_conformance_runner/src/ov_plugin/properties.cpp
index 5ed1e4269d6..594f4c68b61 100644
--- a/src/tests/functional/plugin/conformance/test_runner/api_conformance_runner/src/ov_plugin/properties.cpp
+++ b/src/tests/functional/plugin/conformance/test_runner/api_conformance_runner/src/ov_plugin/properties.cpp
@@ -88,11 +88,12 @@ INSTANTIATE_TEST_SUITE_P(ov_plugin_mandatory, OVCheckChangePropComplieModleGetPr
::testing::Values(ov::AnyMap({}))),
OVCheckChangePropComplieModleGetPropTests_DEVICE_ID::getTestCaseName);
-INSTANTIATE_TEST_SUITE_P(ov_plugin_mandatory, OVCheckChangePropComplieModleGetPropTests_InferencePrecision,
- ::testing::Combine(
- ::testing::Values(ov::test::utils::target_device),
- ::testing::Values(ov::AnyMap({}))),
- OVCheckChangePropComplieModleGetPropTests_InferencePrecision::getTestCaseName);
+/* Add prefix mandatory_ to suffix (getTestCaseName) of HW plugin test cases */
+INSTANTIATE_TEST_SUITE_P(
+ ov_plugin,
+ OVCheckChangePropComplieModleGetPropTests_InferencePrecision,
+ ::testing::Combine(::testing::Values(ov::test::utils::target_device), ::testing::Values(ov::AnyMap({}))),
+ MARK_MANDATORY_FOR_HW_DEVICE(OVCheckChangePropComplieModleGetPropTests_InferencePrecision::getTestCaseName));
INSTANTIATE_TEST_SUITE_P(ov_plugin, OVCheckMetricsPropsTests_ModelDependceProps,
::testing::Combine(
diff --git a/src/tests/functional/plugin/shared/include/base/ov_behavior_test_utils.hpp b/src/tests/functional/plugin/shared/include/base/ov_behavior_test_utils.hpp
index 9de110a82b3..686a3c797ba 100644
--- a/src/tests/functional/plugin/shared/include/base/ov_behavior_test_utils.hpp
+++ b/src/tests/functional/plugin/shared/include/base/ov_behavior_test_utils.hpp
@@ -30,6 +30,12 @@
#include "common_test_utils/subgraph_builders/concat_with_params.hpp"
#include "common_test_utils/subgraph_builders/split_concat.hpp"
+#define MARK_MANDATORY_FOR_HW_DEVICE(GET_TEST_NAME) \
+ [&](const testing::TestParamInfo<PropertiesParams>& info) { \
+ std::string name = GET_TEST_NAME(info); \
+ return sw_plugin_in_target_device(ov::test::utils::target_device) ? "" : "mandatory_" + name; \
+ }
+
namespace ov {
namespace test {
namespace behavior {
diff --git a/src/tests/test_utils/functional_test_utils/layer_tests_summary/github/skip_configs/CPU/expected_failures_API.csv b/src/tests/test_utils/functional_test_utils/layer_tests_summary/github/skip_configs/CPU/expected_failures_API.csv
index 52b257b6251..ba96df69cf0 100644
--- a/src/tests/test_utils/functional_test_utils/layer_tests_summary/github/skip_configs/CPU/expected_failures_API.csv
+++ b/src/tests/test_utils/functional_test_utils/layer_tests_summary/github/skip_configs/CPU/expected_failures_API.csv
@@ -1,5 +1,5 @@
Test Name,Fix Priority
-ov_plugin_mandatory/OVCheckChangePropComplieModleGetPropTests_InferencePrecision.ChangeCorrectProperties/target_device=CPU_,1.0
+ov_plugin/OVCheckChangePropComplieModleGetPropTests_InferencePrecision.ChangeCorrectProperties/mandatory_target_device=CPU_,1.0
ov_compiled_model_mandatory/OVClassCompiledModelGetPropertyTest_MODEL_PRIORITY.GetMetricNoThrow/3,1.0
ov_compiled_model_mandatory/OVClassCompiledModelGetPropertyTest_MODEL_PRIORITY.GetMetricNoThrow/2,1.0
ov_compiled_model_mandatory/OVClassCompiledModelGetPropertyTest_MODEL_PRIORITY.GetMetricNoThrow/1,1.0