Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[NPU] Simplify folder structure for NPU functional tests (#32298)

Alexandru Enached0f6cf0d3f57
diff --git a/src/plugins/intel_npu/tests/functional/CMakeLists.txt b/src/plugins/intel_npu/tests/functional/CMakeLists.txt
index d009defbaf6..542cddd4d60 100644
--- a/src/plugins/intel_npu/tests/functional/CMakeLists.txt
+++ b/src/plugins/intel_npu/tests/functional/CMakeLists.txt
@@ -33,6 +33,9 @@ ov_add_test_target(
EXCLUDED_SOURCE_PATHS
${EXCLUDED_FUNC_TESTS_DIR}
INCLUDES
+ # OpenVINO headers need to be added before the NPU headers
+ # Otherwise, the compiler may mistake OpenVINO headers for the NPU headers
+ "${OpenVINO_SOURCE_DIR}/src/tests/functional/base_func_tests/include"
${CMAKE_CURRENT_SOURCE_DIR}
${OPTIONAL_FUNC_TESTS_INCLUDES}
"${CMAKE_CURRENT_SOURCE_DIR}/shared_tests_instances"
diff --git a/src/plugins/intel_npu/tests/functional/README.md b/src/plugins/intel_npu/tests/functional/README.md
index 40ef3b83903..7138d1cd188 100644
--- a/src/plugins/intel_npu/tests/functional/README.md
+++ b/src/plugins/intel_npu/tests/functional/README.md
@@ -54,3 +54,36 @@ By default, the environment variable `OV_NPU_TESTS_SKIP_CONFIG_FILE` is set to f
Skip filters can be enabled/disabled according to rules defining the device, backend or operating system, depending on where tests are supposed to run.
Rules are optional, multiple rules can be chained together. Users can negate a rule by using "!".
When determining if a skip filter is active, rules across different categories (backend, device, operating_system) are combined using an AND operation. While multiple entries of the same category will use an OR operation.
+
+## Folder structure
+
+### Behavior
+The folder structure of the `behavior` directory follows the folder structure of the OpenVINO base tests.
+
+The OpenVINO convention requires the tests to be organized in at least three directories: `compiled_model`, `ov_infer_request`, and `ov_plugin`. If the scope of NPU Plugin tests becomes broader, additional directories may be created.
+
+The E2E tests reside here.
+
+### Common
+The place of utility functions and `getTestCaseName` base implementations.
+
+### Internal
+The folder structure is mirrored from the one in the `intel_npu/src` directory.
+
+The NPU implementations of test classes and their corresponding tests are located here.
+
+### Shared tests instances
+OpenVINO test instantiations using NPU Plugin's own arguments.
+
+## Test developing convention
+
+Any test should be split into a `.hpp` and `.cpp` file, with the exception of the tests from `shared_tests_instances`, which don't need `.hpp` files. A test's `.hpp` file should be located in the same directory as its `.cpp` file.
+
+The `.hpp` file should have the entirety of its contents wrapped around the `ov::test::behavior` namespace.
+The contents are:
+- class declarations
+- methods/functions definitions
+- test definitions
+- aliases
+
+The `.cpp` file contains the test instantiations and the variables passed as arguments. The contents should be wrapped around an anonymous/unnamed namespace.
diff --git a/src/plugins/intel_npu/tests/functional/behavior/batched_tensors_tests/batched_run.cpp b/src/plugins/intel_npu/tests/functional/behavior/batched_tensors_tests/batched_run.cpp
index 977a5ff363a..9352f2da021 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/batched_tensors_tests/batched_run.cpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/batched_tensors_tests/batched_run.cpp
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
-#include "behavior/batched_tensors_tests/batched_run.hpp"
+#include "batched_run.hpp"
#include "common/npu_test_env_cfg.hpp"
#include "common/utils.hpp"
diff --git a/src/plugins/intel_npu/tests/functional/behavior/batched_tensors_tests/batched_run.hpp b/src/plugins/intel_npu/tests/functional/behavior/batched_tensors_tests/batched_run.hpp
index 79b3e90a1d5..182b9a910f7 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/batched_tensors_tests/batched_run.hpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/batched_tensors_tests/batched_run.hpp
@@ -10,17 +10,12 @@
#include "common/npu_test_env_cfg.hpp"
#include "common/utils.hpp"
-#include "functional_test_utils/ov_plugin_cache.hpp"
-#include "intel_npu/npu_private_properties.hpp"
#include "openvino/core/any.hpp"
#include "openvino/core/node_vector.hpp"
-#include "openvino/core/type/element_iterator.hpp"
-#include "openvino/op/op.hpp"
#include "openvino/opsets/opset8.hpp"
#include "openvino/runtime/compiled_model.hpp"
#include "openvino/runtime/core.hpp"
#include "openvino/runtime/intel_npu/level_zero/level_zero.hpp"
-#include "overload/overload_test_utils_npu.hpp"
#include "shared_test_classes/base/ov_behavior_test_utils.hpp"
using CompilationParams = std::tuple<std::string, // Device name
@@ -66,9 +61,9 @@ public:
}
void SetUp() override {
- std::tie(target_device, configuration) = this->GetParam();
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ std::tie(target_device, configuration) = this->GetParam();
OVPluginTestBase::SetUp();
ov_model = getDefaultNGraphFunctionForTheDeviceNPU(); // FIXME: E#80555
}
@@ -80,8 +75,7 @@ public:
auto hash = std::to_string(std::hash<std::string>()(test_name));
std::stringstream ss;
auto ts = duration_cast<nanoseconds>(high_resolution_clock::now().time_since_epoch());
- ss << hash << "_"
- << "_" << ts.count();
+ ss << hash << "_" << "_" << ts.count();
return ss.str();
}
@@ -139,8 +133,7 @@ void executeContiguousTensorBatchInfer(ov::InferRequest req,
ov::RemoteContext& context);
TEST_P(BatchedTensorsRunTests, SetInputRemoteTensorsMultipleInfer) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
size_t batch = 4;
auto one_shape = Shape{1, 2, 2, 2};
@@ -173,14 +166,12 @@ TEST_P(BatchedTensorsRunTests, SetInputRemoteTensorsMultipleInfer) {
for (size_t j = 0; j < one_shape_size * batch; ++j) {
ASSERT_EQ(actual[j], testNum + 21) << "Infer " << testNum << ": Expected=" << testNum + 21
<< ", actual=" << actual[j] << " for index " << j;
-
}
}
}
TEST_P(BatchedTensorsRunTests, SetInputDifferentTensorsMultipleInfer) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
size_t batch = 4;
auto one_shape = Shape{1, 2, 2, 2};
@@ -226,8 +217,7 @@ TEST_P(BatchedTensorsRunTests, SetInputDifferentTensorsMultipleInfer) {
}
TEST_P(BatchedTensorsRunTests, SetInputDifferentTensorsMultipleInferMCL) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
size_t batch = 4;
auto one_shape = Shape{1, 16, 16, 16};
@@ -310,8 +300,7 @@ TEST_P(BatchedTensorsRunTests, SetInputDifferentTensorsMultipleInferMCL) {
}
TEST_P(BatchedTensorsRunTests, SetInputDifferentRemoteTensorsMultipleInferMCL) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
size_t batch = 4;
auto one_shape = Shape{1, 2, 2, 2};
@@ -436,8 +425,7 @@ TEST_P(BatchedTensorsRunTests, SetInputDifferentRemoteTensorsMultipleInferMCL) {
using DynamicBatchedTensorsRunTests = BatchedTensorsRunTests;
TEST_P(DynamicBatchedTensorsRunTests, DynamicSetInputRemoteTensorsMultipleInfer) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
size_t batch = 4;
auto one_shape = Shape{1, 2, 2, 2};
@@ -530,8 +518,7 @@ void executeMutlipleTensorsBatchInfer(ov::InferRequest req,
}
TEST_P(DynamicBatchedTensorsRunTests, DynamicSetInputRemoteTensorsDynamicBatchInflation) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
size_t batch = 4;
auto one_shape = Shape{1, 2, 2, 2};
@@ -559,8 +546,7 @@ TEST_P(DynamicBatchedTensorsRunTests, DynamicSetInputRemoteTensorsDynamicBatchIn
}
TEST_P(DynamicBatchedTensorsRunTests, DynamicSetInputRemoteTensorsDynamicBatchDeflation) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
size_t batch = 4;
auto one_shape = Shape{1, 2, 2, 2};
@@ -588,8 +574,7 @@ TEST_P(DynamicBatchedTensorsRunTests, DynamicSetInputRemoteTensorsDynamicBatchDe
}
TEST_P(DynamicBatchedTensorsRunTests, SetInputRemoteSingleBatchedTensorSingleInfer) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
size_t batch = 4;
size_t tensor_batch = 3;
@@ -674,8 +659,7 @@ void executeContiguousTensorBatchInfer(ov::InferRequest req,
}
TEST_P(DynamicBatchedTensorsRunTests, SetInputRemoteSingleBatchedTensorDynamicBatchInflation) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
size_t batch = 4;
auto one_shape = Shape{1, 2, 2, 2};
@@ -705,8 +689,7 @@ TEST_P(DynamicBatchedTensorsRunTests, SetInputRemoteSingleBatchedTensorDynamicBa
}
TEST_P(DynamicBatchedTensorsRunTests, SetInputRemoteSingleBatchedTensorDynamicBatchDeflation) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
size_t batch = 4;
auto one_shape = Shape{1, 2, 2, 2};
@@ -736,8 +719,7 @@ TEST_P(DynamicBatchedTensorsRunTests, SetInputRemoteSingleBatchedTensorDynamicBa
}
TEST_P(DynamicBatchedTensorsRunTests, DynamicSetInputDifferentTensorsMultipleInfer) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
size_t batch = 4;
auto one_shape = Shape{1, 2, 2, 2};
diff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/blob_compatibility.cpp b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/blob_compatibility.cpp
index 5cd1610ad5c..3de3deb304a 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/blob_compatibility.cpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/blob_compatibility.cpp
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
-#include "overload/compiled_model/blob_compatibility.hpp"
+#include "blob_compatibility.hpp"
#include <gtest/gtest.h>
diff --git a/src/plugins/intel_npu/tests/functional/internal/overload/compiled_model/blob_compatibility.hpp b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/blob_compatibility.hpp
similarity index 92%
rename from src/plugins/intel_npu/tests/functional/internal/overload/compiled_model/blob_compatibility.hpp
rename to src/plugins/intel_npu/tests/functional/behavior/compiled_model/blob_compatibility.hpp
index 4462cf75266..621776bc068 100644
--- a/src/plugins/intel_npu/tests/functional/internal/overload/compiled_model/blob_compatibility.hpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/blob_compatibility.hpp
@@ -7,23 +7,8 @@
#include <gtest/gtest.h>
#include "common/npu_test_env_cfg.hpp"
-#include "openvino/core/except.hpp"
-#include "openvino/core/version.hpp"
#include "shared_test_classes/base/ov_behavior_test_utils.hpp"
-// models generation
-#include "openvino/op/abs.hpp"
-#include "openvino/op/add.hpp"
-#include "openvino/op/concat.hpp"
-#include "openvino/op/constant.hpp"
-#include "openvino/op/convolution.hpp"
-#include "openvino/op/matmul.hpp"
-#include "openvino/op/max_pool.hpp"
-#include "openvino/op/relu.hpp"
-#include "openvino/op/reshape.hpp"
-#include "openvino/op/softmax.hpp"
-#include "openvino/op/split.hpp"
-
namespace {
const char* const BLOB_PREFIX = "blob_compatibility_";
diff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/import_export.cpp b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/import_export.cpp
index acd237167cf..a0ef3a9f3e7 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/import_export.cpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/import_export.cpp
@@ -2,13 +2,10 @@
// SPDX-License-Identifier: Apache-2.0
//
-#include "overload/compiled_model/import_export.hpp"
+#include "import_export.hpp"
#include <gtest/gtest.h>
-#include <map>
-#include <string>
-
#include "common/utils.hpp"
using namespace ov::test::behavior;
diff --git a/src/plugins/intel_npu/tests/functional/internal/overload/compiled_model/import_export.hpp b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/import_export.hpp
similarity index 98%
rename from src/plugins/intel_npu/tests/functional/internal/overload/compiled_model/import_export.hpp
rename to src/plugins/intel_npu/tests/functional/behavior/compiled_model/import_export.hpp
index be9be0012d3..d3d9ee13c20 100644
--- a/src/plugins/intel_npu/tests/functional/internal/overload/compiled_model/import_export.hpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/import_export.hpp
@@ -2,9 +2,11 @@
// SPDX-License-Identifier: Apache-2.0
//
+#pragma once
+
+#include <behavior/compiled_model/import_export.hpp>
#include <sstream>
-#include "behavior/compiled_model/import_export.hpp"
#include "common_test_utils/subgraph_builders/conv_pool_relu.hpp"
#include "intel_npu/npu_private_properties.hpp"
#include "openvino/runtime/make_tensor.hpp"
diff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/property.cpp b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/property.cpp
index db0b0d37a08..a8f838e23eb 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/property.cpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/property.cpp
@@ -2,16 +2,12 @@
// SPDX-License-Identifier: Apache-2.0
//
-#include "internal/overload/compiled_model/property.hpp"
+#include "property.hpp"
#include <openvino/runtime/intel_npu/properties.hpp>
#include <vector>
-#include "behavior/compiled_model/properties.hpp"
#include "common/npu_test_env_cfg.hpp"
-#include "common/utils.hpp"
-#include "common_test_utils/subgraph_builders/conv_pool_relu.hpp"
-#include "intel_npu/config/options.hpp"
using namespace ov::test::behavior;
diff --git a/src/plugins/intel_npu/tests/functional/internal/overload/compiled_model/property.hpp b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/property.hpp
similarity index 98%
rename from src/plugins/intel_npu/tests/functional/internal/overload/compiled_model/property.hpp
rename to src/plugins/intel_npu/tests/functional/behavior/compiled_model/property.hpp
index dd8bd11b679..59fdef01079 100644
--- a/src/plugins/intel_npu/tests/functional/internal/overload/compiled_model/property.hpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/property.hpp
@@ -2,15 +2,14 @@
// SPDX-License-Identifier: Apache-2.0
//
+#pragma once
+
#include <openvino/runtime/intel_npu/properties.hpp>
#include <vector>
#include "behavior/compiled_model/properties.hpp"
#include "common/npu_test_env_cfg.hpp"
-#include "common/utils.hpp"
#include "common_test_utils/subgraph_builders/conv_pool_relu.hpp"
-#include "intel_npu/config/options.hpp"
-#include "openvino/util/log.hpp"
using namespace ov::test::behavior;
diff --git a/src/plugins/intel_npu/tests/functional/behavior/fail_gracefully_forward_compatibility.hpp b/src/plugins/intel_npu/tests/functional/behavior/fail_gracefully_forward_compatibility.hpp
index e3a8be23abf..db2cf47de0d 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/fail_gracefully_forward_compatibility.hpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/fail_gracefully_forward_compatibility.hpp
@@ -15,11 +15,9 @@
#include <openvino/runtime/compiled_model.hpp>
#include <openvino/runtime/core.hpp>
-#include "shared_test_classes/base/ov_behavior_test_utils.hpp"
#include "common/npu_test_env_cfg.hpp"
#include "common_test_utils/node_builders/constant.hpp"
-#include "functional_test_utils/ov_plugin_cache.hpp"
-#include "intel_npu/config/options.hpp"
+#include "shared_test_classes/base/ov_behavior_test_utils.hpp"
using CompilationParams = std::tuple<std::string, // Device name
ov::AnyMap // Config
@@ -112,7 +110,7 @@ private:
}
};
-TEST_P(FailGracefullyTest, OnUnsupprotedOperator) {
+TEST_P(FailGracefullyTest, OnUnsupportedOperator) {
auto compilerType = configuration[ov::intel_npu::compiler_type.name()].as<std::string>();
try {
core->compile_model(ov_model, target_device, configuration);
diff --git a/src/plugins/intel_npu/tests/functional/behavior/npu_driver_compiler_adapter/custom_stream.cpp b/src/plugins/intel_npu/tests/functional/behavior/npu_driver_compiler_adapter/custom_stream.cpp
index 3238b3d096a..ec12aff645f 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/npu_driver_compiler_adapter/custom_stream.cpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/npu_driver_compiler_adapter/custom_stream.cpp
@@ -5,7 +5,7 @@
#include <random>
#include "shared_test_classes/base/ov_behavior_test_utils.hpp"
-#include "common/functions.h"
+#include "common/functions.hpp"
#include "common/npu_test_env_cfg.hpp"
#include "common_test_utils/node_builders/constant.hpp"
#include "intel_npu/config/options.hpp"
diff --git a/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/callback.cpp b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/callback.cpp
new file mode 100644
index 00000000000..14752ce79de
--- /dev/null
+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/callback.cpp
@@ -0,0 +1,35 @@
+// Copyright (C) 2025 Intel Corporation
+// SPDX-License-Identifier: Apache-2.0
+//
+
+#include "callback.hpp"
+
+#include "common/npu_test_env_cfg.hpp"
+
+namespace {
+const std::vector<ov::AnyMap> configs = {{}};
+
+const std::vector<ov::AnyMap> multiConfigs = {{ov::device::priorities(ov::test::utils::DEVICE_NPU),
+ ov::device::properties(ov::test::utils::DEVICE_NPU, ov::AnyMap{})}};
+
+const std::vector<ov::AnyMap> autoConfigs = {{ov::device::priorities(ov::test::utils::DEVICE_NPU),
+ ov::device::properties(ov::test::utils::DEVICE_NPU, ov::AnyMap{})}};
+
+INSTANTIATE_TEST_SUITE_P(compatibility_smoke_BehaviorTests,
+ OVInferRequestCallbackTestsNPU,
+ ::testing::Combine(::testing::Values(ov::test::utils::DEVICE_NPU),
+ ::testing::ValuesIn(configs)),
+ InferRequestParamsAnyMapTestName::getTestCaseName);
+
+INSTANTIATE_TEST_SUITE_P(compatibility_smoke_Multi_BehaviorTests,
+ OVInferRequestCallbackTestsNPU,
+ ::testing::Combine(::testing::Values(ov::test::utils::DEVICE_MULTI),
+ ::testing::ValuesIn(multiConfigs)),
+ InferRequestParamsAnyMapTestName::getTestCaseName);
+
+INSTANTIATE_TEST_SUITE_P(compatibility_smoke_Auto_BehaviorTests,
+ OVInferRequestCallbackTestsNPU,
+ ::testing::Combine(::testing::Values(ov::test::utils::DEVICE_AUTO),
+ ::testing::ValuesIn(autoConfigs)),
+ InferRequestParamsAnyMapTestName::getTestCaseName);
+} // namespace
diff --git a/src/plugins/intel_npu/tests/functional/internal/overload/ov_infer_request/callback.hpp b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/callback.hpp
similarity index 98%
rename from src/plugins/intel_npu/tests/functional/internal/overload/ov_infer_request/callback.hpp
rename to src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/callback.hpp
index e65755d2534..746f15c7e74 100644
--- a/src/plugins/intel_npu/tests/functional/internal/overload/ov_infer_request/callback.hpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/callback.hpp
@@ -6,7 +6,7 @@
#include <future>
-#include "overload/overload_test_utils_npu.hpp"
+#include "common/utils.hpp"
namespace ov {
namespace test {
diff --git a/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/cancellation.cpp b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/cancellation.cpp
new file mode 100644
index 00000000000..4d1447a0cc6
--- /dev/null
+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/cancellation.cpp
@@ -0,0 +1,17 @@
+// Copyright (C) 2025 Intel Corporation
+// SPDX-License-Identifier: Apache-2.0
+//
+
+#include "cancellation.hpp"
+
+#include "common/npu_test_env_cfg.hpp"
+
+namespace {
+const std::vector<ov::AnyMap> configs = {{}};
+
+INSTANTIATE_TEST_SUITE_P(compatibility_smoke_BehaviorTests,
+ OVInferRequestCancellationTestsNPU,
+ ::testing::Combine(::testing::Values(ov::test::utils::DEVICE_NPU),
+ ::testing::ValuesIn(configs)),
+ InferRequestParamsAnyMapTestName::getTestCaseName);
+} // namespace
diff --git a/src/plugins/intel_npu/tests/functional/internal/overload/ov_infer_request/cancellation.hpp b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/cancellation.hpp
similarity index 97%
rename from src/plugins/intel_npu/tests/functional/internal/overload/ov_infer_request/cancellation.hpp
rename to src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/cancellation.hpp
index 2aab8840313..84a3b4dd80a 100644
--- a/src/plugins/intel_npu/tests/functional/internal/overload/ov_infer_request/cancellation.hpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/cancellation.hpp
@@ -6,10 +6,9 @@
#include <future>
+#include "common/utils.hpp"
#include "openvino/runtime/exception.hpp"
-#include "overload/overload_test_utils_npu.hpp"
-
namespace ov {
namespace test {
namespace behavior {
diff --git a/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/compile_and_infer.cpp b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/compile_and_infer.cpp
index 5a77908adab..85e3238bbc1 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/compile_and_infer.cpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/compile_and_infer.cpp
@@ -2,11 +2,10 @@
// SPDX-License-Identifier: Apache-2.0
//
-#include "overload/compile_and_infer.hpp"
+#include "compile_and_infer.hpp"
#include <intel_npu/npu_private_properties.hpp>
-#include "common/npu_test_env_cfg.hpp"
#include "common/utils.hpp"
namespace {
diff --git a/src/plugins/intel_npu/tests/functional/internal/overload/compile_and_infer.hpp b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/compile_and_infer.hpp
similarity index 99%
rename from src/plugins/intel_npu/tests/functional/internal/overload/compile_and_infer.hpp
rename to src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/compile_and_infer.hpp
index 92d99970e76..2083f5ce81f 100644
--- a/src/plugins/intel_npu/tests/functional/internal/overload/compile_and_infer.hpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/compile_and_infer.hpp
@@ -2,19 +2,20 @@
// SPDX-License-Identifier: Apache-2.0
//
+#pragma once
+
#include <gtest/gtest.h>
#include <algorithm>
#include <common_test_utils/test_assertions.hpp>
#include <sstream>
-#include "shared_test_classes/base/ov_behavior_test_utils.hpp"
-#include "intel_npu/config/options.hpp"
-#include "intel_npu/npu_private_properties.hpp"
#include "intel_npu/utils/zero/zero_init.hpp"
#include "openvino/core/except.hpp"
#include "openvino/opsets/opset8.hpp"
+#include "openvino/runtime/intel_npu/properties.hpp"
#include "openvino/runtime/properties.hpp"
+#include "shared_test_classes/base/ov_behavior_test_utils.hpp"
namespace ov {
namespace test {
diff --git a/src/plugins/intel_npu/tests/functional/behavior/compile_and_infer_different_element_type.cpp b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/compile_and_infer_different_element_type.cpp
similarity index 73%
rename from src/plugins/intel_npu/tests/functional/behavior/compile_and_infer_different_element_type.cpp
rename to src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/compile_and_infer_different_element_type.cpp
index 3da433de7ff..19fc3eb1ae9 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/compile_and_infer_different_element_type.cpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/compile_and_infer_different_element_type.cpp
@@ -2,11 +2,11 @@
// SPDX-License-Identifier: Apache-2.0
//
-#include "behavior/compile_and_infer_different_element_type.hpp"
+#include "compile_and_infer_different_element_type.hpp"
+
#include "common/utils.hpp"
-#include "common/npu_test_env_cfg.hpp"
-#include "intel_npu/config/options.hpp"
-#include "intel_npu/npu_private_properties.hpp"
+
+namespace {
const std::vector<ov::AnyMap> configs = {};
@@ -15,3 +15,5 @@ INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTests,
::testing::Combine(::testing::Values(ov::test::utils::DEVICE_NPU),
::testing::ValuesIn(configs)),
ov::test::utils::appendPlatformTypeTestName<InferRequestElementTypeTests>);
+
+} // namespace
diff --git a/src/plugins/intel_npu/tests/functional/behavior/compile_and_infer_different_element_type.hpp b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/compile_and_infer_different_element_type.hpp
similarity index 97%
rename from src/plugins/intel_npu/tests/functional/behavior/compile_and_infer_different_element_type.hpp
rename to src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/compile_and_infer_different_element_type.hpp
index 5ba2db80422..b796ffee608 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/compile_and_infer_different_element_type.hpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/compile_and_infer_different_element_type.hpp
@@ -2,15 +2,15 @@
// SPDX-License-Identifier: Apache-2.0
//
+#pragma once
+
#include <common_test_utils/ov_tensor_utils.hpp>
#include <sstream>
#include <string>
-#include <vector>
-#include "openvino/opsets/opset6.hpp"
-#include "openvino/pass/manager.hpp"
#include "openvino/pass/serialize.hpp"
#include "shared_test_classes/base/ov_behavior_test_utils.hpp"
+
namespace ov {
namespace test {
namespace behavior {
@@ -43,8 +43,7 @@ public:
}
void SetUp() {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
std::tie(target_device, configuration) = this->GetParam();
APIBaseTest::SetUp();
@@ -87,8 +86,7 @@ bool InferRequestElementTypeTests::compareTensorOutputs(const ov::Tensor& dynami
// Test whether the serialization and inference results of the dynamic type model and the undefined type model are the
// same
TEST_P(InferRequestElementTypeTests, CompareDynamicAndUndefinedTypeNetwork) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
// Customize a model with a dynamic type
std::string dynamicTypeModelXmlString = R"V0G0N(<?xml version="1.0"?>
diff --git a/src/plugins/intel_npu/tests/functional/behavior/infer_request_dynamic.cpp b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/infer_request_dynamic.cpp
similarity index 77%
rename from src/plugins/intel_npu/tests/functional/behavior/infer_request_dynamic.cpp
rename to src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/infer_request_dynamic.cpp
index fb381cef780..f641c9fb59d 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/infer_request_dynamic.cpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/infer_request_dynamic.cpp
@@ -3,16 +3,16 @@
// SPDX-License-Identifier: Apache-2.0
//
-#include "behavior/infer_request_dynamic.hpp"
+#include "infer_request_dynamic.hpp"
#include <vector>
-#include "common/npu_test_env_cfg.hpp"
#include "common/utils.hpp"
-#include "intel_npu/config/options.hpp"
using namespace ov::test::behavior;
+namespace {
+
const std::vector<ov::AnyMap> config = {{{"NPU_COMPILATION_MODE", "ReferenceSW"}}};
INSTANTIATE_TEST_SUITE_P(
@@ -20,7 +20,10 @@ INSTANTIATE_TEST_SUITE_P(
InferRequestDynamicTests,
::testing::Combine(::testing::Values(InferRequestDynamicTests::getFunction()),
::testing::Values(std::vector<std::pair<std::vector<size_t>, std::vector<size_t>>>{
- {{1, 10, 18}, {6, 12, 15}}, {{1, 2, 14}, {5, 11, 18}}}),
+ {{1, 10, 18}, {6, 12, 15}},
+ {{1, 2, 14}, {5, 11, 18}}}),
::testing::Values(ov::test::utils::DEVICE_NPU),
::testing::ValuesIn(config)),
ov::test::utils::appendPlatformTypeTestName<OVInferRequestDynamicTests>);
+
+} // namespace
diff --git a/src/plugins/intel_npu/tests/functional/behavior/infer_request_dynamic.hpp b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/infer_request_dynamic.hpp
similarity index 98%
rename from src/plugins/intel_npu/tests/functional/behavior/infer_request_dynamic.hpp
rename to src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/infer_request_dynamic.hpp
index 3ac4df109c0..3ab240e3341 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/infer_request_dynamic.hpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/infer_request_dynamic.hpp
@@ -6,21 +6,18 @@
#include <gtest/gtest.h>
-#include <chrono>
-#include <future>
#include <memory>
#include <string>
-#include <thread>
#include <tuple>
#include <vector>
-#include "common_test_utils/common_utils.hpp"
#include "common_test_utils/ov_plugin_cache.hpp"
#include "common_test_utils/ov_tensor_utils.hpp"
#include "openvino/core/shape.hpp"
+#include "openvino/core/type/element_type.hpp"
+#include "openvino/core/type/element_type_traits.hpp"
#include "openvino/op/relu.hpp"
#include "shared_test_classes/base/ov_behavior_test_utils.hpp"
-#include "shared_test_classes/base/ov_subgraph.hpp"
namespace ov {
namespace test {
diff --git a/src/plugins/intel_npu/tests/functional/behavior/infer_request_run.cpp b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/infer_request_run.cpp
similarity index 96%
rename from src/plugins/intel_npu/tests/functional/behavior/infer_request_run.cpp
rename to src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/infer_request_run.cpp
index a88566a5e8a..c38bd4993b6 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/infer_request_run.cpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/infer_request_run.cpp
@@ -2,15 +2,15 @@
// SPDX-License-Identifier: Apache-2.0
//
-#include "behavior/infer_request_run.hpp"
+#include "infer_request_run.hpp"
-#include "common/npu_test_env_cfg.hpp"
#include "common/utils.hpp"
-#include "intel_npu/config/options.hpp"
#include "intel_npu/npu_private_properties.hpp"
using namespace ov::test::behavior;
+namespace {
+
const std::vector<ov::AnyMap> configsInferRequestRunTests = {{}};
INSTANTIATE_TEST_SUITE_P(compatibility_smoke_BehaviorTest,
@@ -73,3 +73,5 @@ INSTANTIATE_TEST_SUITE_P(compatibility_smoke_BehaviorTest,
::testing::Combine(::testing::Values(tensor_roi::roi_nchw()),
::testing::Values(ov::test::utils::DEVICE_NPU)),
ov::test::utils::appendPlatformTypeTestName<OVInferRequestInferenceTests>);
+
+} // namespace
diff --git a/src/plugins/intel_npu/tests/functional/behavior/infer_request_run.hpp b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/infer_request_run.hpp
similarity index 97%
rename from src/plugins/intel_npu/tests/functional/behavior/infer_request_run.hpp
rename to src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/infer_request_run.hpp
index 14c6e7134cc..d8cbe0fc014 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/infer_request_run.hpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/infer_request_run.hpp
@@ -12,24 +12,18 @@
#include <cstddef>
#include <exception>
#include <memory>
-#include <random>
#include <thread>
#include "behavior/ov_infer_request/inference.hpp"
#include "common/npu_test_env_cfg.hpp"
#include "common/utils.hpp"
-#include "functional_test_utils/ov_plugin_cache.hpp"
#include "intel_npu/npu_private_properties.hpp"
#include "intel_npu/utils/zero/zero_init.hpp"
-#include "intel_npu/utils/zero/zero_utils.hpp"
#include "openvino/core/any.hpp"
#include "openvino/core/node_vector.hpp"
-#include "openvino/op/op.hpp"
#include "openvino/opsets/opset8.hpp"
#include "openvino/runtime/compiled_model.hpp"
#include "openvino/runtime/core.hpp"
-#include "openvino/runtime/intel_npu/level_zero/level_zero.hpp"
-#include "overload/overload_test_utils_npu.hpp"
#include "shared_test_classes/base/ov_behavior_test_utils.hpp"
using CompilationParams = std::tuple<std::string, // Device name
@@ -75,9 +69,9 @@ public:
}
void SetUp() override {
- std::tie(target_device, configuration) = this->GetParam();
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ std::tie(target_device, configuration) = this->GetParam();
OVPluginTestBase::SetUp();
ov_model = getDefaultNGraphFunctionForTheDeviceNPU(); // FIXME: E#80555
}
@@ -89,8 +83,7 @@ public:
auto hash = std::to_string(std::hash<std::string>()(test_name));
std::stringstream ss;
auto ts = duration_cast<nanoseconds>(high_resolution_clock::now().time_since_epoch());
- ss << hash << "_"
- << "_" << ts.count();
+ ss << hash << "_" << "_" << ts.count();
return ss.str();
}
@@ -132,7 +125,6 @@ public:
};
TEST_P(InferRequestRunTests, AllocatorCanDisposeBlobWhenOnlyInferRequestIsInScope) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
SKIP_IF_CURRENT_TEST_IS_DISABLED() {
ov::InferRequest req;
ov::Tensor outputTensor;
@@ -144,14 +136,12 @@ TEST_P(InferRequestRunTests, AllocatorCanDisposeBlobWhenOnlyInferRequestIsInScop
}
TEST_P(InferRequestRunTests, MultipleExecutorStreamsTestsSyncInfers) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
// Load CNNNetwork to target plugins
OV_ASSERT_NO_THROW(compiled_model = core->compile_model(ov_model, target_device, configuration));
OV_ASSERT_NO_THROW(input = compiled_model.input());
OV_ASSERT_NO_THROW(output = compiled_model.output());
- // Create InferRequests
const int inferReqNumber = 256;
std::array<ov::InferRequest, inferReqNumber> inferReqs;
std::array<std::thread, inferReqNumber> inferReqsThreads;
@@ -174,14 +164,12 @@ TEST_P(InferRequestRunTests, MultipleExecutorStreamsTestsSyncInfers) {
}
TEST_P(InferRequestRunTests, MultipleExecutorStreamsTestsAsyncInfers) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
// Load CNNNetwork to target plugins
OV_ASSERT_NO_THROW(compiled_model = core->compile_model(ov_model, target_device, configuration));
OV_ASSERT_NO_THROW(input = compiled_model.input());
OV_ASSERT_NO_THROW(output = compiled_model.output());
- // Create InferRequests
const int inferReqNumber = 256;
std::array<ov::InferRequest, inferReqNumber> inferReqs;
for (int i = 0; i < inferReqNumber; ++i) {
@@ -200,14 +188,12 @@ TEST_P(InferRequestRunTests, MultipleExecutorStreamsTestsAsyncInfers) {
}
TEST_P(InferRequestRunTests, MultipleExecutorTestsSyncInfers) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
// Load CNNNetwork to target plugins
OV_ASSERT_NO_THROW(compiled_model = core->compile_model(ov_model, target_device, configuration));
OV_ASSERT_NO_THROW(input = compiled_model.input());
OV_ASSERT_NO_THROW(output = compiled_model.output());
- // Create InferRequests
const int inferReqNumber = 256;
ov::InferRequest inferReq;
ov::Tensor input_tensor;
@@ -221,8 +207,7 @@ TEST_P(InferRequestRunTests, MultipleExecutorTestsSyncInfers) {
}
TEST_P(InferRequestRunTests, CheckOutputDataFromTwoRuns) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
ov::InferRequest inference_request;
ov::Tensor first_output;
@@ -266,8 +251,7 @@ TEST_P(InferRequestRunTests, CheckOutputDataFromTwoRuns) {
}
TEST_P(InferRequestRunTests, CheckOutputDataFromMultipleRunsUsingSameL0Tensor) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
ov::InferRequest inference_request;
ov::Tensor first_output;
@@ -302,8 +286,7 @@ TEST_P(InferRequestRunTests, CheckOutputDataFromMultipleRunsUsingSameL0Tensor) {
}
TEST_P(InferRequestRunTests, RecreateL0TensorIfNeeded) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
ov::InferRequest inference_request;
ov::Tensor first_output;
@@ -351,8 +334,7 @@ TEST_P(InferRequestRunTests, RecreateL0TensorIfNeeded) {
using RandomTensorOverZeroTensorRunTests = InferRequestRunTests;
TEST_P(RandomTensorOverZeroTensorRunTests, SetRandomTensorOverZeroTensor0) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
auto shape = Shape{1, 2, 2, 2};
auto shape_size = ov::shape_size(shape);
@@ -397,8 +379,7 @@ TEST_P(RandomTensorOverZeroTensorRunTests, SetRandomTensorOverZeroTensor0) {
}
TEST_P(RandomTensorOverZeroTensorRunTests, SetRandomTensorOverZeroTensor1) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
auto shape = Shape{1, 2, 2, 2};
auto shape_size = ov::shape_size(shape);
@@ -460,8 +441,7 @@ TEST_P(RandomTensorOverZeroTensorRunTests, SetRandomTensorOverZeroTensor1) {
using BatchingRunTests = InferRequestRunTests;
TEST_P(BatchingRunTests, CheckBatchingSupportInfer) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
ov::InferRequest inference_request;
auto batch_shape = Shape{4, 2, 32, 32};
@@ -473,8 +453,7 @@ TEST_P(BatchingRunTests, CheckBatchingSupportInfer) {
}
TEST_P(BatchingRunTests, CheckBatchingSupportAsync) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
ov::InferRequest inference_request;
auto batch_shape = Shape{4, 2, 32, 32};
@@ -487,8 +466,7 @@ TEST_P(BatchingRunTests, CheckBatchingSupportAsync) {
}
TEST_P(BatchingRunTests, UseCompilerBatchingErrorPluginBatching) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
ov::InferRequest inference_request;
std::shared_ptr<ov::Model> ov_model_batch = getDefaultNGraphFunctionForTheDeviceNPU({4, 2, 32, 32});
@@ -1284,7 +1262,7 @@ using ROITensorInference = OVInferRequestInferenceTests;
TEST_P(ROITensorInference, InferenceROITensor) {
auto model = OVInferRequestInferenceTests::create_n_inputs(1, ov::element::f32, m_param.m_shape);
auto compiled_model = ie->compile_model(model, target_device);
- // Create InferRequest
+
ov::InferRequest req;
req = compiled_model.create_infer_request();
const std::string tensor_name = "tensor_input0";
@@ -1297,8 +1275,7 @@ TEST_P(ROITensorInference, InferenceROITensor) {
using SetShapeInferRunTests = InferRequestRunTests;
TEST_P(SetShapeInferRunTests, checkResultsAfterIOBlobReallocation) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
auto original_shape = Shape{1, 10, 10, 10};
auto dummy_shape = Shape{1, 50, 100, 100};
@@ -1365,8 +1342,7 @@ TEST_P(SetShapeInferRunTests, checkResultsAfterIOBlobReallocation) {
}
TEST_P(SetShapeInferRunTests, checkResultsAfterStateTensorsReallocation) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
testing::internal::Random random(1);
ov::Tensor input_tensor;
@@ -1465,8 +1441,7 @@ TEST_P(SetShapeInferRunTests, checkResultsAfterStateTensorsReallocation) {
using CpuVaTensorsTests = InferRequestRunTests;
TEST_P(CpuVaTensorsTests, DontDestroyImportedMemory) {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
ov::InferRequest inference_request;
ov::Tensor first_output;
@@ -1513,7 +1488,7 @@ TEST_P(CpuVaTensorsTests, DontDestroyImportedMemory) {
}
TEST_P(CpuVaTensorsTests, SetMultiplePageAllignedTensors) {
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
auto shape = Shape{1, 16, 16, 16};
auto shape_size = ov::shape_size(shape);
@@ -1578,7 +1553,7 @@ TEST_P(CpuVaTensorsTests, SetMultiplePageAllignedTensors) {
}
TEST_P(CpuVaTensorsTests, SetMultipleAllignedAndNotAllignedTensors) {
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
auto shape = Shape{1, 16, 16, 16};
auto shape_size = ov::shape_size(shape);
@@ -1650,7 +1625,7 @@ TEST_P(CpuVaTensorsTests, SetMultipleAllignedAndNotAllignedTensors) {
}
TEST_P(CpuVaTensorsTests, SetMultipleRemoteAllignedAndNotAllignedTensors) {
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
auto shape = Shape{1, 16, 16, 16};
auto shape_size = ov::shape_size(shape);
@@ -1787,7 +1762,7 @@ TEST_P(CpuVaTensorsTests, SetAndDestroyDifferentAlignedTensors) {
}
TEST_P(CpuVaTensorsTests, checkResultsAfterStateTensorsUseImportCpuVa0) {
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
testing::internal::Random random(1);
ov::Tensor input_tensor;
@@ -1878,7 +1853,7 @@ TEST_P(CpuVaTensorsTests, checkResultsAfterStateTensorsUseImportCpuVa0) {
}
TEST_P(CpuVaTensorsTests, checkResultsAfterStateTensorsUseImportCpuVa1) {
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
testing::internal::Random random(1);
ov::Tensor input_tensor;
diff --git a/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/io_tensor.cpp b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/io_tensor.cpp
new file mode 100644
index 00000000000..de1b8594edd
--- /dev/null
+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/io_tensor.cpp
@@ -0,0 +1,73 @@
+// Copyright (C) 2025 Intel Corporation
+// SPDX-License-Identifier: Apache-2.0
+//
+
+#include "io_tensor.hpp"
+
+#include <vector>
+
+#include "common/npu_test_env_cfg.hpp"
+#include "common/utils.hpp"
+
+namespace {
+const std::vector<ov::AnyMap> configs = {{}};
+
+const std::vector<ov::AnyMap> multiConfigs = {
+ {ov::device::priorities(ov::test::utils::DEVICE_NPU), ov::device::properties(ov::test::utils::DEVICE_NPU, {})}};
+
+const std::vector<ov::AnyMap> autoConfigs = {
+ {ov::device::priorities(ov::test::utils::DEVICE_NPU), ov::device::properties(ov::test::utils::DEVICE_NPU, {})}};
+
+const std::vector<ov::element::Type> prcs = {
+ ov::element::boolean,
+ ov::element::bf16,
+ ov::element::f16,
+ ov::element::f32,
+ ov::element::f64,
+ ov::element::i4,
+ ov::element::i8,
+ ov::element::i16,
+ ov::element::i32,
+ ov::element::i64,
+ ov::element::u1,
+ ov::element::u2,
+ ov::element::u4,
+ ov::element::u8,
+ ov::element::u16,
+ ov::element::u32,
+ ov::element::u64,
+};
+
+INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTests,
+ OVInferRequestIOTensorTestNPU,
+ ::testing::Combine(::testing::Values(ov::test::utils::DEVICE_NPU),
+ ::testing::ValuesIn(configs)),
+ InferRequestParamsAnyMapTestName::getTestCaseName);
+
+INSTANTIATE_TEST_SUITE_P(smoke_Multi_BehaviorTests,
+ OVInferRequestIOTensorTestNPU,
+ ::testing::Combine(::testing::Values(ov::test::utils::DEVICE_MULTI),
+ ::testing::ValuesIn(multiConfigs)),
+ InferRequestParamsAnyMapTestName::getTestCaseName);
+
+INSTANTIATE_TEST_SUITE_P(compatibility_smoke_BehaviorTests,
+ OVInferRequestIOTensorSetPrecisionTestNPU,
+ ::testing::Combine(::testing::ValuesIn(prcs),
+ ::testing::Values(ov::test::utils::DEVICE_NPU),
+ ::testing::ValuesIn(configs)),
+ ov::test::utils::appendPlatformTypeTestName<OVInferRequestIOTensorSetPrecisionTestNPU>);
+
+INSTANTIATE_TEST_SUITE_P(compatibility_smoke_Multi_BehaviorTests,
+ OVInferRequestIOTensorSetPrecisionTestNPU,
+ ::testing::Combine(::testing::ValuesIn(prcs),
+ ::testing::Values(ov::test::utils::DEVICE_MULTI),
+ ::testing::ValuesIn(multiConfigs)),
+ ov::test::utils::appendPlatformTypeTestName<OVInferRequestIOTensorSetPrecisionTestNPU>);
+
+INSTANTIATE_TEST_SUITE_P(compatibility_smoke_Auto_BehaviorTests,
+ OVInferRequestIOTensorSetPrecisionTestNPU,
+ ::testing::Combine(::testing::ValuesIn(prcs),
+ ::testing::Values(ov::test::utils::DEVICE_AUTO),
+ ::testing::ValuesIn(autoConfigs)),
+ ov::test::utils::appendPlatformTypeTestName<OVInferRequestIOTensorSetPrecisionTestNPU>);
+} // namespace
diff --git a/src/plugins/intel_npu/tests/functional/internal/overload/ov_infer_request/io_tensor.hpp b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/io_tensor.hpp
similarity index 94%
rename from src/plugins/intel_npu/tests/functional/internal/overload/ov_infer_request/io_tensor.hpp
rename to src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/io_tensor.hpp
index 68d2725ca5c..9564c8fcafd 100644
--- a/src/plugins/intel_npu/tests/functional/internal/overload/ov_infer_request/io_tensor.hpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/io_tensor.hpp
@@ -4,11 +4,10 @@
#pragma once
+#include <behavior/ov_infer_request/io_tensor.hpp>
#include <common_test_utils/ov_tensor_utils.hpp>
-#include "behavior/ov_infer_request/io_tensor.hpp"
-#include "common_test_utils/subgraph_builders/conv_pool_relu.hpp"
-#include "overload/overload_test_utils_npu.hpp"
+#include "common/utils.hpp"
namespace ov {
namespace test {
@@ -16,11 +15,9 @@ namespace behavior {
struct OVInferRequestIOTensorTestNPU : public OVInferRequestIOTensorTest {
void SetUp() override {
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
+
std::tie(target_device, configuration) = this->GetParam();
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
APIBaseTest::SetUp();
function = ov::test::behavior::getDefaultNGraphFunctionForTheDeviceNPU();
ov::AnyMap params;
@@ -31,7 +28,7 @@ struct OVInferRequestIOTensorTestNPU : public OVInferRequestIOTensorTest {
try {
req = execNet.create_infer_request();
} catch (const std::exception& ex) {
- FAIL() << "Can't Create Infer Requiest in SetUp \nException [" << ex.what() << "]" << std::endl;
+ FAIL() << "Can't create infer request\n" << ex.what() << "\n";
}
input = execNet.input();
output = execNet.output();
@@ -226,9 +223,10 @@ TEST_P(OVInferRequestIOTensorTestNPU, InferStaticNetworkSetChangedOutputTensorTh
struct OVInferRequestIOTensorSetPrecisionTestNPU : OVInferRequestIOTensorSetPrecisionTest {
void SetUp() override {
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
+
const ov::Shape shape = {1, 2, 32, 32};
std::tie(element_type, target_device, config) = this->GetParam();
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
APIBaseTest::SetUp();
function = ov::test::utils::make_split_concat(shape, element_type);
execNet = core->compile_model(function, target_device, config);
diff --git a/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/multithreading.cpp b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/multithreading.cpp
new file mode 100644
index 00000000000..8f3554d7c02
--- /dev/null
+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/multithreading.cpp
@@ -0,0 +1,35 @@
+// Copyright (C) 2025 Intel Corporation
+// SPDX-License-Identifier: Apache-2.0
+//
+
+#include "multithreading.hpp"
+
+#include "common/npu_test_env_cfg.hpp"
+
+namespace {
+const std::vector<ov::AnyMap> configs = {{}};
+
+const std::vector<ov::AnyMap> multiConfigs = {
+ {ov::device::priorities(ov::test::utils::DEVICE_NPU), ov::device::properties(ov::test::utils::DEVICE_NPU, {})}};
+
+const std::vector<ov::AnyMap> autoConfigs = {
+ {ov::device::priorities(ov::test::utils::DEVICE_NPU), ov::device::properties(ov::test::utils::DEVICE_NPU, {})}};
+
+INSTANTIATE_TEST_SUITE_P(compatibility_smoke_BehaviorTests,
+ OVInferRequestMultithreadingTestsNPU,
+ ::testing::Combine(::testing::Values(ov::test::utils::DEVICE_NPU),
+ ::testing::ValuesIn(configs)),
+ InferRequestParamsAnyMapTestName::getTestCaseName);
+
+INSTANTIATE_TEST_SUITE_P(compatibility_smoke_Multi_BehaviorTests,
+ OVInferRequestMultithreadingTestsNPU,
+ ::testing::Combine(::testing::Values(ov::test::utils::DEVICE_MULTI),
+ ::testing::ValuesIn(multiConfigs)),
+ InferRequestParamsAnyMapTestName::getTestCaseName);
+
+INSTANTIATE_TEST_SUITE_P(compatibility_smoke_Auto_BehaviorTests,
+ OVInferRequestMultithreadingTestsNPU,
+ ::testing::Combine(::testing::Values(ov::test::utils::DEVICE_AUTO),
+ ::testing::ValuesIn(autoConfigs)),
+ InferRequestParamsAnyMapTestName::getTestCaseName);
+} // namespace
diff --git a/src/plugins/intel_npu/tests/functional/internal/overload/ov_infer_request/multithreading.hpp b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/multithreading.hpp
similarity index 98%
rename from src/plugins/intel_npu/tests/functional/internal/overload/ov_infer_request/multithreading.hpp
rename to src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/multithreading.hpp
index 15dedc2c0c4..e4302c96eb9 100644
--- a/src/plugins/intel_npu/tests/functional/internal/overload/ov_infer_request/multithreading.hpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/multithreading.hpp
@@ -6,7 +6,7 @@
#include <future>
-#include "overload/overload_test_utils_npu.hpp"
+#include "common/utils.hpp"
namespace ov {
namespace test {
diff --git a/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/core_integration.cpp b/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/core_integration.cpp
index 7e16c48e85f..54fe457eb91 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/core_integration.cpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/core_integration.cpp
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
-#include "overload/ov_plugin/core_integration.hpp"
+#include "core_integration.hpp"
using namespace ov::test::behavior;
diff --git a/src/plugins/intel_npu/tests/functional/internal/overload/ov_plugin/core_integration.hpp b/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/core_integration.hpp
similarity index 99%
rename from src/plugins/intel_npu/tests/functional/internal/overload/ov_plugin/core_integration.hpp
rename to src/plugins/intel_npu/tests/functional/behavior/ov_plugin/core_integration.hpp
index 2e49b14dd88..1556cd273ab 100644
--- a/src/plugins/intel_npu/tests/functional/internal/overload/ov_plugin/core_integration.hpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/core_integration.hpp
@@ -6,9 +6,8 @@
#include <filesystem>
-#include "shared_test_classes/base/ov_behavior_test_utils.hpp"
#include "behavior/ov_plugin/properties_tests.hpp"
-#include "common/functions.h"
+#include "common/functions.hpp"
#include "common/npu_test_env_cfg.hpp"
#include "common/utils.hpp"
#include "common_test_utils/data_utils.hpp"
@@ -17,7 +16,7 @@
#include "common_test_utils/subgraph_builders/kso_func.hpp"
#include "common_test_utils/subgraph_builders/single_concat_with_constant.hpp"
#include "common_test_utils/subgraph_builders/split_conv_concat.hpp"
-#include "intel_npu/config/options.hpp"
+#include "shared_test_classes/base/ov_behavior_test_utils.hpp"
using CompilationParams = std::tuple<std::string, // Device name
ov::AnyMap // Config
diff --git a/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/internal_properties_tests.cpp b/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/internal_properties_tests.cpp
index c7c09a64841..c9430077c72 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/internal_properties_tests.cpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/internal_properties_tests.cpp
@@ -3,7 +3,7 @@
// SPDX-License-Identifier: Apache-2.0
//
-#include "overload/ov_plugin/internal_properties_tests.hpp"
+#include "internal_properties_tests.hpp"
#include "common/utils.hpp"
#include "intel_npu/npu_private_properties.hpp"
diff --git a/src/plugins/intel_npu/tests/functional/internal/overload/ov_plugin/internal_properties_tests.hpp b/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/internal_properties_tests.hpp
similarity index 100%
rename from src/plugins/intel_npu/tests/functional/internal/overload/ov_plugin/internal_properties_tests.hpp
rename to src/plugins/intel_npu/tests/functional/behavior/ov_plugin/internal_properties_tests.hpp
diff --git a/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/life_time.cpp b/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/life_time.cpp
index b5cdcb07be6..45ba3330ebc 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/life_time.cpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/life_time.cpp
@@ -2,11 +2,9 @@
// SPDX-License-Identifier: Apache-2.0
//
-#include "overload/ov_plugin/life_time.hpp"
+#include "life_time.hpp"
-#include "common/npu_test_env_cfg.hpp"
#include "common/utils.hpp"
-#include "intel_npu/config/options.hpp"
using namespace ov::test::behavior;
diff --git a/src/plugins/intel_npu/tests/functional/internal/overload/ov_plugin/life_time.hpp b/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/life_time.hpp
similarity index 99%
rename from src/plugins/intel_npu/tests/functional/internal/overload/ov_plugin/life_time.hpp
rename to src/plugins/intel_npu/tests/functional/behavior/ov_plugin/life_time.hpp
index a3156b4b7e0..c326f4e7d20 100644
--- a/src/plugins/intel_npu/tests/functional/internal/overload/ov_plugin/life_time.hpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/life_time.hpp
@@ -4,12 +4,11 @@
#pragma once
-#include "behavior/ov_plugin/life_time.hpp"
#include "common/npu_test_env_cfg.hpp"
#include "common/utils.hpp"
#include "common_test_utils/subgraph_builders/conv_pool_relu.hpp"
#include "intel_npu/utils/zero/zero_init.hpp"
-#include "openvino/runtime/make_tensor.hpp"
+#include "life_time.hpp"
using CompilationParams = std::tuple<std::string, // Device name
ov::AnyMap // Config
diff --git a/src/plugins/intel_npu/tests/functional/behavior/remote_tensor_tests/dma_buf_remote_run.cpp b/src/plugins/intel_npu/tests/functional/behavior/remote_tensor_tests/dma_buf_remote_run.cpp
index 1c945ab77e2..96587a45cc8 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/remote_tensor_tests/dma_buf_remote_run.cpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/remote_tensor_tests/dma_buf_remote_run.cpp
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
-#include "behavior/remote_tensor_tests/dma_buf_remote_run.hpp"
+#include "dma_buf_remote_run.hpp"
#include "common/npu_test_env_cfg.hpp"
#include "common/utils.hpp"
diff --git a/src/plugins/intel_npu/tests/functional/behavior/remote_tensor_tests/dma_buf_remote_run.hpp b/src/plugins/intel_npu/tests/functional/behavior/remote_tensor_tests/dma_buf_remote_run.hpp
index fda7d702915..8f949dcf81c 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/remote_tensor_tests/dma_buf_remote_run.hpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/remote_tensor_tests/dma_buf_remote_run.hpp
@@ -8,7 +8,6 @@
#include <gmock/gmock.h>
#include <gtest/gtest.h>
-#include "shared_test_classes/base/ov_behavior_test_utils.hpp"
#include "common/npu_test_env_cfg.hpp"
#include "common/utils.hpp"
#include "openvino/core/any.hpp"
@@ -16,7 +15,7 @@
#include "openvino/runtime/compiled_model.hpp"
#include "openvino/runtime/core.hpp"
#include "openvino/runtime/intel_npu/level_zero/level_zero.hpp"
-#include "overload/overload_test_utils_npu.hpp"
+#include "shared_test_classes/base/ov_behavior_test_utils.hpp"
#ifdef __linux__
# include <linux/version.h>
diff --git a/src/plugins/intel_npu/tests/functional/behavior/remote_tensor_tests/dx12_remote_run.cpp b/src/plugins/intel_npu/tests/functional/behavior/remote_tensor_tests/dx12_remote_run.cpp
index a9e8f75090c..ef971280d22 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/remote_tensor_tests/dx12_remote_run.cpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/remote_tensor_tests/dx12_remote_run.cpp
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
-#include "behavior/remote_tensor_tests/dx12_remote_run.hpp"
+#include "dx12_remote_run.hpp"
#include "common/npu_test_env_cfg.hpp"
#include "common/utils.hpp"
diff --git a/src/plugins/intel_npu/tests/functional/behavior/remote_tensor_tests/dx12_remote_run.hpp b/src/plugins/intel_npu/tests/functional/behavior/remote_tensor_tests/dx12_remote_run.hpp
index 997c1f99dd1..9674881e1ba 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/remote_tensor_tests/dx12_remote_run.hpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/remote_tensor_tests/dx12_remote_run.hpp
@@ -8,7 +8,6 @@
#include <gmock/gmock.h>
#include <gtest/gtest.h>
-#include "shared_test_classes/base/ov_behavior_test_utils.hpp"
#include "common/npu_test_env_cfg.hpp"
#include "common/utils.hpp"
#include "openvino/core/any.hpp"
@@ -16,7 +15,7 @@
#include "openvino/runtime/compiled_model.hpp"
#include "openvino/runtime/core.hpp"
#include "openvino/runtime/intel_npu/level_zero/level_zero.hpp"
-#include "overload/overload_test_utils_npu.hpp"
+#include "shared_test_classes/base/ov_behavior_test_utils.hpp"
#ifdef _WIN32
# ifdef ENABLE_DX12
diff --git a/src/plugins/intel_npu/tests/functional/behavior/remote_tensor_tests/remote_run.cpp b/src/plugins/intel_npu/tests/functional/behavior/remote_tensor_tests/remote_run.cpp
index 93ee3dcda4f..0780d76879f 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/remote_tensor_tests/remote_run.cpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/remote_tensor_tests/remote_run.cpp
@@ -2,11 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
-#include "behavior/remote_tensor_tests/remote_run.hpp"
-
-#include "common/npu_test_env_cfg.hpp"
-#include "common/utils.hpp"
-#include "intel_npu/config/options.hpp"
+#include "remote_run.hpp"
using namespace ov::test::behavior;
diff --git a/src/plugins/intel_npu/tests/functional/behavior/remote_tensor_tests/remote_run.hpp b/src/plugins/intel_npu/tests/functional/behavior/remote_tensor_tests/remote_run.hpp
index f424b3091f0..d1a9a3ea2f4 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/remote_tensor_tests/remote_run.hpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/remote_tensor_tests/remote_run.hpp
@@ -13,14 +13,11 @@
#include "intel_npu/utils/zero/zero_init.hpp"
#include "intel_npu/utils/zero/zero_remote_tensor.hpp"
#include "openvino/core/any.hpp"
-#include "openvino/core/type/element_iterator.hpp"
-#include "openvino/op/op.hpp"
#include "openvino/opsets/opset8.hpp"
#include "openvino/runtime/compiled_model.hpp"
#include "openvino/runtime/core.hpp"
#include "openvino/runtime/intel_npu/level_zero/level_zero.hpp"
#include "openvino/runtime/make_tensor.hpp"
-#include "overload/overload_test_utils_npu.hpp"
#include "remote_context.hpp"
#include "shared_test_classes/base/ov_behavior_test_utils.hpp"
#include "zero_backend.hpp"
@@ -78,8 +75,7 @@ public:
auto hash = std::to_string(std::hash<std::string>()(test_name));
std::stringstream ss;
auto ts = duration_cast<nanoseconds>(high_resolution_clock::now().time_since_epoch());
- ss << hash << "_"
- << "_" << ts.count();
+ ss << hash << "_" << "_" << ts.count();
return ss.str();
}
diff --git a/src/plugins/intel_npu/tests/functional/behavior/replace_sw_layers.cpp b/src/plugins/intel_npu/tests/functional/behavior/replace_sw_layers.cpp
index dcc9de1c69d..d096f4d8534 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/replace_sw_layers.cpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/replace_sw_layers.cpp
@@ -5,7 +5,7 @@
#include <string>
#include <vector>
-#include "common/functions.h"
+#include "common/functions.hpp"
#include "common/npu_test_env_cfg.hpp"
#include "common/utils.hpp"
#include "intel_npu/config/options.hpp"
diff --git a/src/plugins/intel_npu/tests/functional/behavior/weights_separation.hpp b/src/plugins/intel_npu/tests/functional/behavior/weights_separation.hpp
index 887ea4cc332..9c0a30e6d7e 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/weights_separation.hpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/weights_separation.hpp
@@ -23,7 +23,6 @@
#include "openvino/opsets/opset8.hpp"
#include "openvino/runtime/compiled_model.hpp"
#include "openvino/runtime/core.hpp"
-#include "overload/overload_test_utils_npu.hpp"
#include "shared_test_classes/base/ov_behavior_test_utils.hpp"
using CompilationParams = std::tuple<std::string, // Device name
diff --git a/src/plugins/intel_npu/tests/functional/behavior/work_with_devices.hpp b/src/plugins/intel_npu/tests/functional/behavior/work_with_devices.hpp
index 4f53b42a97a..0518449ba6d 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/work_with_devices.hpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/work_with_devices.hpp
@@ -9,7 +9,7 @@
#include <vector>
#include "shared_test_classes/base/ov_behavior_test_utils.hpp"
-#include "common/functions.h"
+#include "common/functions.hpp"
#include "common/npu_test_env_cfg.hpp"
#include "intel_npu/config/options.hpp"
#include "intel_npu/npu_private_properties.hpp"
diff --git a/src/plugins/intel_npu/tests/functional/common/functions.cpp b/src/plugins/intel_npu/tests/functional/common/functions.cpp
index ebba8f1a57e..3a18ae1ee58 100644
--- a/src/plugins/intel_npu/tests/functional/common/functions.cpp
+++ b/src/plugins/intel_npu/tests/functional/common/functions.cpp
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
-#include "functions.h"
+#include "functions.hpp"
#include "common/npu_test_env_cfg.hpp"
#include "openvino/op/softmax.hpp"
#include "openvino/opsets/opset11.hpp"
diff --git a/src/plugins/intel_npu/tests/functional/common/functions.h b/src/plugins/intel_npu/tests/functional/common/functions.hpp
similarity index 100%
rename from src/plugins/intel_npu/tests/functional/common/functions.h
rename to src/plugins/intel_npu/tests/functional/common/functions.hpp
diff --git a/src/plugins/intel_npu/tests/functional/common/utils.hpp b/src/plugins/intel_npu/tests/functional/common/utils.hpp
index 583d38abfd7..f2cd2093d77 100644
--- a/src/plugins/intel_npu/tests/functional/common/utils.hpp
+++ b/src/plugins/intel_npu/tests/functional/common/utils.hpp
@@ -4,9 +4,11 @@
#pragma once
+#include <common_test_utils/subgraph_builders/conv_pool_relu.hpp>
#include <filesystem>
#include <openvino/runtime/core.hpp>
#include <openvino/runtime/intel_npu/properties.hpp>
+#include <shared_test_classes/base/ov_behavior_test_utils.hpp>
#include "common_test_utils/unicode_utils.hpp"
#include "npu_test_env_cfg.hpp"
@@ -83,6 +85,30 @@ constexpr bool
std::declval<testing::TestParamInfo<typename T::ParamType>>()))>> =
true;
+namespace ov::test::behavior {
+inline std::shared_ptr<ov::Model> getDefaultNGraphFunctionForTheDeviceNPU(
+ std::vector<size_t> inputShape = {1, 2, 32, 32},
+ ov::element::Type_t ngPrc = ov::element::Type_t::f32) {
+ return ov::test::utils::make_conv_pool_relu(inputShape, ngPrc);
+}
+
+class OVInferRequestTestsNPU : public OVInferRequestTests {
+public:
+ void SetUp() override {
+ SKIP_IF_CURRENT_TEST_IS_DISABLED();
+
+ std::tie(target_device, configuration) = this->GetParam();
+ APIBaseTest::SetUp();
+ function = ov::test::behavior::getDefaultNGraphFunctionForTheDeviceNPU();
+ ov::AnyMap params;
+ for (auto&& v : configuration) {
+ params.emplace(v.first, v.second);
+ }
+ execNet = core->compile_model(function, target_device, params);
+ }
+};
+} // namespace ov::test::behavior
+
namespace ov {
namespace test {
diff --git a/src/plugins/intel_npu/tests/functional/internal/overload/overload_test_utils_npu.hpp b/src/plugins/intel_npu/tests/functional/internal/overload/overload_test_utils_npu.hpp
deleted file mode 100644
index 3b6c40bc1a1..00000000000
--- a/src/plugins/intel_npu/tests/functional/internal/overload/overload_test_utils_npu.hpp
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (C) 2018-2025 Intel Corporation
-// SPDX-License-Identifier: Apache-2.0
-//
-
-#include "shared_test_classes/base/ov_behavior_test_utils.hpp"
-#include "common_test_utils/subgraph_builders/conv_pool_relu.hpp"
-
-namespace ov {
-namespace test {
-namespace behavior {
-
-inline std::shared_ptr<ov::Model> getDefaultNGraphFunctionForTheDeviceNPU(
- std::vector<size_t> inputShape = {1, 2, 32, 32}, ov::element::Type_t ngPrc = ov::element::Type_t::f32) {
- return ov::test::utils::make_conv_pool_relu(inputShape, ngPrc);
-}
-
-class OVInferRequestTestsNPU : public OVInferRequestTests {
-public:
- void SetUp() override {
- std::tie(target_device, configuration) = this->GetParam();
- // Skip test according to plugin specific disabledTestPatterns() (if any)
- SKIP_IF_CURRENT_TEST_IS_DISABLED()
- APIBaseTest::SetUp();
- function = ov::test::behavior::getDefaultNGraphFunctionForTheDeviceNPU();
- ov::AnyMap params;
- for (auto&& v : configuration) {
- params.emplace(v.first, v.second);
- }
- execNet = core->compile_model(function, target_device, params);
- }
-};
-
-} // namespace behavior
-} // namespace test
-} // namespace ov
diff --git a/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/compiled_model/properties.cpp b/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/compiled_model/properties.cpp
index c7bb57e5a59..c8007c0cc46 100644
--- a/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/compiled_model/properties.cpp
+++ b/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/compiled_model/properties.cpp
@@ -4,7 +4,7 @@
#include "behavior/compiled_model/properties.hpp"
-#include "common/functions.h"
+#include "common/functions.hpp"
#include "common/npu_test_env_cfg.hpp"
#include "common/utils.hpp"
#include "intel_npu/npu_private_properties.hpp"
diff --git a/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/compiled_model/properties_hetero.cpp b/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/compiled_model/properties_hetero.cpp
index 2527150d0c0..9dab135612b 100644
--- a/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/compiled_model/properties_hetero.cpp
+++ b/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/compiled_model/properties_hetero.cpp
@@ -3,7 +3,7 @@
//
#include "behavior/compiled_model/properties_hetero.hpp"
-#include "common/functions.h"
+#include "common/functions.hpp"
#include "common/utils.hpp"
#include "common/npu_test_env_cfg.hpp"
#include "functional_test_utils/ov_plugin_cache.hpp"
diff --git a/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_infer_request/callback.cpp b/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_infer_request/callback.cpp
index 2fd9a768614..f1054b84729 100644
--- a/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_infer_request/callback.cpp
+++ b/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_infer_request/callback.cpp
@@ -2,14 +2,10 @@
// SPDX-License-Identifier: Apache-2.0
//
-#include "behavior/ov_infer_request/callback.hpp"
-
+#include <behavior/ov_infer_request/callback.hpp>
#include <vector>
#include "common/npu_test_env_cfg.hpp"
-#include "common/utils.hpp"
-#include "intel_npu/config/options.hpp"
-#include "overload/ov_infer_request/callback.hpp"
using namespace ov::test::behavior;
@@ -40,22 +36,4 @@ INSTANTIATE_TEST_SUITE_P(compatibility_smoke_Auto_BehaviorTests,
::testing::ValuesIn(autoConfigs)),
InferRequestParamsAnyMapTestName::getTestCaseName);
-INSTANTIATE_TEST_SUITE_P(compatibility_smoke_BehaviorTests,
- OVInferRequestCallbackTestsNPU,
- ::testing::Combine(::testing::Values(ov::test::utils::DEVICE_NPU),
- ::testing::ValuesIn(configs)),
- InferRequestParamsAnyMapTestName::getTestCaseName);
-
-INSTANTIATE_TEST_SUITE_P(compatibility_smoke_Multi_BehaviorTests,
- OVInferRequestCallbackTestsNPU,
- ::testing::Combine(::testing::Values(ov::test::utils::DEVICE_MULTI),
- ::testing::ValuesIn(multiConfigs)),
- InferRequestParamsAnyMapTestName::getTestCaseName);
-
-INSTANTIATE_TEST_SUITE_P(compatibility_smoke_Auto_BehaviorTests,
- OVInferRequestCallbackTestsNPU,
- ::testing::Combine(::testing::Values(ov::test::utils::DEVICE_AUTO),
- ::testing::ValuesIn(autoConfigs)),
- InferRequestParamsAnyMapTestName::getTestCaseName);
-
} // namespace
diff --git a/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_infer_request/cancellation.cpp b/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_infer_request/cancellation.cpp
index df859315096..089827fc458 100644
--- a/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_infer_request/cancellation.cpp
+++ b/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_infer_request/cancellation.cpp
@@ -2,12 +2,9 @@
// SPDX-License-Identifier: Apache-2.0
//
-#include "behavior/ov_infer_request/cancellation.hpp"
+#include <behavior/ov_infer_request/cancellation.hpp>
#include "common/npu_test_env_cfg.hpp"
-#include "common/utils.hpp"
-#include "intel_npu/config/options.hpp"
-#include "overload/ov_infer_request/cancellation.hpp"
using namespace ov::test::behavior;
@@ -20,10 +17,4 @@ INSTANTIATE_TEST_SUITE_P(compatibility_smoke_BehaviorTests,
::testing::ValuesIn(configs)),
InferRequestParamsAnyMapTestName::getTestCaseName);
-INSTANTIATE_TEST_SUITE_P(compatibility_smoke_BehaviorTests,
- OVInferRequestCancellationTestsNPU,
- ::testing::Combine(::testing::Values(ov::test::utils::DEVICE_NPU),
- ::testing::ValuesIn(configs)),
- InferRequestParamsAnyMapTestName::getTestCaseName);
-
} // namespace
diff --git a/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_infer_request/io_tensor.cpp b/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_infer_request/io_tensor.cpp
index 0a119f79799..f5635c5bed5 100644
--- a/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_infer_request/io_tensor.cpp
+++ b/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_infer_request/io_tensor.cpp
@@ -2,14 +2,11 @@
// SPDX-License-Identifier: Apache-2.0
//
-#include "behavior/ov_infer_request/io_tensor.hpp"
-
+#include <behavior/ov_infer_request/io_tensor.hpp>
#include <vector>
#include "common/npu_test_env_cfg.hpp"
#include "common/utils.hpp"
-#include "intel_npu/config/options.hpp"
-#include "overload/ov_infer_request/io_tensor.hpp"
using namespace ov::test::behavior;
@@ -34,18 +31,6 @@ INSTANTIATE_TEST_SUITE_P(smoke_Multi_BehaviorTests,
::testing::ValuesIn(multiConfigs)),
InferRequestParamsAnyMapTestName::getTestCaseName);
-INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTests,
- OVInferRequestIOTensorTestNPU,
- ::testing::Combine(::testing::Values(ov::test::utils::DEVICE_NPU),
- ::testing::ValuesIn(configs)),
- InferRequestParamsAnyMapTestName::getTestCaseName);
-
-INSTANTIATE_TEST_SUITE_P(smoke_Multi_BehaviorTests,
- OVInferRequestIOTensorTestNPU,
- ::testing::Combine(::testing::Values(ov::test::utils::DEVICE_MULTI),
- ::testing::ValuesIn(multiConfigs)),
- InferRequestParamsAnyMapTestName::getTestCaseName);
-
INSTANTIATE_TEST_SUITE_P(smoke_Auto_BehaviorTests,
OVInferRequestIOTensorTest,
::testing::Combine(::testing::Values(ov::test::utils::DEVICE_AUTO),
@@ -93,27 +78,6 @@ INSTANTIATE_TEST_SUITE_P(compatibility_smoke_Auto_BehaviorTests,
::testing::ValuesIn(autoConfigs)),
ov::test::utils::appendPlatformTypeTestName<OVInferRequestIOTensorSetPrecisionTest>);
-INSTANTIATE_TEST_SUITE_P(compatibility_smoke_BehaviorTests,
- OVInferRequestIOTensorSetPrecisionTestNPU,
- ::testing::Combine(::testing::ValuesIn(prcs),
- ::testing::Values(ov::test::utils::DEVICE_NPU),
- ::testing::ValuesIn(configs)),
- ov::test::utils::appendPlatformTypeTestName<OVInferRequestIOTensorSetPrecisionTestNPU>);
-
-INSTANTIATE_TEST_SUITE_P(compatibility_smoke_Multi_BehaviorTests,
- OVInferRequestIOTensorSetPrecisionTestNPU,
- ::testing::Combine(::testing::ValuesIn(prcs),
- ::testing::Values(ov::test::utils::DEVICE_MULTI),
- ::testing::ValuesIn(multiConfigs)),
- ov::test::utils::appendPlatformTypeTestName<OVInferRequestIOTensorSetPrecisionTestNPU>);
-
-INSTANTIATE_TEST_SUITE_P(compatibility_smoke_Auto_BehaviorTests,
- OVInferRequestIOTensorSetPrecisionTestNPU,
- ::testing::Combine(::testing::ValuesIn(prcs),
- ::testing::Values(ov::test::utils::DEVICE_AUTO),
- ::testing::ValuesIn(autoConfigs)),
- ov::test::utils::appendPlatformTypeTestName<OVInferRequestIOTensorSetPrecisionTestNPU>);
-
INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTests,
OVInferRequestCheckTensorPrecision,
::testing::Combine(::testing::ValuesIn(prcs),
diff --git a/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_infer_request/multithreading.cpp b/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_infer_request/multithreading.cpp
index ac0038aa380..b3b65268a06 100644
--- a/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_infer_request/multithreading.cpp
+++ b/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_infer_request/multithreading.cpp
@@ -2,14 +2,10 @@
// SPDX-License-Identifier: Apache-2.0
//
-#include "behavior/ov_infer_request/multithreading.hpp"
-
+#include <behavior/ov_infer_request/multithreading.hpp>
#include <vector>
#include "common/npu_test_env_cfg.hpp"
-#include "common/utils.hpp"
-#include "intel_npu/config/options.hpp"
-#include "overload/ov_infer_request/multithreading.hpp"
using namespace ov::test::behavior;
@@ -40,22 +36,4 @@ INSTANTIATE_TEST_SUITE_P(compatibility_smoke_Auto_BehaviorTests,
::testing::ValuesIn(autoConfigs)),
InferRequestParamsAnyMapTestName::getTestCaseName);
-INSTANTIATE_TEST_SUITE_P(compatibility_smoke_BehaviorTests,
- OVInferRequestMultithreadingTestsNPU,
- ::testing::Combine(::testing::Values(ov::test::utils::DEVICE_NPU),
- ::testing::ValuesIn(configs)),
- InferRequestParamsAnyMapTestName::getTestCaseName);
-
-INSTANTIATE_TEST_SUITE_P(compatibility_smoke_Multi_BehaviorTests,
- OVInferRequestMultithreadingTestsNPU,
- ::testing::Combine(::testing::Values(ov::test::utils::DEVICE_MULTI),
- ::testing::ValuesIn(multiConfigs)),
- InferRequestParamsAnyMapTestName::getTestCaseName);
-
-INSTANTIATE_TEST_SUITE_P(compatibility_smoke_Auto_BehaviorTests,
- OVInferRequestMultithreadingTestsNPU,
- ::testing::Combine(::testing::Values(ov::test::utils::DEVICE_AUTO),
- ::testing::ValuesIn(autoConfigs)),
- InferRequestParamsAnyMapTestName::getTestCaseName);
-
} // namespace
diff --git a/src/plugins/intel_npu/tests/functional/shared_tests_instances/skip_tests_config.cpp b/src/plugins/intel_npu/tests/functional/shared_tests_instances/skip_tests_config.cpp
index 0ccc7109c51..47496a157f1 100644
--- a/src/plugins/intel_npu/tests/functional/shared_tests_instances/skip_tests_config.cpp
+++ b/src/plugins/intel_npu/tests/functional/shared_tests_instances/skip_tests_config.cpp
@@ -9,7 +9,7 @@
#include <string>
#include <vector>
-#include "common/functions.h"
+#include "common/functions.hpp"
#include "common/npu_test_env_cfg.hpp"
#include "common/utils.hpp"
#include "common_test_utils/common_utils.hpp"