Skip to content

Commit 03e6551

Browse files
committed
Add platform to test name
1 parent 2365f15 commit 03e6551

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/plugins/intel_npu/tests/unit/npu/offline_compilation.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ using namespace ov::intel_npu;
1717
using namespace ov::test::utils;
1818

1919
class OfflineCompilationUnitTests : public ::testing::TestWithParam<std::string_view> {
20+
public:
21+
static std::string getTestCaseName(const testing::TestParamInfo<ParamType>& info) {
22+
return std::string(info.param);
23+
}
24+
2025
protected:
2126
void SetUp() override {
2227
std::vector<std::string> availableDevices = core.get_available_devices();
@@ -31,6 +36,7 @@ TEST_P(OfflineCompilationUnitTests, CompileWithCiPWhenDriverNotInstalledSetPrope
3136
const auto platform = GetParam();
3237

3338
ov::AnyMap config;
39+
config[ov::intel_npu::compiler_type.name()] = ov::intel_npu::CompilerType::PLUGIN;
3440
config[ov::intel_npu::platform.name()] = platform;
3541
core.set_property(DEVICE_NPU, config);
3642

@@ -42,6 +48,7 @@ TEST_P(OfflineCompilationUnitTests, CompileWithCiPWhenDriverNotInstalled) {
4248
const auto platform = GetParam();
4349

4450
ov::AnyMap config;
51+
config[ov::intel_npu::compiler_type.name()] = ov::intel_npu::CompilerType::PLUGIN;
4552
config[ov::intel_npu::platform.name()] = platform;
4653

4754
std::shared_ptr<ov::Model> model = ov::test::utils::make_multi_single_conv();
@@ -50,7 +57,9 @@ TEST_P(OfflineCompilationUnitTests, CompileWithCiPWhenDriverNotInstalled) {
5057

5158
INSTANTIATE_TEST_SUITE_P(OfflineCompilationPlatforms,
5259
OfflineCompilationUnitTests,
53-
::testing::Values(ov::intel_npu::Platform::NPU5010, ov::intel_npu::Platform::NPU5020));
60+
::testing::Values(ov::intel_npu::Platform::NPU5010,
61+
ov::intel_npu::Platform::NPU5020),
62+
OfflineCompilationUnitTests::getTestCaseName);
5463

5564
using UnavailableDeviceTests = ::testing::Test;
5665

0 commit comments

Comments
 (0)