From 20e4c629e905b7d56f6d53c5825ab7975fa28828 Mon Sep 17 00:00:00 2001 From: Sofya Balandina Date: Fri, 25 Aug 2023 00:03:13 +0100 Subject: [PATCH] [conformance] Add shape mode and graph conv logic to test name (#19403) --- .../src/read_ir/read_ir.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/tests/functional/plugin/conformance/test_runner/op_conformance_runner/src/read_ir/read_ir.cpp b/src/tests/functional/plugin/conformance/test_runner/op_conformance_runner/src/read_ir/read_ir.cpp index 0da4b742c24..80cd1641013 100644 --- a/src/tests/functional/plugin/conformance/test_runner/op_conformance_runner/src/read_ir/read_ir.cpp +++ b/src/tests/functional/plugin/conformance/test_runner/op_conformance_runner/src/read_ir/read_ir.cpp @@ -55,6 +55,9 @@ std::string ReadIRTest::getTestCaseName(const testing::TestParamInfo graphConvertLogicTypes = { "fused_names", "repeat_pattern" }; + // Check that op is valid if (splittedFilename.size() > 2) { auto pos = splittedFilename[2].find('-'); @@ -72,22 +75,34 @@ std::string ReadIRTest::getTestCaseName(const testing::TestParamInfo 1) { if (std::find(ov::test::conformance::element_type_names.begin(), ov::test::conformance::element_type_names.end(), splittedFilename[1]) != ov::test::conformance::element_type_names.end()) { result << "Type=" << splittedFilename[1] << "_"; + } else if (std::find(graphConvertLogicTypes.begin(), + graphConvertLogicTypes.end(), + splittedFilename[1]) != graphConvertLogicTypes.end()) { + result << "ConvertLogic=" << splittedFilename[1] << "_"; } else { is_valid_path_format = false; } } result << "IR=" << (is_valid_path_format ? ov::test::utils::replaceExt(splittedFilename[0], "") : path_to_model) << "_"; result << "Device=" << deviceName << "_"; + + std::vector shapeModes = { "static", "dynamic" }; + // Check the shape type + if (splittedFilename.size() > 3 && + std::find(shapeModes.begin(), shapeModes.end(), splittedFilename[3]) != shapeModes.end()) { + result << "Shape=" << splittedFilename[3] << "_"; + } result << "Config=("; auto configItem = config.begin(); while (configItem != config.end()) {