Skip to content

Commit 046ea28

Browse files
authored
Merge pull request #45 from etas-contrib/feature/add-test-actions
Update workflow to include unit tests
2 parents 8a7b418 + 3d69487 commit 046ea28

7 files changed

Lines changed: 16 additions & 45 deletions

File tree

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ on:
1919
types: [checks_requested]
2020
jobs:
2121
test:
22+
name: "Run tests"
2223
uses: eclipse-score/cicd-workflows/.github/workflows/tests.yml@main
2324
permissions:
2425
contents: read

BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ copyright_checker(
2525
srcs = [
2626
"examples",
2727
"src",
28-
"tests",
2928
"//:BUILD",
3029
"//:MODULE.bazel",
3130
],

src/launch_manager_daemon/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ cc_binary_with_common_opts(
5454

5555
cc_library(
5656
name = "headers",
57+
testonly = True,
5758
hdrs = glob(
5859
[
5960
"src/**/*.h",
@@ -65,7 +66,6 @@ cc_library(
6566
"include",
6667
"src",
6768
],
68-
visibility = ["//tests:__subpackages__"],
6969
deps = [
7070
# Must match launch_manager deps
7171
":config",

src/launch_manager_daemon/process_state_client_lib/BUILD

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
#
1111
# SPDX-License-Identifier: Apache-2.0
1212
# *******************************************************************************
13-
package(default_visibility = ["//tests:__subpackages__"])
14-
1513
cc_library(
1614
name = "process_state_client",
1715
srcs = [
@@ -40,6 +38,7 @@ cc_library(
4038

4139
cc_library(
4240
name = "headers",
41+
testonly = True,
4342
hdrs = glob(
4443
[
4544
"include/score/lcm/**/*.h",
@@ -51,7 +50,6 @@ cc_library(
5150
"include",
5251
"src",
5352
],
54-
visibility = ["//tests:__subpackages__"],
5553
deps = [
5654
# Must match process_state_client deps
5755
"//externals/ipc_dropin",
@@ -63,3 +61,16 @@ cc_library(
6361
"@score_baselibs//score/result",
6462
],
6563
)
64+
65+
cc_test(
66+
name = "processstateclient_UT",
67+
srcs = [
68+
"src/processstateclient_UT.cpp",
69+
"//src/launch_manager_daemon/process_state_client_lib:src/processstatenotifier.cpp",
70+
"//src/launch_manager_daemon/process_state_client_lib:src/processstatereceiver.cpp",
71+
],
72+
deps = [
73+
"//src/launch_manager_daemon/process_state_client_lib:headers",
74+
"@googletest//:gtest_main",
75+
],
76+
)

tests/ut/processstateclient_UT/processstateclient_UT.cpp renamed to src/launch_manager_daemon/process_state_client_lib/src/processstateclient_UT.cpp

File renamed without changes.

tests/ut/BUILD

Lines changed: 0 additions & 15 deletions
This file was deleted.

tests/ut/processstateclient_UT/BUILD

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)