summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ros/pluginlib/pluginlib-9999.ebuild')
-rw-r--r--dev-ros/pluginlib/pluginlib-9999.ebuild11
1 files changed, 11 insertions, 0 deletions
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
+}