mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Previously, we were using 8.0.0rc1. In particular, this upgrade means we need to explicitly import more rules, as they've been moved out of the core bazel repo.
28 lines
544 B
Python
28 lines
544 B
Python
load("@rules_python//python:defs.bzl", "py_library", "py_test")
|
|
|
|
py_library(
|
|
name = "utils",
|
|
srcs = ["utils.py"],
|
|
)
|
|
|
|
[
|
|
py_test(
|
|
name = "test_%s" % test[:test.find("/")],
|
|
size = "small",
|
|
srcs = [test],
|
|
args = [
|
|
"$(location //swift/tools:qltest)",
|
|
],
|
|
data = [
|
|
"//swift/tools:qltest",
|
|
] + glob([test.replace("test.py", "*")]),
|
|
main = test,
|
|
deps = [":utils"],
|
|
)
|
|
for test in glob(["*/test.py"])
|
|
]
|
|
|
|
test_suite(
|
|
name = "qltest",
|
|
)
|