Skip to content

Commit

Permalink
jsk_rviz_plugins : enable add_rostest for all DISTRO
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Sep 14, 2021
1 parent 06cb82a commit cd2fd1c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions jsk_rviz_plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,9 @@ if (CATKIN_ENABLE_TESTING)
add_dependencies(tests ${PROJECT_NAME}_install_sample_data)
# run rostest for melodic+
find_package(rostest REQUIRED)
if("$ENV{ROS_DISTRO}" STRGREATER "luner") # test uses http://wiki.ros.org/rostest/Nodes#advertisetest, which is available from Melodic
file(GLOB TEST_FILES test/*.test)
foreach(TEST_FILE ${TEST_FILES})
message(STATUS "Run test for ${TEST_FILE}")
add_rostest(${TEST_FILE})
endforeach()
endif()
file(GLOB TEST_FILES test/*.test)
foreach(TEST_FILE ${TEST_FILES})
message(STATUS "Run test for ${TEST_FILE}")
add_rostest(${TEST_FILE})
endforeach()
endif()

0 comments on commit cd2fd1c

Please sign in to comment.