Skip to content

Commit

Permalink
bazel: build subprocess_test
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed Jan 31, 2024
1 parent caf370e commit b65c8d3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -111,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 b65c8d3

Please sign in to comment.