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:
yanlan song 2023-07-24 15:51:16 +08:00 committed by GitHub
parent 581d12965b
commit 73147e3968
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 0 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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());