commit: 1fe570906e3205cfaac2b434ecf38e645481c651 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> AuthorDate: Wed Aug 5 16:29:16 2020 +0000 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> CommitDate: Wed Aug 5 17:55:00 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fe57090
dev-ros/test_roscpp: fix tests Closes: https://bugs.gentoo.org/734690 Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org> dev-ros/test_roscpp/files/tests.patch | 12 ++++++++++++ dev-ros/test_roscpp/test_roscpp-1.15.8.ebuild | 6 ++++++ dev-ros/test_roscpp/test_roscpp-9999.ebuild | 6 ++++++ 3 files changed, 24 insertions(+) diff --git a/dev-ros/test_roscpp/files/tests.patch b/dev-ros/test_roscpp/files/tests.patch new file mode 100644 index 00000000000..80c18962dee --- /dev/null +++ b/dev-ros/test_roscpp/files/tests.patch @@ -0,0 +1,12 @@ +Index: test_roscpp/test/src/CMakeLists.txt +=================================================================== +--- test_roscpp.orig/test/src/CMakeLists.txt ++++ test_roscpp/test/src/CMakeLists.txt +@@ -290,6 +290,7 @@ if(TARGET tests) + ${PROJECT_NAME}-left_right + ${PROJECT_NAME}-string_msg_expect + ${PROJECT_NAME}-publisher ++ ${PROJECT_NAME}-publisher_rate + ${PROJECT_NAME}-subscriber + ${PROJECT_NAME}-stamped_topic_statistics_empty_timestamp + ${PROJECT_NAME}-topic_statistic_frequency diff --git a/dev-ros/test_roscpp/test_roscpp-1.15.8.ebuild b/dev-ros/test_roscpp/test_roscpp-1.15.8.ebuild index d1b28ba0aca..39bfc4bf09a 100644 --- a/dev-ros/test_roscpp/test_roscpp-1.15.8.ebuild +++ b/dev-ros/test_roscpp/test_roscpp-1.15.8.ebuild @@ -28,3 +28,9 @@ DEPEND="${RDEPEND} ) " REQUIRED_USE="test? ( ros_messages_cxx )" +PATCHES=( "${FILESDIR}/tests.patch" ) + +src_test() { + export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}" + ros-catkin_src_test +} diff --git a/dev-ros/test_roscpp/test_roscpp-9999.ebuild b/dev-ros/test_roscpp/test_roscpp-9999.ebuild index d1b28ba0aca..39bfc4bf09a 100644 --- a/dev-ros/test_roscpp/test_roscpp-9999.ebuild +++ b/dev-ros/test_roscpp/test_roscpp-9999.ebuild @@ -28,3 +28,9 @@ DEPEND="${RDEPEND} ) " REQUIRED_USE="test? ( ros_messages_cxx )" +PATCHES=( "${FILESDIR}/tests.patch" ) + +src_test() { + export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}" + ros-catkin_src_test +}
