aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/build_defs/hash/BUILD
blob: ea90ca7d58babe2732d4126b5b46b38547503dfe (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
licenses(["notice"])  # Apache 2.0

filegroup(
    name = "srcs",
    srcs = glob(["**"]),
    visibility = ["//tools/build_defs:__pkg__"],
)

exports_files(
    ["README.md"],
    visibility = ["//site:__pkg__"],
)

py_binary(
    name = "sha256",
    srcs = ["sha256.py"],
    visibility = ["//visibility:public"],
)

exports_files(
    ["hash.bzl"],
    visibility = ["//visibility:public"],
)

sh_test(
    name = "sha256_test",
    size = "small",
    srcs = ["sha256_test.sh"],
    data = ["sha256"],
    # TODO(laszlocsomor): use the runfiles library after
    # https://github.com/bazelbuild/bazel/issues/4460 is fixed for sh_*
    tags = ["no_windows"],
)

test_suite(
    name = "windows_tests",
    tags = [
        "-no_windows",
        "-slow",
    ],
    visibility = ["//visibility:private"],
)

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