aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/bash/runfiles/BUILD
blob: ed2d30fdb89042eb894c06cfd9fb2e1627638383 (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
51
52
53
package(default_visibility = ["//visibility:private"])

filegroup(
    name = "srcs",
    srcs = glob(
        ["**"],
        exclude = [
            "*~",
            ".*",
        ],
    ),
    visibility = ["//tools/bash:__pkg__"],
)

filegroup(
    name = "embedded_tools",
    srcs = [
        "BUILD.tools",
        "runfiles.bash",
    ],
    visibility = ["//tools/bash:__pkg__"],
)

sh_library(
    name = "runfiles_lib",
    testonly = 1,
    srcs = ["runfiles.bash"],
    # TODO(laszlocsomor): remove this visibility after the tests under
    # //src/test/shell/... depend on @bazel_tools//tools/bash/runfiles
    visibility = ["//src/test/shell:__subpackages__"],
)

sh_test(
    name = "runfiles_test",
    srcs = ["runfiles_test.bash"],
    deps = [":runfiles_lib"],
)

test_suite(
    name = "windows_tests",
    tags = [
        "-no_windows",
        "-slow",
    ],
)

test_suite(
    name = "all_windows_tests",
    tests = [
        ":windows_tests",
    ],
    visibility = ["//src:__pkg__"],
)