From 64650244f668a9d8cf88266ccd4fe660b24e2912 Mon Sep 17 00:00:00 2001 From: William Roebuck <244554584+WilliamRoebuck@users.noreply.github.com> Date: Wed, 25 Feb 2026 11:33:26 +0000 Subject: [PATCH 1/2] move unit test --- src/launch_manager_daemon/common/BUILD | 13 ++++++++++ .../common/src}/identifier_hash_UT.cpp | 0 tests/ut/identifier_hash_UT/BUILD | 24 ------------------- 3 files changed, 13 insertions(+), 24 deletions(-) rename {tests/ut/identifier_hash_UT => src/launch_manager_daemon/common/src}/identifier_hash_UT.cpp (100%) delete mode 100644 tests/ut/identifier_hash_UT/BUILD diff --git a/src/launch_manager_daemon/common/BUILD b/src/launch_manager_daemon/common/BUILD index dd71a42c..27ed59fe 100644 --- a/src/launch_manager_daemon/common/BUILD +++ b/src/launch_manager_daemon/common/BUILD @@ -101,3 +101,16 @@ cc_library( ":osal", ], ) + +# TESTS +load("@rules_cc//cc:defs.bzl", "cc_test") + +cc_test( + name = "identifier_hash_UT", + srcs = ["src/identifier_hash_UT.cpp"], + visibility = ["//tests:__subpackages__"], + deps = [ + ":identifier_hash", + "@googletest//:gtest_main", + ], +) \ No newline at end of file diff --git a/tests/ut/identifier_hash_UT/identifier_hash_UT.cpp b/src/launch_manager_daemon/common/src/identifier_hash_UT.cpp similarity index 100% rename from tests/ut/identifier_hash_UT/identifier_hash_UT.cpp rename to src/launch_manager_daemon/common/src/identifier_hash_UT.cpp diff --git a/tests/ut/identifier_hash_UT/BUILD b/tests/ut/identifier_hash_UT/BUILD deleted file mode 100644 index 866eedda..00000000 --- a/tests/ut/identifier_hash_UT/BUILD +++ /dev/null @@ -1,24 +0,0 @@ -# ******************************************************************************* -# Copyright (c) 2026 Contributors to the Eclipse Foundation -# -# See the NOTICE file(s) distributed with this work for additional -# information regarding copyright ownership. -# -# This program and the accompanying materials are made available under the -# terms of the Apache License Version 2.0 which is available at -# https://www.apache.org/licenses/LICENSE-2.0 -# -# SPDX-License-Identifier: Apache-2.0 -# ******************************************************************************* - -load("@rules_cc//cc:defs.bzl", "cc_test") - -cc_test( - name = "identifier_hash_UT", - srcs = ["identifier_hash_UT.cpp"], - visibility = ["//tests:__subpackages__"], - deps = [ - "//src/launch_manager_daemon/common:identifier_hash", - "@googletest//:gtest_main", - ], -) From c2b3e4ed2ed93a74df04441e0ebdece44cec9b6a Mon Sep 17 00:00:00 2001 From: William Roebuck <244554584+WilliamRoebuck@users.noreply.github.com> Date: Wed, 25 Feb 2026 11:36:53 +0000 Subject: [PATCH 2/2] Formatting --- src/launch_manager_daemon/common/BUILD | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/launch_manager_daemon/common/BUILD b/src/launch_manager_daemon/common/BUILD index 27ed59fe..d65e43a9 100644 --- a/src/launch_manager_daemon/common/BUILD +++ b/src/launch_manager_daemon/common/BUILD @@ -1,5 +1,5 @@ # ******************************************************************************* -# Copyright (c) 2025 Contributors to the Eclipse Foundation +# Copyright (c) 2026 Contributors to the Eclipse Foundation # # See the NOTICE file(s) distributed with this work for additional # information regarding copyright ownership. @@ -10,6 +10,7 @@ # # SPDX-License-Identifier: Apache-2.0 # ******************************************************************************* +load("@rules_cc//cc:defs.bzl", "cc_test") load("//config:common_cc.bzl", "cc_binary_with_common_opts", "cc_library_with_common_opts") cc_library( @@ -102,9 +103,6 @@ cc_library( ], ) -# TESTS -load("@rules_cc//cc:defs.bzl", "cc_test") - cc_test( name = "identifier_hash_UT", srcs = ["src/identifier_hash_UT.cpp"], @@ -113,4 +111,4 @@ cc_test( ":identifier_hash", "@googletest//:gtest_main", ], -) \ No newline at end of file +)