Skip to content

Commit

Permalink
fix: add no-test support to other package types
Browse files Browse the repository at this point in the history
  • Loading branch information
russkel committed Apr 2, 2024
1 parent 3dd36e0 commit c4b7da7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bloom/generators/debian/templates/ament_cmake/rules.em
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@ override_dh_auto_build:
dh_auto_build

override_dh_auto_test:
@[if not no_tests]@
# In case we're installing to a non-standard location, look for a setup.sh
# in the install tree and source it. It will set things like
# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
echo -- Running tests. Even if one of them fails the build is not canceled.
if [ -f "@(InstallationPrefix)/setup.sh" ]; then . "@(InstallationPrefix)/setup.sh"; fi && \
dh_auto_test || true
@[end if]@

override_dh_shlibdeps:
# In case we're installing to a non-standard location, look for a setup.sh
Expand Down
2 changes: 2 additions & 0 deletions bloom/generators/debian/templates/ament_python/rules.em
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ override_dh_auto_build:
dh_auto_build

override_dh_auto_test:
@[if not no_tests]@
# In case we're installing to a non-standard location, look for a setup.sh
# in the install tree and source it. It will set things like
# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
echo -- Running tests. Even if one of them fails the build is not canceled.
if [ -f "@(InstallationPrefix)/setup.sh" ]; then . "@(InstallationPrefix)/setup.sh"; fi && \
dh_auto_test || true
@[end if]@

override_dh_shlibdeps:
# In case we're installing to a non-standard location, look for a setup.sh
Expand Down
2 changes: 2 additions & 0 deletions bloom/generators/debian/templates/catkin/rules.em
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@ override_dh_auto_build:
dh_auto_build

override_dh_auto_test:
@[if not no_tests]@
# In case we're installing to a non-standard location, look for a setup.sh
# in the install tree that was dropped by catkin, and source it. It will
# set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
echo -- Running tests. Even if one of them fails the build is not canceled.
if [ -f "@(InstallationPrefix)/setup.sh" ]; then . "@(InstallationPrefix)/setup.sh"; fi && \
dh_auto_test || true
@[end if]@

override_dh_shlibdeps:
# In case we're installing to a non-standard location, look for a setup.sh
Expand Down

0 comments on commit c4b7da7

Please sign in to comment.