blob: 730dda3b1501ad513dc2acf4b3228f72fe92bee7 [file] [log] [blame]
load("@rules_cc//cc:defs.bzl", "cc_test")
package(
default_visibility = ["//src:__subpackages__"],
)
filegroup(
name = "srcs",
srcs = glob(["**"]),
visibility = ["//src:__subpackages__"],
)
cc_test(
name = "process-tools_test",
srcs = ["process-tools_test.cc"] + select({
"//src/conditions:darwin": ["process-tools-darwin_test.cc"],
"//conditions:default": ["process-tools-linux_test.cc"],
}),
deps = [
"//src/main/tools:process-tools",
"@com_google_googletest//:gtest_main",
],
)
sh_test(
name = "daemonize_test",
srcs = ["daemonize_test.sh"],
data = ["//src/main/tools:daemonize"],
deps = [
"//src/test/shell:bashunit",
"@bazel_tools//tools/bash/runfiles",
],
)