...

Text file src/edge-infra.dev/pkg/edge/datasync/controllers/couchctl/test_runner/BUILD.bazel

Documentation: edge-infra.dev/pkg/edge/datasync/controllers/couchctl/test_runner

     1load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
     2load("//hack/build/rules/container:index.bzl", "container_push", "go_oci_image")
     3
     4go_library(
     5    name = "test_runner_lib",
     6    testonly = True,
     7    srcs = ["main.go"],
     8    data = ["//pkg/edge/datasync/controllers/couchctl:couchctl_test"],
     9    importpath = "edge-infra.dev/pkg/edge/datasync/controllers/couchctl/test_runner",
    10    visibility = ["//visibility:private"],
    11    deps = [
    12        "//pkg/lib/build/bazel",
    13        "@io_bazel_rules_go//go/runfiles:go_default_library",
    14    ],
    15)
    16
    17go_binary(
    18    name = "test_runner",
    19    testonly = True,
    20    embed = [":test_runner_lib"],
    21    visibility = ["//visibility:public"],
    22)
    23
    24go_oci_image(
    25    name = "couchctl_test_runner_container",
    26    testonly = True,
    27    embed = [":test_runner_lib"],
    28    # data = [
    29    # TODO: only bring test binaries with us for container packaging, otherwise
    30    # use bazel
    31    # ],
    32    tags = [
    33        "manual",
    34        "no-remote-cache",
    35    ],
    36)
    37
    38container_push(
    39    name = "container_push",
    40    testonly = True,
    41    image = ":couchctl_test_runner_container",
    42    image_name = "couchctl_test_runner",
    43    repository_file = "//hack/build/rules/container:workloads-repo",
    44)

View as plain text