summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2021-04-09 17:00:09 +0200
committerAlexis Ballier <aballier@gentoo.org>2021-04-09 17:00:09 +0200
commite06f4288aa70f8ba5d00a06deafde61b9a638605 (patch)
tree856039b43d6cdf8f3d27b1a7681010c009c079b0 /dev-ros/controller_manager
parentdev-ros/controller_manager: Remove old (diff)
downloadgentoo-e06f4288aa70f8ba5d00a06deafde61b9a638605.tar.gz
gentoo-e06f4288aa70f8ba5d00a06deafde61b9a638605.tar.bz2
gentoo-e06f4288aa70f8ba5d00a06deafde61b9a638605.zip
dev-ros/controller_manager: fix tests when package is not installed
Closes: https://bugs.gentoo.org/775080 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-ros/controller_manager')
-rw-r--r--dev-ros/controller_manager/controller_manager-0.19.4.ebuild5
-rw-r--r--dev-ros/controller_manager/controller_manager-9999.ebuild7
2 files changed, 11 insertions, 1 deletions
diff --git a/dev-ros/controller_manager/controller_manager-0.19.4.ebuild b/dev-ros/controller_manager/controller_manager-0.19.4.ebuild
index e52c6efc4187..e039c57a8218 100644
--- a/dev-ros/controller_manager/controller_manager-0.19.4.ebuild
+++ b/dev-ros/controller_manager/controller_manager-0.19.4.ebuild
@@ -33,3 +33,8 @@ DEPEND="${RDEPEND}
dev-ros/rostest[${PYTHON_SINGLE_USEDEP}]
dev-cpp/gtest
)"
+
+src_test() {
+ export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}"
+ ros-catkin_src_test
+}
diff --git a/dev-ros/controller_manager/controller_manager-9999.ebuild b/dev-ros/controller_manager/controller_manager-9999.ebuild
index 56fe44573d05..e039c57a8218 100644
--- a/dev-ros/controller_manager/controller_manager-9999.ebuild
+++ b/dev-ros/controller_manager/controller_manager-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -33,3 +33,8 @@ DEPEND="${RDEPEND}
dev-ros/rostest[${PYTHON_SINGLE_USEDEP}]
dev-cpp/gtest
)"
+
+src_test() {
+ export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}"
+ ros-catkin_src_test
+}