forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
103 lines (91 loc) · 2.16 KB
/
BUILD.bazel
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
# -*- python -*-
load(
"@drake//tools/skylark:drake_cc.bzl",
"drake_cc_googletest",
"drake_cc_library",
"drake_cc_package_library",
)
load(
"@drake//tools/skylark:drake_py.bzl",
"drake_py_binary",
"drake_py_library",
"drake_py_unittest",
)
load("@drake//tools/install:install.bzl", "install")
load("//tools/lint:lint.bzl", "add_lint_tests")
package(default_visibility = ["//visibility:public"])
drake_cc_package_library(
name = "proto",
visibility = ["//visibility:public"],
deps = [
":call_python",
":rpc_pipe_temp_directory",
],
)
drake_cc_library(
name = "call_python",
srcs = ["call_python.cc"],
hdrs = ["call_python.h"],
deps = [
":rpc_pipe_temp_directory",
"//common:essential",
"//lcmtypes:call_python",
],
)
drake_py_library(
name = "call_python_client",
srcs = ["call_python_client.py"],
imports = ["."],
deps = [
"//lcmtypes:lcmtypes_drake_py",
],
)
drake_py_binary(
name = "call_python_client_cli",
srcs = ["call_python_client.py"],
main = "call_python_client.py",
deps = [
":call_python_client",
],
)
drake_cc_library(
name = "rpc_pipe_temp_directory",
srcs = ["rpc_pipe_temp_directory.cc"],
hdrs = ["rpc_pipe_temp_directory.h"],
visibility = ["//visibility:private"],
interface_deps = [],
deps = [
"//common:essential",
],
)
# === test/ ===
drake_cc_googletest(
name = "call_python_server_test",
tags = ["manual"],
deps = [
":call_python",
],
)
# TODO(eric.cousineau): Add a test which will use an interactive matplotlib
# backend on CI only.
drake_py_unittest(
name = "call_python_test",
size = "small",
data = [
":call_python_client_cli",
":call_python_server_test",
],
# TODO(eric.cousineau): Find the source of sporadic CI failures.
flaky = 1,
# We wish to access neighboring files.
isolate = 0,
# Fails when run under Valgrind tools.
tags = ["no_valgrind_tools"],
)
drake_cc_googletest(
name = "rpc_pipe_temp_directory_test",
deps = [
":rpc_pipe_temp_directory",
],
)
add_lint_tests()