| "//tools/build_rules:test_rules.bzl", |
| package(default_visibility = ["//src:__subpackages__"]) |
| srcs = glob(["**"]) + ["//src/test/starlark/skylint:srcs"], |
| name = "starlark_test_" + test_file.replace(".", "_"), |
| "//src/main/java/com/google/devtools/starlark:Starlark", |
| main = "starlark_test.py", |
| for test_file in glob(["testdata/*"]) |
| ## Rest of the file should be moved somewhere else (under bazel/tools/). |
| cmd = "echo 48.9994 > $(location :g1) ; echo 97.9989 > $(location :g2)", |
| name = "assert_tone_below_1", |
| name = "question_content", |
| content = ("If you could ask a unique question to a computer during a Turing test, " + |
| "what would you ask?\n"), |
| name = "question_regexp", |
| regexp = "[eu]n[uchs questi]\\+on", |
| name = "question_regexp_1", |
| regexp = "what would you ask", |