Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
panhaiqi committed Mar 6, 2024
1 parent 1713c61 commit 69535ac
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ INSTANTIATE_TEST_SUITE_P(smoke_Multi_BehaviorTests,
::testing::ValuesIn(multi_properties)),
OVClassCompiledModelPropertiesTests::getTestCaseName);

INSTANTIATE_TEST_SUITE_P(smoke_Multi_BehaviorTests,
OVClassAutoCheckProfiling,
::testing::Combine(::testing::Values(ov::test::utils::DEVICE_MULTI),
::testing::ValuesIn(multi_properties)),
OVClassCompiledModelPropertiesTests::getTestCaseName);

INSTANTIATE_TEST_SUITE_P(smoke_OVCompiledModelIncorrectDevice,
OVCompiledModelIncorrectDevice,
::testing::Values("TEMPLATE"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ using OVClassCompiledModelPropertiesDefaultTests = OVClassCompiledModelPropertie
using OVClassCompiledModelPropertiesIncorrectTests = OVClassCompiledModelPropertiesTests;
using OVCompiledModelIncorrectDevice = OVClassBaseTestP;
using OVClassCompileModelWithCorrectPropertiesTest = OVClassCompiledModelPropertiesTests;
using OVClassAutoCheckProfiling = OVClassCompiledModelPropertiesTests;

class OVClassCompiledModelSetCorrectConfigTest :
public OVClassNetworkTest,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ TEST_P(OVClassCompiledModelPropertiesTests, canCompileModelWithPropertiesAndChec
}
}

TEST_P(OVClassAutoCheckProfiling, canCompileModelWithProfilingAndCheckProfiling) {
auto compiled_model = core->compile_model(model, target_device, properties);
OV_ASSERT_NO_THROW(auto enable_profiling = compiled_model.get_property(ov::enable_profiling));
}

TEST_P(OVClassCompileModelWithCorrectPropertiesTest, IgnoreEnableMMap) {
if (target_device.find("HETERO:") == 0 || target_device.find("MULTI:") == 0 || target_device.find("AUTO:") == 0 ||
target_device.find("BATCH:") == 0)
Expand Down

0 comments on commit 69535ac

Please sign in to comment.