diff options
author | Adin Scannell <ascannell@google.com> | 2020-07-23 18:00:12 -0700 |
---|---|---|
committer | Adin Scannell <ascannell@google.com> | 2020-07-23 18:00:12 -0700 |
commit | ab0262bd94c25bc91d5e0d831b75729c253dfde6 (patch) | |
tree | a4a75c66b92b136ed1e250b4b9641a15808bf123 /tools/go_generics/BUILD | |
parent | 14839e027f5310346718aea385cea5e45f017170 (diff) |
Convert go_generics tests to starlark.
For some reason these tests were broken when run via the bazel docker
container. The mechanism used was a bit crazy (self-extracting bundle),
so convert them to use straight-forward starlark rules. This has the
added advantaged that they are now independent tests.
Diffstat (limited to 'tools/go_generics/BUILD')
-rw-r--r-- | tools/go_generics/BUILD | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tools/go_generics/BUILD b/tools/go_generics/BUILD index 32a949c93..558826bf1 100644 --- a/tools/go_generics/BUILD +++ b/tools/go_generics/BUILD @@ -12,27 +12,3 @@ go_binary( visibility = ["//:sandbox"], deps = ["//tools/go_generics/globals"], ) - -genrule( - name = "go_generics_tests", - srcs = glob(["generics_tests/**"]) + [":go_generics"], - outs = ["go_generics_tests.tgz"], - cmd = "tar -czvhf $@ $(SRCS)", -) - -genrule( - name = "go_generics_test_bundle", - srcs = [ - ":go_generics_tests.tgz", - ":go_generics_unittest.sh", - ], - outs = ["go_generics_test.sh"], - cmd = "cat $(location :go_generics_unittest.sh) $(location :go_generics_tests.tgz) > $@", - executable = True, -) - -sh_test( - name = "go_generics_test", - size = "small", - srcs = ["go_generics_test.sh"], -) |