aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/shell/BUILD
blob: e6fa79c16a357b5c75e5dd0b2cf1904b65b8d3c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package(default_visibility = ["//visibility:private"])

exports_files([
    "bin/bazel",
    "testenv.sh",
    "integration_test_setup.sh",
    "sandboxing_test_utils.sh",
    "unittest.bash",
])

filegroup(
    name = "srcs",
    srcs = glob(["**"]) + [
        "//src/test/shell/bazel:srcs",
        "//src/test/shell/integration:srcs",
    ],
    visibility = ["//src:__pkg__"],
)

sh_library(
    name = "bashunit",
    srcs = ["unittest.bash"],
    data = [
        "testenv.sh",
        "//tools:test_sharding_compliant",
    ],
    visibility = ["//visibility:public"],
)

sh_test(
    name = "bashunit_test",
    srcs = ["unittest_test.sh"],
    data = [":bashunit"],
)

sh_library(
    name = "shell_utils",
    srcs = ["shell_utils.sh"],
    visibility = ["//src/test/shell/integration:__pkg__"],
)

sh_test(
    name = "shell_utils_test",
    srcs = ["shell_utils_test.sh"],
    data = [
        "testenv.sh",
        ":bashunit",
        ":shell_utils",
    ],
)