summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2020-08-07 14:54:13 +0200
committerAlexis Ballier <aballier@gentoo.org>2020-08-07 15:16:17 +0200
commit72fbda4fafc96f5a480a7dfcb98409c12e0adcc2 (patch)
treece7dd2b043dd36b31b206c4ffe4fc584aa095cef /dev-ros/costmap_2d
parentdev-ros/kdl_parser: add := dep on console_bridge (diff)
downloadgentoo-72fbda4fafc96f5a480a7dfcb98409c12e0adcc2.tar.gz
gentoo-72fbda4fafc96f5a480a7dfcb98409c12e0adcc2.tar.bz2
gentoo-72fbda4fafc96f5a480a7dfcb98409c12e0adcc2.zip
dev-ros/costmap_2d: fix tests
Closes: https://bugs.gentoo.org/736216 Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-ros/costmap_2d')
-rw-r--r--dev-ros/costmap_2d/Manifest4
-rw-r--r--dev-ros/costmap_2d/costmap_2d-1.17.0-r1.ebuild21
-rw-r--r--dev-ros/costmap_2d/costmap_2d-9999.ebuild21
3 files changed, 44 insertions, 2 deletions
diff --git a/dev-ros/costmap_2d/Manifest b/dev-ros/costmap_2d/Manifest
index a4fee98c8c5a..ea5b51a1bae9 100644
--- a/dev-ros/costmap_2d/Manifest
+++ b/dev-ros/costmap_2d/Manifest
@@ -1 +1,5 @@
+DIST costmap_2d-1.17.0-simple_driving_test_indexed.bag 945511 BLAKE2B 49cef9884a1a174548239576d720c4e49797098aed9406bbbc954abfaf28844ed432092f79d346ebe471b26f48b612d3265a2d7e2303c2f129a5109b241f6fa4 SHA512 101beca7279c1ac6eecb5af243b6ec73c280958107004d84c438a8d79ff45b1bfadeb9b1956939b339c2ed32ed3d0e9e88af11340410b34ff73943dbe5fac463
+DIST costmap_2d-1.17.0-willow-full-0.025.pgm 4255956 BLAKE2B 884ee8d9cc6d346b86d0b15ee4d0184598502094bda23e2ee3df21138ab3c8dd1fe1156dc869f452d4db1262b102653764a1a005af7fd61a142efad4adb82d90 SHA512 539fffebad08e0580e42369d98a1375cde5df7c7479e4d58cae00266cbefebb2e221f5e6b936b413498860b871221df6d5bec20b93cf7e2b8121b062138303ee
+DIST costmap_2d-9999-simple_driving_test_indexed.bag 945511 BLAKE2B 49cef9884a1a174548239576d720c4e49797098aed9406bbbc954abfaf28844ed432092f79d346ebe471b26f48b612d3265a2d7e2303c2f129a5109b241f6fa4 SHA512 101beca7279c1ac6eecb5af243b6ec73c280958107004d84c438a8d79ff45b1bfadeb9b1956939b339c2ed32ed3d0e9e88af11340410b34ff73943dbe5fac463
+DIST costmap_2d-9999-willow-full-0.025.pgm 4255956 BLAKE2B 884ee8d9cc6d346b86d0b15ee4d0184598502094bda23e2ee3df21138ab3c8dd1fe1156dc869f452d4db1262b102653764a1a005af7fd61a142efad4adb82d90 SHA512 539fffebad08e0580e42369d98a1375cde5df7c7479e4d58cae00266cbefebb2e221f5e6b936b413498860b871221df6d5bec20b93cf7e2b8121b062138303ee
DIST navigation-1.17.0.tar.gz 347660 BLAKE2B 8345dccf8ac5e24d1017631bb621ebaa472cc492d6361f29938501a149555771e03a6a46e16fdcc508bbe5c206ead80e9b79e9168b873685fca50a78ea7a7e13 SHA512 a536c8826bd88151ff8f51f83661282f8ccf1b19872bd91ed32987ef372797b94489380262e79ee2560ecb4d9e290c5b4f8d52c17721e2a41126eaea909bce26
diff --git a/dev-ros/costmap_2d/costmap_2d-1.17.0-r1.ebuild b/dev-ros/costmap_2d/costmap_2d-1.17.0-r1.ebuild
index abc47144df8f..f07bee5f0d3b 100644
--- a/dev-ros/costmap_2d/costmap_2d-1.17.0-r1.ebuild
+++ b/dev-ros/costmap_2d/costmap_2d-1.17.0-r1.ebuild
@@ -15,12 +15,17 @@ LICENSE="BSD"
SLOT="0"
IUSE=""
REQUIRED_USE="ros_messages_cxx"
+DATA="simple_driving_test_indexed.bag willow-full-0.025.pgm"
+for i in ${DATA}; do
+ SRC_URI="${SRC_URI}
+ http://download.ros.org/data/costmap_2d/${i} -> ${P}-${i}"
+done
RDEPEND="
dev-ros/dynamic_reconfigure[${PYTHON_SINGLE_USEDEP}]
dev-ros/laser_geometry
dev-ros/message_filters
- dev-ros/pluginlib
+ >=dev-ros/pluginlib-1.13.0-r1
dev-ros/roscpp
dev-ros/tf2
dev-ros/tf2_ros
@@ -47,3 +52,17 @@ DEPEND="${RDEPEND}
BDEPEND="
dev-ros/cmake_modules
"
+
+src_prepare() {
+ ros-catkin_src_prepare
+ for i in ${DATA}; do
+ cp "${DISTDIR}/${P}-${i}" "${S}/${i}" || die
+ done
+ sed -e "s#http://download.ros.org/data/costmap_2d/#file://${S}/#" -i CMakeLists.txt || die
+}
+
+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/costmap_2d/costmap_2d-9999.ebuild b/dev-ros/costmap_2d/costmap_2d-9999.ebuild
index abc47144df8f..f07bee5f0d3b 100644
--- a/dev-ros/costmap_2d/costmap_2d-9999.ebuild
+++ b/dev-ros/costmap_2d/costmap_2d-9999.ebuild
@@ -15,12 +15,17 @@ LICENSE="BSD"
SLOT="0"
IUSE=""
REQUIRED_USE="ros_messages_cxx"
+DATA="simple_driving_test_indexed.bag willow-full-0.025.pgm"
+for i in ${DATA}; do
+ SRC_URI="${SRC_URI}
+ http://download.ros.org/data/costmap_2d/${i} -> ${P}-${i}"
+done
RDEPEND="
dev-ros/dynamic_reconfigure[${PYTHON_SINGLE_USEDEP}]
dev-ros/laser_geometry
dev-ros/message_filters
- dev-ros/pluginlib
+ >=dev-ros/pluginlib-1.13.0-r1
dev-ros/roscpp
dev-ros/tf2
dev-ros/tf2_ros
@@ -47,3 +52,17 @@ DEPEND="${RDEPEND}
BDEPEND="
dev-ros/cmake_modules
"
+
+src_prepare() {
+ ros-catkin_src_prepare
+ for i in ${DATA}; do
+ cp "${DISTDIR}/${P}-${i}" "${S}/${i}" || die
+ done
+ sed -e "s#http://download.ros.org/data/costmap_2d/#file://${S}/#" -i CMakeLists.txt || die
+}
+
+src_test() {
+ export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}"
+ export CATKIN_PREFIX_PATH="${BUILD_DIR}/devel/:${CATKIN_PREFIX_PATH}"
+ ros-catkin_src_test
+}