Skip to content

Commit 083ed8e

Browse files
committed
CICD test
1 parent 20e53d8 commit 083ed8e

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

ros/heartbeat_monitor/CMakeLists.txt

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,10 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
55
add_compile_options(-Wall -Wextra -Wpedantic)
66
endif()
77

8-
# find dependencies
8+
# Dependencies
99
find_package(ament_cmake REQUIRED)
1010
find_package(ament_cmake_python REQUIRED)
1111
find_package(rclpy REQUIRED)
12-
find_package(ament_cmake_pytest REQUIRED)
13-
14-
# uncomment the following section in order to fill in
15-
# further dependencies manually.
16-
# find_package(<dependency> REQUIRED)
1712

1813
ament_python_install_package(${PROJECT_NAME})
1914

@@ -22,6 +17,11 @@ install(PROGRAMS
2217
DESTINATION lib/${PROJECT_NAME}
2318
)
2419

20+
# -----------------------------
21+
# Tests
22+
# -----------------------------
23+
24+
2525
if(BUILD_TESTING)
2626
find_package(ament_lint_auto REQUIRED)
2727
# the following line skips the linter which checks for copyrights
@@ -34,13 +34,21 @@ if(BUILD_TESTING)
3434
ament_lint_auto_find_test_dependencies()
3535
endif()
3636

37+
3738
if(BUILD_TESTING)
3839
find_package(ament_cmake_pytest REQUIRED)
40+
3941
ament_add_pytest_tests(
40-
heartbeat_monitor_tests
41-
tests
42+
TESTNAME heartbeat_monitor_tests
43+
TEST_PATH test
4244
TIMEOUT 60
4345
)
46+
47+
find_package(ament_lint_auto REQUIRED)
48+
set(ament_cmake_copyright_FOUND TRUE)
49+
set(ament_cmake_cpplint_FOUND TRUE)
50+
ament_lint_auto_find_test_dependencies()
4451
endif()
52+
4553
ament_package()
4654

0 commit comments

Comments
 (0)