diff options
author | Alexis Ballier <aballier@gentoo.org> | 2022-03-08 15:49:47 +0100 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2022-03-08 17:16:42 +0100 |
commit | 75bae7616acda14e367699be6c5796bfb3bc3917 (patch) | |
tree | 898a8a84707260b908661dc65447e15756dea909 /dev-ros/test_rosbag/test_rosbag-1.15.14.ebuild | |
parent | dev-ros/rospy: Bump to 1.15.14. (diff) | |
download | gentoo-75bae7616acda14e367699be6c5796bfb3bc3917.tar.gz gentoo-75bae7616acda14e367699be6c5796bfb3bc3917.tar.bz2 gentoo-75bae7616acda14e367699be6c5796bfb3bc3917.zip |
dev-ros/test_rosbag: Bump to 1.15.14.
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-ros/test_rosbag/test_rosbag-1.15.14.ebuild')
-rw-r--r-- | dev-ros/test_rosbag/test_rosbag-1.15.14.ebuild | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/dev-ros/test_rosbag/test_rosbag-1.15.14.ebuild b/dev-ros/test_rosbag/test_rosbag-1.15.14.ebuild new file mode 100644 index 000000000000..eb9dec36f967 --- /dev/null +++ b/dev-ros/test_rosbag/test_rosbag-1.15.14.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +ROS_REPO_URI="https://github.com/ros/ros_comm" +KEYWORDS="~amd64 ~arm" +ROS_SUBDIR=test/${PN} +CATKIN_HAS_MESSAGES=yes +CATKIN_MESSAGES_TRANSITIVE_DEPS="dev-ros/rosgraph_msgs dev-ros/std_msgs" + +TEST_DATA="constants_gen1.bag +constants_gen2.bag +converged_gen1.bag +converged_gen2.bag +converged_gen3.bag +converged_gen4.bag +convergent_gen1.bag +convergent_gen2.bag +migrated_addsub_gen1.bag +migrated_explicit_gen1.bag +migrated_explicit_gen2.bag +migrated_explicit_gen3.bag +migrated_explicit_gen4.bag +migrated_implicit_gen1.bag +migrated_implicit_gen2.bag +migrated_implicit_gen3.bag +migrated_implicit_gen4.bag +migrated_mixed_gen1.bag +migrated_mixed_gen2.bag +migrated_mixed_gen3.bag +migrated_mixed_gen4.bag +partially_migrated_gen1.bag +partially_migrated_gen2.bag +partially_migrated_gen3.bag +partially_migrated_gen4.bag +renamed_gen1.bag +renamed_gen2.bag +renamed_gen3.bag +renamed_gen4.bag +subunmigrated_gen1.bag +unmigrated_gen1.bag +" +ROSBAG_DATA=" +test_indexed_1.2.bag +chatter_50hz.bag +test_future_version_2.1.bag +test_rosbag_latched_pub.bag +" + +inherit ros-catkin + +DESCRIPTION="Unit tests for rosbag" +LICENSE="BSD" +SLOT="0" +IUSE="" + +for i in ${TEST_DATA}; do + SRC_URI="${SRC_URI} + http://download.ros.org/data/test_rosbag/${i} -> ${P}-${i}" +done +for i in ${ROSBAG_DATA}; do + SRC_URI="${SRC_URI} + http://download.ros.org/data/rosbag/${i} -> ${P}-${i}" +done + +RDEPEND=" + dev-ros/message_generation + dev-ros/rosbag[${PYTHON_SINGLE_USEDEP}] + dev-ros/rosconsole + dev-ros/roscpp + dev-ros/rostopic[${PYTHON_SINGLE_USEDEP}] + dev-ros/rostest[${PYTHON_SINGLE_USEDEP}] + dev-ros/rosunit[${PYTHON_SINGLE_USEDEP}] + dev-ros/topic_tools[${PYTHON_SINGLE_USEDEP}] + dev-ros/xmlrpcpp +" +DEPEND="${RDEPEND} + test? ( + dev-libs/boost[threads(+)] + app-arch/bzip2 + dev-ros/rosout + $(python_gen_cond_dep "dev-python/nose[\${PYTHON_USEDEP}]") + dev-ros/rostest[${PYTHON_SINGLE_USEDEP}] + dev-cpp/gtest + ) +" + +src_prepare() { + ros-catkin_src_prepare + for i in ${TEST_DATA} ${ROSBAG_DATA}; do + cp "${DISTDIR}/${P}-${i}" "${S}/${i}" || die + done + sed -e "s#http://download.ros.org/data/test_rosbag/#file://${S}/#g" \ + -i bag_migration_tests/CMakeLists.txt \ + -i CMakeLists.txt || die + sed -e "s#http://download.ros.org/data/rosbag/#file://${S}/#g" \ + -i bag_migration_tests/CMakeLists.txt \ + -i CMakeLists.txt || die +} + +src_test() { + export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}" + ros-catkin_src_test +} |