Skip to content

Commit

Permalink
Move foo/test/BUILD content into foo/BUILD
Browse files Browse the repository at this point in the history
* Paste the foo/test/BUILD content at the end of foo/BUILD
* Replace DEPS shared varibale with copy-pasting into uses
* Add test/ prefix to paths as needed
* Use local ":libname" paths instead of "//full/paths" where possible
* Buildifier reformatting
  • Loading branch information
jwnimmer-tri committed Dec 12, 2016
1 parent 16b3802 commit 95a270e
Show file tree
Hide file tree
Showing 33 changed files with 1,374 additions and 1,189 deletions.
95 changes: 95 additions & 0 deletions drake/automotive/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,98 @@ filegroup(
name = "models",
srcs = glob(["models/**"]),
)

# === test/ ===

cc_test(
name = "automotive_simulator_test",
size = "small",
srcs = ["test/automotive_simulator_test.cc"],
data = ["//drake/automotive:models"],
local = 1,
deps = [
"//drake/automotive:automotive_simulator",
"//drake/lcm:mock",
"@gtest//:main",
],
)

cc_test(
name = "curve2_test",
size = "small",
srcs = ["test/curve2_test.cc"],
deps = [
"//drake/automotive:curve2",
"@gtest//:main",
],
)

cc_test(
name = "simple_car_test",
size = "small",
srcs = ["test/simple_car_test.cc"],
deps = [
"//drake/automotive:simple_car",
"@gtest//:main",
],
)

cc_test(
name = "idm_planner_test",
size = "small",
srcs = ["test/idm_planner_test.cc"],
deps = [
"//drake/automotive:idm_planner",
"@gtest//:main",
],
)

cc_test(
name = "linear_car_test",
size = "small",
srcs = ["test/linear_car_test.cc"],
deps = [
"//drake/automotive:linear_car",
"@gtest//:main",
],
)

cc_test(
name = "simple_car_to_euler_floating_joint_test",
size = "small",
srcs = ["test/simple_car_to_euler_floating_joint_test.cc"],
deps = [
"//drake/automotive:simple_car",
"@gtest//:main",
],
)

cc_test(
name = "single_lane_ego_and_agent_test",
size = "small",
srcs = ["test/single_lane_ego_and_agent_test.cc"],
deps = [
"//drake/automotive:single_lane_ego_and_agent",
"@gtest//:main",
],
)

cc_test(
name = "trajectory_car_test",
size = "small",
srcs = ["test/trajectory_car_test.cc"],
deps = [
"//drake/automotive:trajectory_car",
"@gtest//:main",
],
)

cc_test(
name = "simple_car_state_translator_test",
size = "small",
srcs = ["test/simple_car_state_translator_test.cc"],
deps = [
"//drake/automotive:generated_translators",
"@gtest//:main",
],
)
74 changes: 0 additions & 74 deletions drake/automotive/test/BUILD

This file was deleted.

Loading

0 comments on commit 95a270e

Please sign in to comment.