File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
utils/bazel/llvm-project-overlay/llvm Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 44"""Rules for running lit tests."""
55
66load ("@bazel_skylib//lib:paths.bzl" , "paths" )
7- load ("@rules_python//python:defs.bzl" , "py_test" )
7+ load ("@rules_python//python:defs.bzl" , _py_test = "py_test" )
88
99def lit_test (
1010 name ,
1111 srcs ,
1212 args = None ,
1313 data = None ,
1414 deps = None ,
15+ py_test = _py_test ,
1516 ** kwargs ):
1617 """Runs a single test file with LLVM's lit tool.
1718
@@ -22,6 +23,8 @@ def lit_test(
2223 Note that `-v` and the 'srcs' paths are added automatically.
2324 data: label list. Additional data dependencies of the test.
2425 Note that 'srcs' targets are added automatically.
26+ deps: label list. List of targets the test depends on.
27+ py_test: function. The py_test rule to use for the underlying test.
2528 **kwargs: additional keyword arguments.
2629
2730 See https://llvm.org/docs/CommandGuide/lit.html for details on lit.
You can’t perform that action at this time.
0 commit comments