Skip to content

Commit

Permalink
[API CONFORMANCE] Modify API conformance suite for SW plugins (#23557)
Browse files Browse the repository at this point in the history
### Details:
 - *Move some properties from mandatory to optional for sw plugins*
 - *...*

### Tickets:
 - *[133459](https://jira.devtools.intel.com/browse/CVS-133459)*
  • Loading branch information
iefode authored Mar 22, 2024
1 parent a47e3f6 commit 791feb4
Show file tree
Hide file tree
Showing 8 changed files with 136 additions and 70 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ const std::vector<ov::AnyMap> configsDevicePropertiesDouble = {
ov::device::properties(ov::AnyMap{{"CPU", ov::AnyMap{ov::num_streams(5)}}})}};







// OV Class load and check network with ov::device::properties
INSTANTIATE_TEST_SUITE_P(smoke_CPU_OVClassCompileModelAndCheckSecondaryPropertiesTest,
OVClassCompileModelAndCheckSecondaryPropertiesTest,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ INSTANTIATE_TEST_SUITE_P(ov_plugin_mandatory, OVPropertiesIncorrectTests,

const std::vector<ov::AnyMap> default_properties = {
{},
{ov::enable_profiling(true)},
{ov::enable_profiling(false)},
};

INSTANTIATE_TEST_SUITE_P(ov_plugin_mandatory, OVPropertiesTests,
Expand All @@ -36,37 +36,43 @@ INSTANTIATE_TEST_SUITE_P(ov_plugin_mandatory, OVPropertiesTests,
INSTANTIATE_TEST_SUITE_P(ov_plugin_mandatory, OVCheckGetSupportedROMetricsPropsTests,
::testing::Combine(
::testing::Values(ov::test::utils::target_device),
::testing::ValuesIn(OVCheckGetSupportedROMetricsPropsTests::getROMandatoryProperties())),
::testing::ValuesIn(OVCheckGetSupportedROMetricsPropsTests::getROMandatoryProperties(
sw_plugin_in_target_device(ov::test::utils::target_device)))),
OVCheckGetSupportedROMetricsPropsTests::getTestCaseName);

INSTANTIATE_TEST_SUITE_P(ov_plugin, OVCheckGetSupportedROMetricsPropsTests,
::testing::Combine(
::testing::Values(ov::test::utils::target_device),
::testing::ValuesIn(OVCheckGetSupportedROMetricsPropsTests::getROOptionalProperties())),
::testing::ValuesIn(OVCheckGetSupportedROMetricsPropsTests::getROOptionalProperties(
sw_plugin_in_target_device(ov::test::utils::target_device)))),
OVCheckGetSupportedROMetricsPropsTests::getTestCaseName);

INSTANTIATE_TEST_SUITE_P(ov_plugin_mandatory, OVCheckSetSupportedRWMetricsPropsTests,
::testing::Combine(
::testing::Values(ov::test::utils::target_device),
::testing::ValuesIn(OVCheckSetSupportedRWMetricsPropsTests::getRWMandatoryPropertiesValues())),
::testing::ValuesIn(OVCheckSetSupportedRWMetricsPropsTests::getRWMandatoryPropertiesValues(
{}, sw_plugin_in_target_device(ov::test::utils::target_device)))),
OVCheckSetSupportedRWMetricsPropsTests::getTestCaseName);

INSTANTIATE_TEST_SUITE_P(ov_plugin, OVCheckSetSupportedRWMetricsPropsTests,
::testing::Combine(
::testing::Values(ov::test::utils::target_device),
::testing::ValuesIn(OVCheckSetSupportedRWMetricsPropsTests::getRWOptionalPropertiesValues())),
::testing::ValuesIn(OVCheckSetSupportedRWMetricsPropsTests::getRWOptionalPropertiesValues(
{}, sw_plugin_in_target_device(ov::test::utils::target_device)))),
OVCheckSetSupportedRWMetricsPropsTests::getTestCaseName);

INSTANTIATE_TEST_SUITE_P(ov_plugin_mandatory, OVCheckSetIncorrectRWMetricsPropsTests,
::testing::Combine(
::testing::Values(ov::test::utils::target_device),
::testing::ValuesIn(OVCheckSetIncorrectRWMetricsPropsTests::getWrongRWMandatoryPropertiesValues())),
::testing::ValuesIn(OVCheckSetIncorrectRWMetricsPropsTests::getWrongRWMandatoryPropertiesValues(
{}, sw_plugin_in_target_device(ov::test::utils::target_device)))),
OVCheckSetIncorrectRWMetricsPropsTests::getTestCaseName);

INSTANTIATE_TEST_SUITE_P(ov_plugin, OVCheckSetIncorrectRWMetricsPropsTests,
::testing::Combine(
::testing::Values(ov::test::utils::target_device),
::testing::ValuesIn(OVCheckSetIncorrectRWMetricsPropsTests::getWrongRWOptionalPropertiesValues())),
::testing::ValuesIn(OVCheckSetIncorrectRWMetricsPropsTests::getWrongRWOptionalPropertiesValues(
{}, sw_plugin_in_target_device(ov::test::utils::target_device)))),
OVCheckSetIncorrectRWMetricsPropsTests::getTestCaseName);

INSTANTIATE_TEST_SUITE_P(ov_plugin_mandatory, OVCheckChangePropComplieModleGetPropTests_DEVICE_ID,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ class OVPropertiesTestsWithCompileModelProps : public testing::WithParamInterfac

AnyMap compileModelProperties;

static std::vector<ov::AnyMap> getROMandatoryProperties();
static std::vector<ov::AnyMap> getROOptionalProperties();
static std::vector<ov::AnyMap> getROMandatoryProperties(bool is_sw_device = false);
static std::vector<ov::AnyMap> getROOptionalProperties(bool is_sw_device = false);
static std::vector<ov::AnyMap> configureProperties(std::vector<std::string> props);

static std::vector<ov::AnyMap> getRWMandatoryPropertiesValues(std::vector<std::string> props = {});
static std::vector<ov::AnyMap> getWrongRWMandatoryPropertiesValues(std::vector<std::string> props = {});
static std::vector<ov::AnyMap> getRWOptionalPropertiesValues(std::vector<std::string> props = {});
static std::vector<ov::AnyMap> getWrongRWOptionalPropertiesValues(std::vector<std::string> props = {});
static std::vector<ov::AnyMap> getRWMandatoryPropertiesValues(const std::vector<std::string>& props = {}, bool is_sw_device = false);
static std::vector<ov::AnyMap> getWrongRWMandatoryPropertiesValues(const std::vector<std::string>& props = {}, bool is_sw_device = false);
static std::vector<ov::AnyMap> getRWOptionalPropertiesValues(const std::vector<std::string>& props = {}, bool is_sw_device = false);
static std::vector<ov::AnyMap> getWrongRWOptionalPropertiesValues(const std::vector<std::string>& props = {}, bool is_sw_device = false);

static std::vector<ov::AnyMap> getModelDependcePropertiesValues();
};
Expand Down Expand Up @@ -105,7 +105,6 @@ using OVClassCompileModelWithCondidateDeviceListContainedMetaPluginTest = OVClas
using OVClassCompileModelReturnDefaultHintTest = OVClassSetDevicePriorityConfigPropsTest;
using OVClassCompileModelDoNotReturnDefaultHintTest = OVClassSetDevicePriorityConfigPropsTest;
using OVClassCompileModelAndCheckSecondaryPropertiesTest = OVClassSetDevicePriorityConfigPropsTest;

using OVGetConfigTest = OVClassBaseTestP;
using OVSpecificDeviceSetConfigTest = OVClassBaseTestP;
using OVSpecificDeviceGetConfigTest = OVClassBaseTestP;
Expand Down
Loading

0 comments on commit 791feb4

Please sign in to comment.