Skip to content

Commit

Permalink
bazel: build and test subprocess functionality (#123)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll authored Feb 6, 2024
1 parent 56b4f13 commit f928192
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ gz_export_header(
public_headers_no_gen = glob([
"include/gz/utils/*.hh",
"include/gz/utils/detail/*.hh",
"include/gz/utils/detail/*.h",
])

gz_include_header(
Expand Down Expand Up @@ -110,3 +111,23 @@ cc_test(
"@gtest//:gtest_main",
],
)

cc_binary(
name = "subprocess_main",
srcs = ["test/integration/subprocess/subprocess_main.cc"],
deps = [
GZ_ROOT + "utils/cli",
]
)

cc_test(
name = "subprocess_TEST",
srcs = ["test/integration/subprocess_TEST.cc"],
deps = [
":utils",
":subprocess_main",
"@gtest",
"@gtest//:gtest_main",
],
local_defines = ['SUBPROCESS_EXECUTABLE_PATH=\\"utils/subprocess_main\\"'],
)

0 comments on commit f928192

Please sign in to comment.