summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2020-08-07 17:32:40 +0200
committerAlexis Ballier <aballier@gentoo.org>2020-08-07 17:32:48 +0200
commit2597b367314a7222076934360a4bea8631023f10 (patch)
tree0fb4edbfa854ad0f3174d8cf8794574db85f60d3 /dev-ros/controller_manager_tests
parentdev-ros/controller_interface: add := dep on pluginlib (diff)
downloadgentoo-2597b367314a7222076934360a4bea8631023f10.tar.gz
gentoo-2597b367314a7222076934360a4bea8631023f10.tar.bz2
gentoo-2597b367314a7222076934360a4bea8631023f10.zip
dev-ros/controller_manager_tests: fix tests
Closes: https://bugs.gentoo.org/624786 Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-ros/controller_manager_tests')
-rw-r--r--dev-ros/controller_manager_tests/controller_manager_tests-0.19.1.ebuild6
-rw-r--r--dev-ros/controller_manager_tests/controller_manager_tests-9999.ebuild6
2 files changed, 12 insertions, 0 deletions
diff --git a/dev-ros/controller_manager_tests/controller_manager_tests-0.19.1.ebuild b/dev-ros/controller_manager_tests/controller_manager_tests-0.19.1.ebuild
index 5ce10ae8cdd2..b3f59e8c48b5 100644
--- a/dev-ros/controller_manager_tests/controller_manager_tests-0.19.1.ebuild
+++ b/dev-ros/controller_manager_tests/controller_manager_tests-0.19.1.ebuild
@@ -27,3 +27,9 @@ DEPEND="${RDEPEND}
dev-ros/rosservice[${PYTHON_SINGLE_USEDEP}]
dev-cpp/gtest
)"
+
+src_test() {
+ export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}"
+ export CATKIN_PREFIX_PATH="${BUILD_DIR}/devel/:${CATKIN_PREFIX_PATH}"
+ ros-catkin_src_test
+}
diff --git a/dev-ros/controller_manager_tests/controller_manager_tests-9999.ebuild b/dev-ros/controller_manager_tests/controller_manager_tests-9999.ebuild
index 5ce10ae8cdd2..b3f59e8c48b5 100644
--- a/dev-ros/controller_manager_tests/controller_manager_tests-9999.ebuild
+++ b/dev-ros/controller_manager_tests/controller_manager_tests-9999.ebuild
@@ -27,3 +27,9 @@ DEPEND="${RDEPEND}
dev-ros/rosservice[${PYTHON_SINGLE_USEDEP}]
dev-cpp/gtest
)"
+
+src_test() {
+ export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}"
+ export CATKIN_PREFIX_PATH="${BUILD_DIR}/devel/:${CATKIN_PREFIX_PATH}"
+ ros-catkin_src_test
+}