profiling info tests not instantiated (#18408)
* test not run in ci Signed-off-by: fishbell <bell.song@intel.com> * skip unsupported case in batch Signed-off-by: fishbell <bell.song@intel.com> --------- Signed-off-by: fishbell <bell.song@intel.com>
This commit is contained in:
parent
581d12965b
commit
73147e3968
@ -24,6 +24,8 @@ std::vector<std::string> disabledTestPatterns() {
|
||||
R"(.*VirtualPlugin.*BehaviorTests.*OVHoldersTest.*)",
|
||||
// BATCH plugin doesn't support this case
|
||||
R"(.*LoadNetworkCreateDefaultExecGraphResult.*)",
|
||||
// BATCH/TEMPLATE plugin doesn't support this case
|
||||
R"(.*OVInferRequestPerfCountersTest.*CheckOperationInProfilingInfo.*)",
|
||||
};
|
||||
|
||||
return disabled_items;
|
||||
|
@ -12,6 +12,7 @@ namespace test {
|
||||
namespace behavior {
|
||||
struct OVInferRequestPerfCountersTest : public virtual OVInferRequestTests {
|
||||
void SetUp() override;
|
||||
static std::string getTestCaseName(testing::TestParamInfo<InferRequestParams> obj);
|
||||
ov::InferRequest req;
|
||||
};
|
||||
using OVInferRequestPerfCountersExceptionTest = OVInferRequestPerfCountersTest;
|
||||
|
@ -19,6 +19,23 @@ void OVInferRequestPerfCountersTest::SetUp() {
|
||||
req = execNet.create_infer_request();
|
||||
}
|
||||
|
||||
std::string OVInferRequestPerfCountersTest::getTestCaseName(testing::TestParamInfo<InferRequestParams> obj) {
|
||||
std::string targetDevice;
|
||||
ov::AnyMap configuration;
|
||||
std::tie(targetDevice, configuration) = obj.param;
|
||||
std::replace(targetDevice.begin(), targetDevice.end(), ':', '.');
|
||||
std::ostringstream result;
|
||||
result << "targetDevice=" << targetDevice << "_";
|
||||
if (!configuration.empty()) {
|
||||
using namespace CommonTestUtils;
|
||||
for (auto &configItem : configuration) {
|
||||
result << "configItem=" << configItem.first << "_";
|
||||
configItem.second.print(result);
|
||||
}
|
||||
}
|
||||
return result.str();
|
||||
}
|
||||
|
||||
TEST_P(OVInferRequestPerfCountersTest, NotEmptyAfterAsyncInfer) {
|
||||
OV_ASSERT_NO_THROW(req.start_async());
|
||||
OV_ASSERT_NO_THROW(req.wait());
|
||||
|
Loading…
Reference in New Issue
Block a user