Rename CommonTestUtils namespace (#18590)
* Rename CommonTestUtils namespace 1 * Rename CommonTestUtils namespace 2 * Rename CommonTestUtils namespace 3 * Rename CommonTestUtils namespace 4 * Fix1 * Fix2 * Fix3 * Apply comments * Fix4 * Fix5
This commit is contained in:
1 parent
2655512b2f
commit
ff0b51f3ca
1302 files changed
+6585
-6433
No files matched your search
+2
-2
@@ -12,7 +12,7 @@ const std::vector<InferenceEngine::Precision> netPrecisions = {InferenceEngine::
|
||||
auto autoBatchConfig = []() {
|
||||
return std::vector<std::map<std::string, std::string>>{
|
||||
// explicit batch size 4 to avoid fallback to no auto-batching
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(CommonTestUtils::DEVICE_TEMPLATE) + "(4)"},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(ov::test::utils::DEVICE_TEMPLATE) + "(4)"},
|
||||
// no timeout to avoid increasing the test time
|
||||
{ov::auto_batch_timeout.name(), "0"}}};
|
||||
};
|
||||
@@ -20,7 +20,7 @@ auto autoBatchConfig = []() {
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_AutoBatch_BehaviorTests,
|
||||
ExecNetSetPrecision,
|
||||
::testing::Combine(::testing::ValuesIn(netPrecisions),
|
||||
::testing::Values(CommonTestUtils::DEVICE_BATCH),
|
||||
::testing::Values(ov::test::utils::DEVICE_BATCH),
|
||||
::testing::ValuesIn(autoBatchConfig())),
|
||||
ExecNetSetPrecision::getTestCaseName);
|
||||
} // namespace
|
||||
@@ -9,14 +9,14 @@ namespace {
|
||||
auto autoBatchConfigs = []() {
|
||||
return std::vector<std::map<std::string, std::string>>{
|
||||
// explicit batch size 4 to avoid fallback to no auto-batching
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(CommonTestUtils::DEVICE_TEMPLATE) + "(4)"},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(ov::test::utils::DEVICE_TEMPLATE) + "(4)"},
|
||||
// no timeout to avoid increasing the test time
|
||||
{ov::auto_batch_timeout.name(), "0"}}};
|
||||
};
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_AutoBatch_BehaviorTests,
|
||||
InferRequestCallbackTests,
|
||||
::testing::Combine(::testing::Values(CommonTestUtils::DEVICE_BATCH),
|
||||
::testing::Combine(::testing::Values(ov::test::utils::DEVICE_BATCH),
|
||||
::testing::ValuesIn(autoBatchConfigs())),
|
||||
InferRequestCallbackTests::getTestCaseName);
|
||||
|
||||
|
||||
@@ -13,14 +13,14 @@ namespace {
|
||||
auto auto_batch_configs = []() {
|
||||
return std::vector<std::map<std::string, std::string>>{
|
||||
// explicit batch size 4 to avoid fallback to no auto-batching
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(CommonTestUtils::DEVICE_TEMPLATE) + "(4)"},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(ov::test::utils::DEVICE_TEMPLATE) + "(4)"},
|
||||
// no timeout to avoid increasing the test time
|
||||
{ov::auto_batch_timeout.name(), "0"}}};
|
||||
};
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_AutoBatch_BehaviorTests,
|
||||
InferRequestMultithreadingTests,
|
||||
::testing::Combine(::testing::Values(CommonTestUtils::DEVICE_BATCH),
|
||||
::testing::Combine(::testing::Values(ov::test::utils::DEVICE_BATCH),
|
||||
::testing::ValuesIn(auto_batch_configs())),
|
||||
InferRequestMultithreadingTests::getTestCaseName);
|
||||
|
||||
|
||||
@@ -9,14 +9,14 @@ namespace {
|
||||
auto AutoBatchConfigs = []() {
|
||||
return std::vector<std::map<std::string, std::string>>{
|
||||
// explicit batch size 4 to avoid fallback to no auto-batching
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(CommonTestUtils::DEVICE_TEMPLATE) + "(4)"},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(ov::test::utils::DEVICE_TEMPLATE) + "(4)"},
|
||||
// no timeout to avoid increasing the test time
|
||||
{ov::auto_batch_timeout.name(), "0"}}};
|
||||
};
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_AutoBatch_BehaviorTests,
|
||||
InferRequestPerfCountersTest,
|
||||
::testing::Combine(::testing::Values(CommonTestUtils::DEVICE_BATCH),
|
||||
::testing::Combine(::testing::Values(ov::test::utils::DEVICE_BATCH),
|
||||
::testing::ValuesIn(AutoBatchConfigs())),
|
||||
InferRequestPerfCountersTest::getTestCaseName);
|
||||
|
||||
|
||||
@@ -13,14 +13,14 @@ namespace {
|
||||
auto autoBatchConfigs = []() {
|
||||
return std::vector<std::map<std::string, std::string>>{
|
||||
// explicit batch size 4 to avoid fallback to no auto-batching
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(CommonTestUtils::DEVICE_TEMPLATE) + "(4)"},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(ov::test::utils::DEVICE_TEMPLATE) + "(4)"},
|
||||
// no timeout to avoid increasing the test time
|
||||
{ov::auto_batch_timeout.name(), "0"}}};
|
||||
};
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_AutoBatch_BehaviorTests,
|
||||
InferRequestWaitTests,
|
||||
::testing::Combine(::testing::Values(CommonTestUtils::DEVICE_BATCH),
|
||||
::testing::Combine(::testing::Values(ov::test::utils::DEVICE_BATCH),
|
||||
::testing::ValuesIn(autoBatchConfigs())),
|
||||
InferRequestWaitTests::getTestCaseName);
|
||||
|
||||
|
||||
+2
-2
@@ -9,14 +9,14 @@ namespace {
|
||||
auto autoBatchConfigs = []() {
|
||||
return std::vector<ov::AnyMap>{
|
||||
// explicit batch size 4 to avoid fallback to no auto-batching
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(CommonTestUtils::DEVICE_TEMPLATE) + "(4)"},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(ov::test::utils::DEVICE_TEMPLATE) + "(4)"},
|
||||
// no timeout to avoid increasing the test time
|
||||
{ov::auto_batch_timeout.name(), "0"}}};
|
||||
};
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_AutoBatchBehaviorTests, OVExecutableNetworkBaseTest,
|
||||
::testing::Combine(
|
||||
::testing::Values(CommonTestUtils::DEVICE_BATCH),
|
||||
::testing::Values(ov::test::utils::DEVICE_BATCH),
|
||||
::testing::ValuesIn(autoBatchConfigs())),
|
||||
OVExecutableNetworkBaseTest::getTestCaseName);
|
||||
|
||||
|
||||
+5
-5
@@ -18,21 +18,21 @@ const std::vector<ov::AnyMap> auto_batch_inproperties = {
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_AutoBatch_BehaviorTests,
|
||||
OVCompiledModelPropertiesIncorrectTests,
|
||||
::testing::Combine(::testing::Values(CommonTestUtils::DEVICE_BATCH),
|
||||
::testing::Combine(::testing::Values(ov::test::utils::DEVICE_BATCH),
|
||||
::testing::ValuesIn(auto_batch_inproperties)),
|
||||
OVCompiledModelPropertiesIncorrectTests::getTestCaseName);
|
||||
|
||||
const std::vector<ov::AnyMap> auto_batch_properties = {
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(CommonTestUtils::DEVICE_TEMPLATE) + "(4)"}},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(CommonTestUtils::DEVICE_TEMPLATE) + "(4)"},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(ov::test::utils::DEVICE_TEMPLATE) + "(4)"}},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(ov::test::utils::DEVICE_TEMPLATE) + "(4)"},
|
||||
{ov::auto_batch_timeout(1)}},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(CommonTestUtils::DEVICE_TEMPLATE) + "(4)"},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(ov::test::utils::DEVICE_TEMPLATE) + "(4)"},
|
||||
{ov::auto_batch_timeout(10)}},
|
||||
};
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_AutoBatch_BehaviorTests,
|
||||
OVCompiledModelPropertiesTests,
|
||||
::testing::Combine(::testing::Values(CommonTestUtils::DEVICE_BATCH),
|
||||
::testing::Combine(::testing::Values(ov::test::utils::DEVICE_BATCH),
|
||||
::testing::ValuesIn(auto_batch_properties)),
|
||||
OVCompiledModelPropertiesTests::getTestCaseName);
|
||||
|
||||
|
||||
@@ -12,14 +12,14 @@ namespace {
|
||||
auto autoBatchConfigs = []() {
|
||||
return std::vector<ov::AnyMap>{
|
||||
// explicit batch size 4 to avoid fallback to no auto-batching
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(CommonTestUtils::DEVICE_TEMPLATE) + "(4)"},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(ov::test::utils::DEVICE_TEMPLATE) + "(4)"},
|
||||
// no timeout to avoid increasing the test time
|
||||
{ov::auto_batch_timeout(0)}}};
|
||||
};
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_AutoBatch_BehaviorTests,
|
||||
OVInferRequestCallbackTests,
|
||||
::testing::Combine(::testing::Values(CommonTestUtils::DEVICE_BATCH),
|
||||
::testing::Combine(::testing::Values(ov::test::utils::DEVICE_BATCH),
|
||||
::testing::ValuesIn(autoBatchConfigs())),
|
||||
OVInferRequestCallbackTests::getTestCaseName);
|
||||
|
||||
|
||||
@@ -10,14 +10,14 @@ namespace {
|
||||
auto autoBatchConfigs = []() {
|
||||
return std::vector<ov::AnyMap>{
|
||||
// explicit batch size 4 to avoid fallback to no auto-batching
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(CommonTestUtils::DEVICE_TEMPLATE) + "(4)"},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(ov::test::utils::DEVICE_TEMPLATE) + "(4)"},
|
||||
// no timeout to avoid increasing the test time
|
||||
{ov::auto_batch_timeout(0)}}};
|
||||
};
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_AutoBatchBehaviorTests,
|
||||
OVInferRequestCancellationTests,
|
||||
::testing::Combine(::testing::Values(CommonTestUtils::DEVICE_BATCH),
|
||||
::testing::Combine(::testing::Values(ov::test::utils::DEVICE_BATCH),
|
||||
::testing::ValuesIn(autoBatchConfigs())),
|
||||
OVInferRequestCancellationTests::getTestCaseName);
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace {
|
||||
auto AutoBatchConfigs = []() {
|
||||
return std::vector<ov::AnyMap>{
|
||||
// explicit batch size 4 to avoid fallback to no auto-batching
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(CommonTestUtils::DEVICE_TEMPLATE) + "(4)"},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(ov::test::utils::DEVICE_TEMPLATE) + "(4)"},
|
||||
// no timeout to avoid increasing the test time
|
||||
{ov::auto_batch_timeout(0)}}};
|
||||
};
|
||||
@@ -51,21 +51,21 @@ std::vector<ov::element::Type> supported_input_prcs = {ov::element::boolean,
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_AutoBatch_BehaviorTests,
|
||||
OVInferRequestIOTensorTest,
|
||||
::testing::Combine(::testing::Values(CommonTestUtils::DEVICE_BATCH),
|
||||
::testing::Combine(::testing::Values(ov::test::utils::DEVICE_BATCH),
|
||||
::testing::ValuesIn(AutoBatchConfigs())),
|
||||
OVInferRequestIOTensorTest::getTestCaseName);
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_AutoBatch_BehaviorTests,
|
||||
OVInferRequestIOTensorSetPrecisionTest,
|
||||
::testing::Combine(::testing::ValuesIn(prcs),
|
||||
::testing::Values(CommonTestUtils::DEVICE_BATCH),
|
||||
::testing::Values(ov::test::utils::DEVICE_BATCH),
|
||||
::testing::ValuesIn(AutoBatchConfigs())),
|
||||
OVInferRequestIOTensorSetPrecisionTest::getTestCaseName);
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_AutoBatch_BehaviorTests,
|
||||
OVInferRequestCheckTensorPrecision,
|
||||
::testing::Combine(::testing::ValuesIn(supported_input_prcs),
|
||||
::testing::Values(CommonTestUtils::DEVICE_BATCH),
|
||||
::testing::Values(ov::test::utils::DEVICE_BATCH),
|
||||
::testing::ValuesIn(AutoBatchConfigs())),
|
||||
OVInferRequestCheckTensorPrecision::getTestCaseName);
|
||||
|
||||
|
||||
+2
-2
@@ -12,14 +12,14 @@ namespace {
|
||||
auto AutoBatchConfigs = []() {
|
||||
return std::vector<ov::AnyMap>{
|
||||
// explicit batch size 4 to avoid fallback to no auto-batching
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(CommonTestUtils::DEVICE_TEMPLATE) + "(4)"},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(ov::test::utils::DEVICE_TEMPLATE) + "(4)"},
|
||||
// no timeout to avoid increasing the test time
|
||||
{ov::auto_batch_timeout(0)}}};
|
||||
};
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_AutoBatch_BehaviorTests,
|
||||
OVInferRequestMultithreadingTests,
|
||||
::testing::Combine(::testing::Values(CommonTestUtils::DEVICE_BATCH),
|
||||
::testing::Combine(::testing::Values(ov::test::utils::DEVICE_BATCH),
|
||||
::testing::ValuesIn(AutoBatchConfigs())),
|
||||
OVInferRequestMultithreadingTests::getTestCaseName);
|
||||
|
||||
|
||||
@@ -10,14 +10,14 @@ namespace {
|
||||
auto AutoBatchConfigs = []() {
|
||||
return std::vector<ov::AnyMap>{
|
||||
// explicit batch size 4 to avoid fallback to no auto-batching
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(CommonTestUtils::DEVICE_TEMPLATE) + "(4)"},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(ov::test::utils::DEVICE_TEMPLATE) + "(4)"},
|
||||
// no timeout to avoid increasing the test time
|
||||
{ov::auto_batch_timeout(0)}}};
|
||||
};
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_AutoBatch_BehaviorTests,
|
||||
OVInferRequestPerfCountersTest,
|
||||
::testing::Combine(::testing::Values(CommonTestUtils::DEVICE_BATCH),
|
||||
::testing::Combine(::testing::Values(ov::test::utils::DEVICE_BATCH),
|
||||
::testing::ValuesIn(AutoBatchConfigs())),
|
||||
OVInferRequestPerfCountersTest::getTestCaseName);
|
||||
|
||||
|
||||
@@ -12,14 +12,14 @@ namespace {
|
||||
auto AutoBatchConfigs = []() {
|
||||
return std::vector<ov::AnyMap>{
|
||||
// explicit batch size 4 to avoid fallback to no auto-batching
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(CommonTestUtils::DEVICE_TEMPLATE) + "(4)"},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(ov::test::utils::DEVICE_TEMPLATE) + "(4)"},
|
||||
// no timeout to avoid increasing the test time
|
||||
{ov::auto_batch_timeout(0)}}};
|
||||
};
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_AutoBatch_BehaviorTests,
|
||||
OVInferRequestWaitTests,
|
||||
::testing::Combine(::testing::Values(CommonTestUtils::DEVICE_BATCH),
|
||||
::testing::Combine(::testing::Values(ov::test::utils::DEVICE_BATCH),
|
||||
::testing::ValuesIn(AutoBatchConfigs())),
|
||||
OVInferRequestWaitTests::getTestCaseName);
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ using namespace ov::test::behavior;
|
||||
namespace {
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_VirtualPlugin_BehaviorTests,
|
||||
OVHoldersTest,
|
||||
::testing::Values(CommonTestUtils::DEVICE_BATCH),
|
||||
::testing::Values(ov::test::utils::DEVICE_BATCH),
|
||||
OVHoldersTest::getTestCaseName);
|
||||
|
||||
} // namespace
|
||||
@@ -15,18 +15,18 @@ const std::vector<ov::AnyMap> auto_batch_inproperties = {
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(DISABLED_smoke_AutoBatch_BehaviorTests,
|
||||
OVPropertiesIncorrectTests,
|
||||
::testing::Combine(::testing::Values(CommonTestUtils::DEVICE_BATCH),
|
||||
::testing::Combine(::testing::Values(ov::test::utils::DEVICE_BATCH),
|
||||
::testing::ValuesIn(auto_batch_inproperties)),
|
||||
OVPropertiesIncorrectTests::getTestCaseName);
|
||||
|
||||
const std::vector<ov::AnyMap> auto_batch_properties = {
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), CommonTestUtils::DEVICE_TEMPLATE}},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), CommonTestUtils::DEVICE_TEMPLATE}, {ov::auto_batch_timeout(1)}},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), ov::test::utils::DEVICE_TEMPLATE}},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), ov::test::utils::DEVICE_TEMPLATE}, {ov::auto_batch_timeout(1)}},
|
||||
};
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(DISABLED_smoke_AutoBatch_BehaviorTests,
|
||||
OVPropertiesTests,
|
||||
::testing::Combine(::testing::Values(CommonTestUtils::DEVICE_BATCH),
|
||||
::testing::Combine(::testing::Values(ov::test::utils::DEVICE_BATCH),
|
||||
::testing::ValuesIn(auto_batch_properties)),
|
||||
OVPropertiesTests::getTestCaseName);
|
||||
} // namespace
|
||||
@@ -16,7 +16,7 @@ std::vector<std::pair<ov::AnyMap, ov::AnyMap>> generate_remote_params() {
|
||||
auto AutoBatchConfigs = []() {
|
||||
return std::vector<ov::AnyMap>{
|
||||
// explicit batch size 4 to avoid fallback to no auto-batching
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(CommonTestUtils::DEVICE_TEMPLATE) + "(4)"},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), std::string(ov::test::utils::DEVICE_TEMPLATE) + "(4)"},
|
||||
// no timeout to avoid increasing the test time
|
||||
ov::auto_batch_timeout(0)}};
|
||||
};
|
||||
@@ -24,7 +24,7 @@ auto AutoBatchConfigs = []() {
|
||||
INSTANTIATE_TEST_SUITE_P(DISABLED_smoke_AutoBatch_BehaviorTests,
|
||||
OVRemoteTest,
|
||||
::testing::Combine(::testing::Values(ngraph::element::f32),
|
||||
::testing::Values(::CommonTestUtils::DEVICE_BATCH),
|
||||
::testing::Values(::ov::test::utils::DEVICE_BATCH),
|
||||
::testing::ValuesIn(AutoBatchConfigs()),
|
||||
::testing::ValuesIn(generate_remote_params())),
|
||||
OVRemoteTest::getTestCaseName);
|
||||
|
||||
@@ -16,7 +16,7 @@ const std::vector<size_t> num_requests{1, 3, 8, 9, 16, 64};
|
||||
const std::vector<size_t> num_batch{1, 4, 8, 16, 32, 64, 128, 256};
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_AutoBatching_test,
|
||||
AutoBatching_Test,
|
||||
::testing::Combine(::testing::Values(CommonTestUtils::DEVICE_TEMPLATE),
|
||||
::testing::Combine(::testing::Values(ov::test::utils::DEVICE_TEMPLATE),
|
||||
::testing::ValuesIn(get_vs_set),
|
||||
::testing::ValuesIn(num_streams),
|
||||
::testing::ValuesIn(num_requests),
|
||||
@@ -25,7 +25,7 @@ INSTANTIATE_TEST_SUITE_P(smoke_AutoBatching_test,
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_AutoBatching_test,
|
||||
AutoBatching_Test_DetectionOutput,
|
||||
::testing::Combine(::testing::Values(CommonTestUtils::DEVICE_TEMPLATE),
|
||||
::testing::Combine(::testing::Values(ov::test::utils::DEVICE_TEMPLATE),
|
||||
::testing::ValuesIn(get_vs_set),
|
||||
::testing::ValuesIn(num_streams),
|
||||
::testing::ValuesIn(num_requests),
|
||||
@@ -34,24 +34,24 @@ INSTANTIATE_TEST_SUITE_P(smoke_AutoBatching_test,
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_AutoBatching_test,
|
||||
DefaultConfigurationTest,
|
||||
::testing::Combine(::testing::Values(std::string(CommonTestUtils::DEVICE_BATCH) + ":" +
|
||||
CommonTestUtils::DEVICE_TEMPLATE),
|
||||
::testing::Combine(::testing::Values(std::string(ov::test::utils::DEVICE_BATCH) + ":" +
|
||||
ov::test::utils::DEVICE_TEMPLATE),
|
||||
::testing::Values(DefaultParameter{CONFIG_KEY(AUTO_BATCH_TIMEOUT),
|
||||
InferenceEngine::Parameter{"1000"}})),
|
||||
DefaultConfigurationTest::getTestCaseName);
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_AutoBatching_test_string,
|
||||
DefaultConfigurationTest,
|
||||
::testing::Combine(::testing::Values(std::string(CommonTestUtils::DEVICE_BATCH) + ":" +
|
||||
CommonTestUtils::DEVICE_TEMPLATE),
|
||||
::testing::Combine(::testing::Values(std::string(ov::test::utils::DEVICE_BATCH) + ":" +
|
||||
ov::test::utils::DEVICE_TEMPLATE),
|
||||
::testing::Values(DefaultParameter{ov::auto_batch_timeout.name(),
|
||||
InferenceEngine::Parameter{"1000"}})),
|
||||
DefaultConfigurationTest::getTestCaseName);
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_AutoBatching_test_uint,
|
||||
DefaultConfigurationTest,
|
||||
::testing::Combine(::testing::Values(std::string(CommonTestUtils::DEVICE_BATCH) + ":" +
|
||||
CommonTestUtils::DEVICE_TEMPLATE),
|
||||
::testing::Combine(::testing::Values(std::string(ov::test::utils::DEVICE_BATCH) + ":" +
|
||||
ov::test::utils::DEVICE_TEMPLATE),
|
||||
::testing::Values(DefaultParameter{ov::auto_batch_timeout.name(),
|
||||
InferenceEngine::Parameter{uint32_t(1000)}})),
|
||||
DefaultConfigurationTest::getTestCaseName);
|
||||
|
||||
@@ -72,7 +72,7 @@ protected:
|
||||
// minimize timeout to reduce test time
|
||||
config[CONFIG_KEY(AUTO_BATCH_TIMEOUT)] = std::to_string(1);
|
||||
auto exec_net_ref = ie.LoadNetwork(net,
|
||||
std::string(CommonTestUtils::DEVICE_BATCH) + ":" + target_device + "(" +
|
||||
std::string(ov::test::utils::DEVICE_BATCH) + ":" + target_device + "(" +
|
||||
std::to_string(num_batch) + ")",
|
||||
config);
|
||||
|
||||
|
||||
@@ -8,41 +8,41 @@ using namespace BehaviorTestsDefinitions;
|
||||
namespace {
|
||||
auto auto_batch_inconfigs = []() {
|
||||
return std::vector<std::map<std::string, std::string>>{
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), CommonTestUtils::DEVICE_TEMPLATE},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), ov::test::utils::DEVICE_TEMPLATE},
|
||||
{ov::hint::performance_mode.name(), "DOESN'T EXIST"}},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), CommonTestUtils::DEVICE_TEMPLATE},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), ov::test::utils::DEVICE_TEMPLATE},
|
||||
{InferenceEngine::PluginConfigParams::KEY_PERFORMANCE_HINT, InferenceEngine::PluginConfigParams::LATENCY},
|
||||
{ov::hint::performance_mode.name(), "LATENCY"},
|
||||
{ov::hint::num_requests.name(), "-1"}},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), CommonTestUtils::DEVICE_TEMPLATE},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), ov::test::utils::DEVICE_TEMPLATE},
|
||||
{InferenceEngine::PluginConfigParams::KEY_CONFIG_FILE, "unknown_file"}},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), CommonTestUtils::DEVICE_TEMPLATE},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), ov::test::utils::DEVICE_TEMPLATE},
|
||||
{ov::device::id.name(), "DEVICE_UNKNOWN"}}};
|
||||
};
|
||||
|
||||
auto auto_batch_configs = []() {
|
||||
return std::vector<std::map<std::string, std::string>>{
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), CommonTestUtils::DEVICE_TEMPLATE}},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), CommonTestUtils::DEVICE_TEMPLATE},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), ov::test::utils::DEVICE_TEMPLATE}},
|
||||
{{CONFIG_KEY(AUTO_BATCH_DEVICE_CONFIG), ov::test::utils::DEVICE_TEMPLATE},
|
||||
{ov::auto_batch_timeout.name(), "1"}},
|
||||
};
|
||||
};
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_AutoBatch_BehaviorTests,
|
||||
IncorrectConfigTests,
|
||||
::testing::Combine(::testing::Values(CommonTestUtils::DEVICE_BATCH),
|
||||
::testing::Combine(::testing::Values(ov::test::utils::DEVICE_BATCH),
|
||||
::testing::ValuesIn(auto_batch_inconfigs())),
|
||||
IncorrectConfigTests::getTestCaseName);
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_AutoBatch_BehaviorTests,
|
||||
IncorrectConfigAPITests,
|
||||
::testing::Combine(::testing::Values(CommonTestUtils::DEVICE_BATCH),
|
||||
::testing::Combine(::testing::Values(ov::test::utils::DEVICE_BATCH),
|
||||
::testing::ValuesIn(auto_batch_inconfigs())),
|
||||
IncorrectConfigAPITests::getTestCaseName);
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_AutoBatch_BehaviorTests,
|
||||
CorrectConfigTests,
|
||||
::testing::Combine(::testing::Values(CommonTestUtils::DEVICE_BATCH),
|
||||
::testing::Combine(::testing::Values(ov::test::utils::DEVICE_BATCH),
|
||||
::testing::ValuesIn(auto_batch_configs())),
|
||||
CorrectConfigTests::getTestCaseName);
|
||||
|
||||
|
||||
Reference in new issue
Block a user