summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2020-07-29 20:05:52 +0200
committerAlexis Ballier <aballier@gentoo.org>2020-07-29 20:06:04 +0200
commite3a611e378f92e92e64c51b129c8b461eaf5484c (patch)
tree07b9ee1481c01f258a787ec8f10a46704e0c98eb /dev-ros/pluginlib
parentdev-ros/roslz4: Remove old (diff)
downloadgentoo-e3a611e378f92e92e64c51b129c8b461eaf5484c.tar.gz
gentoo-e3a611e378f92e92e64c51b129c8b461eaf5484c.tar.bz2
gentoo-e3a611e378f92e92e64c51b129c8b461eaf5484c.zip
dev-ros/pluginlib: set proper pathes for tests
Closes: https://bugs.gentoo.org/624934 Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-ros/pluginlib')
-rw-r--r--dev-ros/pluginlib/pluginlib-1.13.0.ebuild11
-rw-r--r--dev-ros/pluginlib/pluginlib-9999.ebuild11
2 files changed, 22 insertions, 0 deletions
diff --git a/dev-ros/pluginlib/pluginlib-1.13.0.ebuild b/dev-ros/pluginlib/pluginlib-1.13.0.ebuild
index ba9b469f3e1c..6589477b3a39 100644
--- a/dev-ros/pluginlib/pluginlib-1.13.0.ebuild
+++ b/dev-ros/pluginlib/pluginlib-1.13.0.ebuild
@@ -24,3 +24,14 @@ RDEPEND="
DEPEND="${RDEPEND}
test? ( dev-cpp/gtest )"
PATCHES=( "${FILESDIR}/catkin_prefix_path2.patch" )
+
+src_test() {
+ cmake_build tests
+
+ export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}"
+ if [ ! -e "${BUILD_DIR}/devel/lib" ] ; then
+ ln -s $(get_libdir) "${BUILD_DIR}/devel/lib" || die
+ fi
+ export CATKIN_PREFIX_PATH=devel/
+ ros-catkin_src_test
+}
diff --git a/dev-ros/pluginlib/pluginlib-9999.ebuild b/dev-ros/pluginlib/pluginlib-9999.ebuild
index ba9b469f3e1c..6589477b3a39 100644
--- a/dev-ros/pluginlib/pluginlib-9999.ebuild
+++ b/dev-ros/pluginlib/pluginlib-9999.ebuild
@@ -24,3 +24,14 @@ RDEPEND="
DEPEND="${RDEPEND}
test? ( dev-cpp/gtest )"
PATCHES=( "${FILESDIR}/catkin_prefix_path2.patch" )
+
+src_test() {
+ cmake_build tests
+
+ export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}"
+ if [ ! -e "${BUILD_DIR}/devel/lib" ] ; then
+ ln -s $(get_libdir) "${BUILD_DIR}/devel/lib" || die
+ fi
+ export CATKIN_PREFIX_PATH=devel/
+ ros-catkin_src_test
+}