Skip to content

Commit

Permalink
Merge pull request #4459 from jwnimmer-tri/bazel-refactor_test_rules
Browse files Browse the repository at this point in the history
Move foo/test/BUILD content into foo/BUILD
  • Loading branch information
david-german-tri authored Dec 12, 2016
2 parents 1e2bdb8 + d9d85f4 commit 20db06d
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 20db06d

Please sign in to comment.