diff options
author | Alexis Ballier <aballier@gentoo.org> | 2021-04-02 13:15:14 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2021-04-05 11:52:13 +0200 |
commit | 1e14bc296f34aa6bbce3fc9ff17f3f7166179271 (patch) | |
tree | 6b1cef32d1f7e10ffefdd8cb9f17ed3e4c7bef88 /dev-ros/test_rosbag/test_rosbag-1.15.10.ebuild | |
parent | dev-ros/rospy: Bump to 1.15.10. (diff) | |
download | gentoo-1e14bc296f34aa6bbce3fc9ff17f3f7166179271.tar.gz gentoo-1e14bc296f34aa6bbce3fc9ff17f3f7166179271.tar.bz2 gentoo-1e14bc296f34aa6bbce3fc9ff17f3f7166179271.zip |
dev-ros/test_rosbag: Bump to 1.15.10.
Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-ros/test_rosbag/test_rosbag-1.15.10.ebuild')
-rw-r--r-- | dev-ros/test_rosbag/test_rosbag-1.15.10.ebuild | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/dev-ros/test_rosbag/test_rosbag-1.15.10.ebuild b/dev-ros/test_rosbag/test_rosbag-1.15.10.ebuild new file mode 100644 index 000000000000..d397cd81becd --- /dev/null +++ b/dev-ros/test_rosbag/test_rosbag-1.15.10.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2021 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/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 +} |