Skip to content

Commit

Permalink
Merge branch 'feature/grid_map_enable_coverage_analysis' into 'master'
Browse files Browse the repository at this point in the history
[grid_map] Enabled again unit coverage analysis

GitOrigin-RevId: a9d12bb7dd5c3b8d2e4085ea58226663309f0784
  • Loading branch information
YoshuaNavaANYbotics authored and anybotics-sync-runner committed Aug 19, 2020
1 parent f0dd780 commit f5bd2ed
Show file tree
Hide file tree
Showing 22 changed files with 88 additions and 87 deletions.
14 changes: 7 additions & 7 deletions grid_map_core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ endif()
## Code_coverage ##
###################

# find_package(cmake_code_coverage QUIET)
# if(cmake_code_coverage_FOUND)
# add_gtest_coverage(
# TEST_BUILD_TARGETS
# ${PROJECT_NAME}-test
# )
# endif(cmake_code_coverage_FOUND)
find_package(cmake_code_coverage QUIET)
if(cmake_code_coverage_FOUND)
add_gtest_coverage(
TEST_BUILD_TARGETS
${PROJECT_NAME}-test
)
endif(cmake_code_coverage_FOUND)
2 changes: 1 addition & 1 deletion grid_map_core/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
<author email="[email protected]">Péter Fankhauser</author>
<buildtool_depend>catkin</buildtool_depend>
<depend>eigen</depend>
<!-- <test_depend>cmake_code_coverage</test_depend> -->
<!-- <test_depend>cmake_code_coverage</test_depend> -->
</package>
14 changes: 7 additions & 7 deletions grid_map_costmap_2d/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ endif()
## Code_coverage ##
###################

# find_package(cmake_code_coverage QUIET)
# if(cmake_code_coverage_FOUND)
# add_gtest_coverage(
# TEST_BUILD_TARGETS
# ${PROJECT_NAME}-test
# )
# endif(cmake_code_coverage_FOUND)
find_package(cmake_code_coverage QUIET)
if(cmake_code_coverage_FOUND)
add_gtest_coverage(
TEST_BUILD_TARGETS
${PROJECT_NAME}-test
)
endif(cmake_code_coverage_FOUND)
2 changes: 1 addition & 1 deletion grid_map_costmap_2d/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
<depend>grid_map_core</depend>
<depend>costmap_2d</depend>
<depend>tf</depend>
<!-- <test_depend>cmake_code_coverage</test_depend> -->
<!-- <test_depend>cmake_code_coverage</test_depend> -->
</package>
14 changes: 7 additions & 7 deletions grid_map_cv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ endif()
## Code_coverage ##
###################

# find_package(cmake_code_coverage QUIET)
# if(cmake_code_coverage_FOUND)
# add_gtest_coverage(
# TEST_BUILD_TARGETS
# ${PROJECT_NAME}-test
# )
# endif(cmake_code_coverage_FOUND)
find_package(cmake_code_coverage QUIET)
if(cmake_code_coverage_FOUND)
add_gtest_coverage(
TEST_BUILD_TARGETS
${PROJECT_NAME}-test
)
endif(cmake_code_coverage_FOUND)
2 changes: 1 addition & 1 deletion grid_map_cv/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<depend>grid_map_core</depend>
<depend>cv_bridge</depend>
<depend>filters</depend>
<!-- <test_depend>cmake_code_coverage</test_depend> -->
<!-- <test_depend>cmake_code_coverage</test_depend> -->
<export>
<filters plugin="${prefix}/filter_plugins.xml" />
</export>
Expand Down
14 changes: 7 additions & 7 deletions grid_map_filters/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ endif()
## Code_coverage ##
###################

# find_package(cmake_code_coverage QUIET)
# if(cmake_code_coverage_FOUND)
# add_gtest_coverage(
# TEST_BUILD_TARGETS
# ${PROJECT_NAME}-test
# )
# endif(cmake_code_coverage_FOUND)
find_package(cmake_code_coverage QUIET)
if(cmake_code_coverage_FOUND)
add_gtest_coverage(
TEST_BUILD_TARGETS
${PROJECT_NAME}-test
)
endif(cmake_code_coverage_FOUND)
2 changes: 1 addition & 1 deletion grid_map_filters/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<depend>grid_map_msgs</depend>
<depend>filters</depend>
<depend>tbb</depend>
<!-- <test_depend>cmake_code_coverage</test_depend> -->
<!-- <test_depend>cmake_code_coverage</test_depend> -->
<export>
<filters plugin="${prefix}/filter_plugins.xml" />
</export>
Expand Down
14 changes: 7 additions & 7 deletions grid_map_loader/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ endif()
## Code_coverage ##
###################

# find_package(cmake_code_coverage QUIET)
# if(cmake_code_coverage_FOUND)
# add_gtest_coverage(
# TEST_BUILD_TARGETS
# ${PROJECT_NAME}-test
# )
# endif(cmake_code_coverage_FOUND)
find_package(cmake_code_coverage QUIET)
if(cmake_code_coverage_FOUND)
add_gtest_coverage(
TEST_BUILD_TARGETS
${PROJECT_NAME}-test
)
endif(cmake_code_coverage_FOUND)
2 changes: 1 addition & 1 deletion grid_map_loader/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
<depend>roscpp</depend>
<depend>grid_map_ros</depend>
<depend>grid_map_msgs</depend>
<!-- <test_depend>cmake_code_coverage</test_depend> -->
<!-- <test_depend>cmake_code_coverage</test_depend> -->
</package>
14 changes: 7 additions & 7 deletions grid_map_octomap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ endif()
## Code_coverage ##
###################

# find_package(cmake_code_coverage QUIET)
# if(cmake_code_coverage_FOUND)
# add_gtest_coverage(
# TEST_BUILD_TARGETS
# ${PROJECT_NAME}-test
# )
# endif(cmake_code_coverage_FOUND)
find_package(cmake_code_coverage QUIET)
if(cmake_code_coverage_FOUND)
add_gtest_coverage(
TEST_BUILD_TARGETS
${PROJECT_NAME}-test
)
endif(cmake_code_coverage_FOUND)
2 changes: 1 addition & 1 deletion grid_map_octomap/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
<buildtool_depend>catkin</buildtool_depend>
<depend>grid_map_core</depend>
<depend>octomap</depend>
<!-- <test_depend>cmake_code_coverage</test_depend> -->
<!-- <test_depend>cmake_code_coverage</test_depend> -->
</package>
14 changes: 7 additions & 7 deletions grid_map_pcl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ endif()
## Code_coverage ##
###################

# find_package(cmake_code_coverage QUIET)
# if(cmake_code_coverage_FOUND)
# add_gtest_coverage(
# TEST_BUILD_TARGETS
# ${PROJECT_NAME}-test
# )
# endif(cmake_code_coverage_FOUND)
find_package(cmake_code_coverage QUIET)
if(cmake_code_coverage_FOUND)
add_gtest_coverage(
TEST_BUILD_TARGETS
${PROJECT_NAME}-test
)
endif(cmake_code_coverage_FOUND)
2 changes: 1 addition & 1 deletion grid_map_pcl/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
<depend>pcl_ros</depend>
<depend>roscpp</depend>
<depend>yaml-cpp</depend>
<!-- <test_depend>cmake_code_coverage</test_depend> -->
<!-- <test_depend>cmake_code_coverage</test_depend> -->
</package>
14 changes: 7 additions & 7 deletions grid_map_ros/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ endif()
## Code_coverage ##
###################

# find_package(cmake_code_coverage QUIET)
# if(cmake_code_coverage_FOUND)
# add_gtest_coverage(
# TEST_BUILD_TARGETS
# ${PROJECT_NAME}-test
# )
# endif(cmake_code_coverage_FOUND)
find_package(cmake_code_coverage QUIET)
if(cmake_code_coverage_FOUND)
add_gtest_coverage(
TEST_BUILD_TARGETS
${PROJECT_NAME}-test
)
endif(cmake_code_coverage_FOUND)
2 changes: 1 addition & 1 deletion grid_map_ros/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
<depend>rosbag</depend>
<depend>tf</depend>
<depend>visualization_msgs</depend>
<!-- <test_depend>cmake_code_coverage</test_depend> -->
<!-- <test_depend>cmake_code_coverage</test_depend> -->
</package>
14 changes: 7 additions & 7 deletions grid_map_rviz_plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ endif()
## Code_coverage ##
###################

# find_package(cmake_code_coverage QUIET)
# if(cmake_code_coverage_FOUND)
# add_gtest_coverage(
# TEST_BUILD_TARGETS
# ${PROJECT_NAME}-test
# )
# endif(cmake_code_coverage_FOUND)
find_package(cmake_code_coverage QUIET)
if(cmake_code_coverage_FOUND)
add_gtest_coverage(
TEST_BUILD_TARGETS
${PROJECT_NAME}-test
)
endif(cmake_code_coverage_FOUND)
2 changes: 1 addition & 1 deletion grid_map_rviz_plugin/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<run_depend>rviz</run_depend>
<run_depend>grid_map_ros</run_depend>
<run_depend>grid_map_msgs</run_depend>
<!-- <test_depend>cmake_code_coverage</test_depend> -->
<!-- <test_depend>cmake_code_coverage</test_depend> -->
<export>
<rviz plugin="${prefix}/plugin_description.xml"/>
</export>
Expand Down
14 changes: 7 additions & 7 deletions grid_map_sdf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ endif()
## Code_coverage ##
###################

# find_package(cmake_code_coverage QUIET)
# if(cmake_code_coverage_FOUND)
# add_gtest_coverage(
# TEST_BUILD_TARGETS
# ${PROJECT_NAME}-test
# )
# endif(cmake_code_coverage_FOUND)
find_package(cmake_code_coverage QUIET)
if(cmake_code_coverage_FOUND)
add_gtest_coverage(
TEST_BUILD_TARGETS
${PROJECT_NAME}-test
)
endif(cmake_code_coverage_FOUND)
2 changes: 1 addition & 1 deletion grid_map_sdf/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
<buildtool_depend>catkin</buildtool_depend>
<depend>grid_map_core</depend>
<depend>pcl_ros</depend>
<!-- <test_depend>cmake_code_coverage</test_depend> -->
<!-- <test_depend>cmake_code_coverage</test_depend> -->
</package>
14 changes: 7 additions & 7 deletions grid_map_visualization/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ endif()
## Code_coverage ##
###################

# find_package(cmake_code_coverage QUIET)
# if(cmake_code_coverage_FOUND)
# add_gtest_coverage(
# TEST_BUILD_TARGETS
# ${PROJECT_NAME}-test
# )
# endif(cmake_code_coverage_FOUND)
find_package(cmake_code_coverage QUIET)
if(cmake_code_coverage_FOUND)
add_gtest_coverage(
TEST_BUILD_TARGETS
${PROJECT_NAME}-test
)
endif(cmake_code_coverage_FOUND)
1 change: 1 addition & 0 deletions grid_map_visualization/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@
<depend>visualization_msgs</depend>
<depend>sensor_msgs</depend>
<depend>nav_msgs</depend>
<!-- <test_depend>cmake_code_coverage</test_depend> -->
</package>

0 comments on commit f5bd2ed

Please sign in to comment.