-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
BUILD.bazel
78 lines (69 loc) · 1.55 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
load("//tools/lint:lint.bzl", "add_lint_tests")
load(
"//tools/skylark:drake_cc.bzl",
"drake_cc_googletest",
"drake_cc_library",
"drake_cc_package_library",
)
package(default_visibility = ["//visibility:public"])
drake_cc_package_library(
name = "test_utilities",
testonly = 1,
visibility = ["//visibility:public"],
deps = [
":initialization_test_system",
":my_vector",
":pack_value",
":scalar_conversion",
],
)
drake_cc_library(
name = "initialization_test_system",
testonly = 1,
srcs = [],
hdrs = ["initialization_test_system.h"],
deps = [
"//systems/framework",
],
)
drake_cc_library(
name = "pack_value",
testonly = 1,
srcs = [],
hdrs = ["pack_value.h"],
deps = [
"//common:value",
],
)
drake_cc_library(
name = "my_vector",
testonly = 1,
srcs = [],
hdrs = ["my_vector.h"],
deps = [
"//common:essential",
"//common:pointer_cast",
"//systems/framework:vector",
],
)
drake_cc_library(
name = "scalar_conversion",
testonly = 1,
srcs = [],
hdrs = ["scalar_conversion.h"],
deps = [
"//common/test_utilities:is_dynamic_castable",
],
)
# === test/ ===
drake_cc_googletest(
name = "my_vector_test",
deps = [
":my_vector",
"//common:copyable_unique_ptr",
"//common:value",
"//common/test_utilities:expect_throws_message",
"//common/test_utilities:is_dynamic_castable",
],
)
add_lint_tests(enable_clang_format_lint = False)