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 4
4
"""Rules for running lit tests."""
5
5
6
6
load ("@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" )
8
8
9
9
def lit_test (
10
10
name ,
11
11
srcs ,
12
12
args = None ,
13
13
data = None ,
14
14
deps = None ,
15
+ py_test = _py_test ,
15
16
** kwargs ):
16
17
"""Runs a single test file with LLVM's lit tool.
17
18
@@ -22,6 +23,8 @@ def lit_test(
22
23
Note that `-v` and the 'srcs' paths are added automatically.
23
24
data: label list. Additional data dependencies of the test.
24
25
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.
25
28
**kwargs: additional keyword arguments.
26
29
27
30
See https://llvm.org/docs/CommandGuide/lit.html for details on lit.
You can’t perform that action at this time.
0 commit comments