forked from tensorflow/tensorflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
129 lines (116 loc) · 3.19 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Apache 2.0
exports_files(["LICENSE"])
load("//tensorflow:tensorflow.bzl", "tf_py_test")
load("//tensorflow:tensorflow.bzl", "tf_cc_shared_object")
load("//tensorflow/core:platform/default/build_config_root.bzl", "if_static")
load("//tensorflow/core:platform/default/build_config.bzl", "tf_proto_library")
tf_py_test(
name = "decode_proto_op_test",
size = "small",
srcs = ["decode_proto_op_test.py"],
additional_deps = [
":decode_proto_op_test_base",
":py_test_deps",
"//tensorflow/contrib/proto:proto",
"//tensorflow/contrib/proto/python/ops:decode_proto_op_py",
],
data = if_static(
[],
otherwise = [":libtestexample.so"],
),
tags = [
"no_pip", # TODO(b/78026780)
"no_windows", # TODO(b/78028010)
],
)
tf_py_test(
name = "encode_proto_op_test",
size = "small",
srcs = ["encode_proto_op_test.py"],
additional_deps = [
":encode_proto_op_test_base",
":py_test_deps",
"//tensorflow/contrib/proto:proto",
"//tensorflow/contrib/proto/python/ops:decode_proto_op_py",
"//tensorflow/contrib/proto/python/ops:encode_proto_op_py",
],
data = if_static(
[],
otherwise = [":libtestexample.so"],
),
tags = [
"no_pip", # TODO(b/78026780)
"no_windows", # TODO(b/78028010)
],
)
py_library(
name = "proto_op_test_base",
testonly = 1,
srcs = ["proto_op_test_base.py"],
deps = [
":test_example_proto_py",
"//tensorflow/python:client_testlib",
],
)
py_library(
name = "decode_proto_op_test_base",
testonly = 1,
srcs = ["decode_proto_op_test_base.py"],
deps = [
":proto_op_test_base",
":test_example_proto_py",
"//third_party/py/numpy",
"@absl_py//absl/testing:parameterized",
],
)
py_library(
name = "encode_proto_op_test_base",
testonly = 1,
srcs = ["encode_proto_op_test_base.py"],
deps = [
":proto_op_test_base",
":test_example_proto_py",
"//third_party/py/numpy",
"@absl_py//absl/testing:parameterized",
],
)
py_library(name = "py_test_deps")
tf_proto_library(
name = "test_example_proto",
srcs = ["test_example.proto"],
cc_api_version = 2,
protodeps = ["//tensorflow/core:protos_all"],
)
tf_cc_shared_object(
name = "libtestexample.so",
linkstatic = 1,
deps = [
":test_example_proto_cc",
],
)
py_library(
name = "descriptor_source_test_base",
testonly = 1,
srcs = ["descriptor_source_test_base.py"],
deps = [
":proto_op_test_base",
"//third_party/py/numpy",
"@absl_py//absl/testing:parameterized",
"@com_google_protobuf//:protobuf_python",
],
)
tf_py_test(
name = "descriptor_source_test",
size = "small",
srcs = ["descriptor_source_test.py"],
additional_deps = [
":descriptor_source_test_base",
"//tensorflow/contrib/proto/python/ops:decode_proto_op_py",
"//tensorflow/contrib/proto/python/ops:encode_proto_op_py",
"//tensorflow/python:client_testlib",
],
tags = [
"no_pip",
],
)