Skip to content

Commit

Permalink
add_rostest before check dpkg, to run test code on even in indigo, see
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Dec 15, 2022
1 parent 79bd9c5 commit 4069bdd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions 3rdparty/aques_talk/CMakeLists.txt
Expand Up @@ -5,6 +5,11 @@ find_package(catkin REQUIRED)

catkin_package()

if(CATKIN_ENABLE_TESTING)
find_package(catkin REQUIRED COMPONENTS rostest)
add_rostest(test/test_aques_talk.test)
endif()

# Considering the use of docker in addition to the usual use,
# we use dpkg-architecture command instead of ${CMAKE_SYSTEM_PROCESSOR} to get the architecture.
# https://stackoverflow.com/a/58222507
Expand Down Expand Up @@ -50,8 +55,3 @@ install(DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
USE_SOURCE_PERMISSIONS)

if(CATKIN_ENABLE_TESTING)
find_package(catkin REQUIRED COMPONENTS rostest)
add_rostest(test/test_aques_talk.test)
add_dependencies(tests SampleTalk) # make sure to build SampleTalk before running tests
endif()

0 comments on commit 4069bdd

Please sign in to comment.