[CONFORMANCE] Fix API Conformance run according changed functions (#14112)
* [CONFORMANCE] Fix API Conformance run according changed functions * def para
This commit is contained in:
parent
abdcaef36d
commit
68b6b273c5
@ -13,10 +13,21 @@ namespace op {
|
||||
using namespace ov::test::subgraph;
|
||||
|
||||
namespace {
|
||||
INSTANTIATE_TEST_SUITE_P(conformance_query_model,
|
||||
#define _OPENVINO_OP_REG(NAME, NAMESPACE) \
|
||||
INSTANTIATE_TEST_SUITE_P(conformance_query_model_##NAME, \
|
||||
ReadIRTest, \
|
||||
::testing::Combine(::testing::ValuesIn(getModelPaths(IRFolderPaths, #NAME)), \
|
||||
::testing::Values(targetDevice), \
|
||||
::testing::Values(pluginConfig)), \
|
||||
ReadIRTest::getTestCaseName); \
|
||||
|
||||
// It should point on latest opset which contains biggest list of operations
|
||||
#include <openvino/opsets/opset10_tbl.hpp>
|
||||
#undef _OPENVINO_OP_REG
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(conformance_query_model_other,
|
||||
ReadIRTest,
|
||||
::testing::Combine(
|
||||
::testing::ValuesIn(getModelPaths(IRFolderPaths)),
|
||||
::testing::Combine(::testing::ValuesIn(getModelPaths(IRFolderPaths)),
|
||||
::testing::Values(targetDevice),
|
||||
::testing::Values(pluginConfig)),
|
||||
ReadIRTest::getTestCaseName);
|
||||
|
@ -48,7 +48,7 @@ inline ov::AnyMap readPluginConfig(const std::string &configFilePath) {
|
||||
}
|
||||
|
||||
inline std::vector<std::string> getModelPaths(const std::vector<std::string>& conformance_ir_paths,
|
||||
const std::string opName = "") {
|
||||
const std::string opName = CONFORMANCE_OTHER_OPS) {
|
||||
// This is required to prevent re-scan folders each call in case there is nothing found
|
||||
static bool listPrepared = false;
|
||||
if (!listPrepared) {
|
||||
|
@ -16,10 +16,8 @@ using namespace ov::test::subgraph;
|
||||
|
||||
namespace {
|
||||
|
||||
#include <ngraph/ngraph.hpp>
|
||||
|
||||
#define NGRAPH_OP(NAME, NAMESPACE) \
|
||||
INSTANTIATE_TEST_SUITE_P(conformance##NAME, \
|
||||
#define _OPENVINO_OP_REG(NAME, NAMESPACE) \
|
||||
INSTANTIATE_TEST_SUITE_P(conformance_##NAME, \
|
||||
ReadIRTest, \
|
||||
::testing::Combine(::testing::ValuesIn(getModelPaths(IRFolderPaths, #NAME)), \
|
||||
::testing::Values(targetDevice), \
|
||||
@ -27,12 +25,12 @@ namespace {
|
||||
ReadIRTest::getTestCaseName); \
|
||||
|
||||
// It should point on latest opset which contains biggest list of operations
|
||||
#include <ngraph/opsets/opset10_tbl.hpp>
|
||||
#undef NGRAPH_OP
|
||||
#include "openvino/opsets/opset10_tbl.hpp"
|
||||
#undef _OPENVINO_OP_REG
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(conformanceOther,
|
||||
INSTANTIATE_TEST_SUITE_P(conformance_other,
|
||||
ReadIRTest,
|
||||
::testing::Combine(::testing::ValuesIn(getModelPaths(IRFolderPaths, CONFORMANCE_OTHER_OPS)),
|
||||
::testing::Combine(::testing::ValuesIn(getModelPaths(IRFolderPaths)),
|
||||
::testing::Values(targetDevice),
|
||||
::testing::Values(pluginConfig)),
|
||||
ReadIRTest::getTestCaseName);
|
||||
|
@ -781,6 +781,7 @@ InputsMap getInputMap() {
|
||||
#include "openvino/opsets/opset7_tbl.hpp"
|
||||
#include "openvino/opsets/opset8_tbl.hpp"
|
||||
#include "openvino/opsets/opset9_tbl.hpp"
|
||||
#include "openvino/opsets/opset10_tbl.hpp"
|
||||
|
||||
#include "ov_ops/opset_private_tbl.hpp"
|
||||
#undef _OPENVINO_OP_REG
|
||||
|
Loading…
Reference in New Issue
Block a user