* [ci-skip][IE TESTS] move beh_test_plugin * [ci-skip][IE TESTS] move BehaviorHolderTest * [ci-skip][IE TESTS] fix GNA layout test * [ci-skip][IE TESTS] fix cmake * [ci-skip][IE TESTS] fix lib in IEBehaviorTest * [ci-skip][IE TESTS] separate layout and cpp_wrapers test and fix namespace * [ci-skip][IE TESTS] fix holders test * [ci-skip][IE TESTS] fix namespace * [ci-skip][IE TESTS] fix codestyle * [ci-skip][IE TESTS] fix test_plugin * [ci-skip][IE TESTS] fix test_plugin v2 * [ci-skip][IE TESTS] disabled gpu instance for test_plugin * [ci-skip][IE TESTS] fix
35 lines
1.4 KiB
C++
35 lines
1.4 KiB
C++
// Copyright (C) 2018-2020 Intel Corporation
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
#include <vector>
|
|
|
|
#include <ie_core.hpp>
|
|
#include "common_test_utils/test_assertions.hpp"
|
|
#include "common_test_utils/common_utils.hpp"
|
|
#include "functional_test_utils/plugin_cache.hpp"
|
|
#include "functional_test_utils/layer_test_utils.hpp"
|
|
#include "functional_test_utils/blob_utils.hpp"
|
|
#include "ie_preprocess.hpp"
|
|
#include "functional_test_utils/behavior_test_utils.hpp"
|
|
|
|
namespace BehaviorTestsDefinitions {
|
|
using VersionTest = BehaviorTestsUtils::BehaviorTestsBasic;
|
|
|
|
// Load unsupported network type to the Plugin
|
|
TEST_P(VersionTest, pluginCurrentVersionIsCorrect) {
|
|
// Skip test according to plugin specific disabledTestPatterns() (if any)
|
|
SKIP_IF_CURRENT_TEST_IS_DISABLED()
|
|
// Create CNNNetwork from ngrpah::Function
|
|
InferenceEngine::CNNNetwork cnnNet(function);
|
|
std::string refError = "The plugin does not support";
|
|
if (targetDevice.find(CommonTestUtils::DEVICE_MULTI) == std::string::npos &&
|
|
targetDevice.find(CommonTestUtils::DEVICE_HETERO) == std::string::npos) {
|
|
std::map<std::string, InferenceEngine::Version> versions = ie->GetVersions(targetDevice);
|
|
ASSERT_EQ(versions.size(), 1);
|
|
auto version = versions.begin()->second;
|
|
ASSERT_EQ(version.apiVersion.major, 2);
|
|
ASSERT_EQ(version.apiVersion.minor, 1);
|
|
}
|
|
}
|
|
} // namespace BehaviorTestsDefinitions
|