From 73147e39686548f37f644f2aecd598e80bf51f01 Mon Sep 17 00:00:00 2001 From: yanlan song Date: Mon, 24 Jul 2023 15:51:16 +0800 Subject: [PATCH] profiling info tests not instantiated (#18408) * test not run in ci Signed-off-by: fishbell * skip unsupported case in batch Signed-off-by: fishbell --------- Signed-off-by: fishbell --- .../tests/functional/skip_tests_config.cpp | 2 ++ .../behavior/ov_infer_request/perf_counters.hpp | 1 + .../behavior/ov_infer_request/perf_counters.cpp | 17 +++++++++++++++++ 3 files changed, 20 insertions(+) diff --git a/src/plugins/auto_batch/tests/functional/skip_tests_config.cpp b/src/plugins/auto_batch/tests/functional/skip_tests_config.cpp index 8221fb8eb7c..862fe6dcfae 100644 --- a/src/plugins/auto_batch/tests/functional/skip_tests_config.cpp +++ b/src/plugins/auto_batch/tests/functional/skip_tests_config.cpp @@ -24,6 +24,8 @@ std::vector disabledTestPatterns() { R"(.*VirtualPlugin.*BehaviorTests.*OVHoldersTest.*)", // BATCH plugin doesn't support this case R"(.*LoadNetworkCreateDefaultExecGraphResult.*)", + // BATCH/TEMPLATE plugin doesn't support this case + R"(.*OVInferRequestPerfCountersTest.*CheckOperationInProfilingInfo.*)", }; return disabled_items; diff --git a/src/tests/functional/plugin/shared/include/behavior/ov_infer_request/perf_counters.hpp b/src/tests/functional/plugin/shared/include/behavior/ov_infer_request/perf_counters.hpp index 5c4c9a8c0e4..c309bc04a3b 100644 --- a/src/tests/functional/plugin/shared/include/behavior/ov_infer_request/perf_counters.hpp +++ b/src/tests/functional/plugin/shared/include/behavior/ov_infer_request/perf_counters.hpp @@ -12,6 +12,7 @@ namespace test { namespace behavior { struct OVInferRequestPerfCountersTest : public virtual OVInferRequestTests { void SetUp() override; + static std::string getTestCaseName(testing::TestParamInfo obj); ov::InferRequest req; }; using OVInferRequestPerfCountersExceptionTest = OVInferRequestPerfCountersTest; diff --git a/src/tests/functional/plugin/shared/src/behavior/ov_infer_request/perf_counters.cpp b/src/tests/functional/plugin/shared/src/behavior/ov_infer_request/perf_counters.cpp index 5727897b280..1dc5cb340b7 100644 --- a/src/tests/functional/plugin/shared/src/behavior/ov_infer_request/perf_counters.cpp +++ b/src/tests/functional/plugin/shared/src/behavior/ov_infer_request/perf_counters.cpp @@ -19,6 +19,23 @@ void OVInferRequestPerfCountersTest::SetUp() { req = execNet.create_infer_request(); } +std::string OVInferRequestPerfCountersTest::getTestCaseName(testing::TestParamInfo obj) { + std::string targetDevice; + ov::AnyMap configuration; + std::tie(targetDevice, configuration) = obj.param; + std::replace(targetDevice.begin(), targetDevice.end(), ':', '.'); + std::ostringstream result; + result << "targetDevice=" << targetDevice << "_"; + if (!configuration.empty()) { + using namespace CommonTestUtils; + for (auto &configItem : configuration) { + result << "configItem=" << configItem.first << "_"; + configItem.second.print(result); + } + } + return result.str(); +} + TEST_P(OVInferRequestPerfCountersTest, NotEmptyAfterAsyncInfer) { OV_ASSERT_NO_THROW(req.start_async()); OV_ASSERT_NO_THROW(req.wait());