File tree Expand file tree Collapse file tree 3 files changed +29
-4
lines changed Expand file tree Collapse file tree 3 files changed +29
-4
lines changed Original file line number Diff line number Diff line change @@ -12,4 +12,11 @@ test_suite(
12
12
":tests" ,
13
13
"//tests/accuracy:test_accuracy"
14
14
]
15
+ )
16
+
17
+ test_suite (
18
+ name = "python_api_tests" ,
19
+ tests = [
20
+ "//tests/py:test_api"
21
+ ]
15
22
)
Original file line number Diff line number Diff line change
1
+ config_setting (
2
+ name = "use_pre_cxx11_abi" ,
3
+ values = {
4
+ "define" : "abi=pre_cxx11_abi" ,
5
+ }
6
+ )
7
+
1
8
def converter_test (name , visibility = None ):
2
9
native .cc_test (
3
10
name = name ,
@@ -6,8 +13,10 @@ def converter_test(name, visibility=None):
6
13
deps = [
7
14
"//tests/util" ,
8
15
"//core" ,
9
- "@libtorch//:libtorch" ,
10
16
"@googletest//:gtest_main" ,
11
- ],
17
+ ] + select ({
18
+ ":use_pre_cxx11_abi" : ["@libtorch_pre_cxx11_abi//:libtorch" ],
19
+ "//conditions:default" : ["@libtorch//:libtorch" ],
20
+ }),
12
21
timeout = "short"
13
22
)
Original file line number Diff line number Diff line change
1
+ config_setting (
2
+ name = "use_pre_cxx11_abi" ,
3
+ values = {
4
+ "define" : "abi=pre_cxx11_abi" ,
5
+ }
6
+ )
7
+
1
8
filegroup (
2
9
name = "jit_models" ,
3
10
srcs = glob (["**/*.jit.pt" ])
@@ -51,7 +58,9 @@ cc_library(
51
58
deps = [
52
59
"//cpp/api:trtorch" ,
53
60
"//tests/util" ,
54
- "@libtorch//:libtorch" ,
55
61
"@googletest//:gtest_main" ,
56
- ],
62
+ ] + select ({
63
+ ":use_pre_cxx11_abi" : ["@libtorch_pre_cxx11_abi//:libtorch" ],
64
+ "//conditions:default" : ["@libtorch//:libtorch" ],
65
+ }),
57
66
)
You can’t perform that action at this time.
0 commit comments