Skip to content

Commit

Permalink
Move isolated test functions to ament_cmake_ros
Browse files Browse the repository at this point in the history
Signed-off-by: Pete Baughman <pete.baughman@apex.ai>
  • Loading branch information
Pete Baughman committed Jun 11, 2019
1 parent df25e23 commit e1bf0e1
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 133 deletions.
5 changes: 5 additions & 0 deletions ament_cmake_ros/ament_cmake_ros-extras.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,10 @@

# generated from ament_cmake_ros/ament_cmake_ros-extras.cmake.in

find_package(ament_cmake_gtest QUIET REQUIRED)
find_package(ament_cmake_pytest QUIET REQUIRED)
include("${ament_cmake_ros_DIR}/ament_add_ros_isolated_gtest.cmake")
include("${ament_cmake_ros_DIR}/ament_add_ros_isolated_pytest.cmake")

include("${ament_cmake_ros_DIR}/build_shared_libs.cmake")
add_definitions(-DROS_PACKAGE_NAME=\"${PROJECT_NAME}\")
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

function(ament_add_ros_isolated_gtest target)

set(RUNNER "RUNNER" "${ament_cmake_ros_isolated_test_DIR}/run_test_isolated.py")
set(RUNNER "RUNNER" "${ament_cmake_ros_DIR}/run_test_isolated.py")

ament_add_gtest(
"${target}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

function(ament_add_ros_isolated_pytest_test testname path)

set(RUNNER "${ament_cmake_ros_isolated_test_DIR}/run_test_isolated.py")
set(RUNNER "${ament_cmake_ros_DIR}/run_test_isolated.py")

ament_add_pytest_test(
"${testname}" "${path}"
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions ament_cmake_ros/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<depend>domain_coordinator</depend>

<buildtool_export_depend>ament_cmake</buildtool_export_depend>
<buildtool_export_depend>ament_cmake_gtest</buildtool_export_depend>
<buildtool_export_depend>ament_cmake_pytest</buildtool_export_depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>
Expand Down
14 changes: 0 additions & 14 deletions ament_cmake_ros_isolated_gtest/CMakeLists.txt

This file was deleted.

This file was deleted.

19 changes: 0 additions & 19 deletions ament_cmake_ros_isolated_gtest/package.xml

This file was deleted.

14 changes: 0 additions & 14 deletions ament_cmake_ros_isolated_pytest/CMakeLists.txt

This file was deleted.

This file was deleted.

19 changes: 0 additions & 19 deletions ament_cmake_ros_isolated_pytest/package.xml

This file was deleted.

12 changes: 0 additions & 12 deletions ament_cmake_ros_isolated_test/CMakeLists.txt

This file was deleted.

17 changes: 0 additions & 17 deletions ament_cmake_ros_isolated_test/package.xml

This file was deleted.

0 comments on commit e1bf0e1

Please sign in to comment.