Skip to content

Commit

Permalink
[api conformance] Enable version, core_threading, caching_tests to ap…
Browse files Browse the repository at this point in the history
…i conformance (openvinotoolkit#21991)
  • Loading branch information
sbalandi authored Jan 17, 2024
1 parent 563efc6 commit b346934
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,14 @@ INSTANTIATE_TEST_SUITE_P(ov_plugin_floating_point, CompileModelCacheTestBase,
::testing::Values(pluginConfig)),
CompileModelCacheTestBase::getTestCaseName);

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

INSTANTIATE_TEST_SUITE_P(ov_plugin, CompileModelCacheRuntimePropertiesTestBase,
::testing::Combine(
::testing::Values(targetDevice),
::testing::ValuesIn(ov::test::conformance::generate_ov_configs(default_properties))),
CompileModelCacheRuntimePropertiesTestBase::getTestCaseName);

} // namespace
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// Copyright (C) 2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//

#include <behavior/ov_plugin/core_threading.hpp>
#include "behavior/ov_plugin/core_threading.hpp"
#include "ov_api_conformance_helpers.hpp"

using namespace ov::test::behavior;
using namespace ov::test::conformance;

namespace {

INSTANTIATE_TEST_SUITE_P(ov_plugin, CoreThreadingTest,
testing::Values(std::tuple<Device, Config>{targetDevice, {{ov::enable_profiling(false)}}}),
CoreThreadingTest::getTestCaseName);

INSTANTIATE_TEST_SUITE_P(ov_plugin,
CoreThreadingTestsWithIter,
testing::Combine(testing::Values(std::tuple<Device, Config>{targetDevice, {{ov::enable_profiling(false)}}}),
testing::Values(4),
testing::Values(50)),
CoreThreadingTestsWithIter::getTestCaseName);

INSTANTIATE_TEST_SUITE_P(ov_plugin, CoreThreadingTestsWithCacheEnabled,
testing::Combine(testing::Values(std::tuple<Device, Config>{targetDevice, {{ov::enable_profiling(false)}}}),
testing::Values(20),
testing::Values(10)),
CoreThreadingTestsWithCacheEnabled::getTestCaseName);

} // namespace
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,6 @@ INSTANTIATE_TEST_SUITE_P(
::testing::Values(targetDevice));

INSTANTIATE_TEST_SUITE_P(
ov_plugin_remove_mandatory, OVBasicPropertiesTestsP,
ov_plugin_mandatory, OVBasicPropertiesTestsP,
::testing::ValuesIn(generate_ov_pairs_plugin_name_by_device()));
} // namespace
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Copyright (C) 2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//

#include "ov_api_conformance_helpers.hpp"
#include "behavior/ov_plugin/version.hpp"

using namespace ov::test::behavior;
using namespace ov::test::conformance;

namespace {

INSTANTIATE_TEST_SUITE_P(ov_plugin_mandatory,
VersionTests,
::testing::Values(targetDevice),
VersionTests::getTestCaseName);

}

0 comments on commit b346934

Please sign in to comment.