Skip to content

Commit

Permalink
matching tests with other distros
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Henkel <[email protected]>
  • Loading branch information
ct2034 committed Jul 17, 2024
1 parent 3974f2a commit 738f404
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions diagnostic_common_diagnostics/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ find_package(ament_cmake_python REQUIRED)
ament_python_install_package(${PROJECT_NAME})

install(PROGRAMS
${PROJECT_NAME}/cpu_monitor.py
${PROJECT_NAME}/ntp_monitor.py
${PROJECT_NAME}/ram_monitor.py
${PROJECT_NAME}/sensors_monitor.py
Expand All @@ -17,12 +18,13 @@ install(PROGRAMS

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
find_package(launch_testing_ament_cmake REQUIRED)
ament_lint_auto_find_test_dependencies()

find_package(ament_cmake_pytest REQUIRED)
ament_add_pytest_test(
test_ntp_monitor
test/systemtest/test_ntp_monitor.py
test_cpu_monitor
test/systemtest/test_cpu_monitor.py
TIMEOUT 10)
add_launch_test(
test/systemtest/test_ntp_monitor_launchtest.py
Expand All @@ -34,4 +36,4 @@ if(BUILD_TESTING)
TIMEOUT 20)
endif()

ament_package()
ament_package()

0 comments on commit 738f404

Please sign in to comment.