add test file for px4controller

This commit is contained in:
Sem van der Hoeven
2023-06-07 16:25:58 +02:00
parent a2ffd58069
commit 9b05ac0fa0
3 changed files with 7 additions and 2 deletions

View File

@@ -60,6 +60,10 @@ install(
DESTINATION share/${PROJECT_NAME}
)
install(FILES
test/test_failsafe_enabled.py
DESTINATION lib/${PROJECT_NAME})
if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
@@ -70,6 +74,8 @@ if(BUILD_TESTING)
# uncomment the line when this package is not in a git repo
# set(ament_cmake_cpplint_FOUND TRUE)
ament_lint_auto_find_test_dependencies()
find_package(launch_testing_ament_cmake REQUIRED)
add_launch_test(test/test_failsafe_enabled.py)
endif()
ament_package()