diff options
author | Alexis Ballier <aballier@gentoo.org> | 2021-08-11 12:19:23 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2021-08-11 12:58:36 +0200 |
commit | f5802145b8065c2bed02f8fc052ce099a5619182 (patch) | |
tree | 0fdee52692d134b7abb9b5a05fcb4032eeaeb747 /dev-ros/robot_pose_ekf | |
parent | net-misc/remmina: drop old (diff) | |
download | gentoo-f5802145b8065c2bed02f8fc052ce099a5619182.tar.gz gentoo-f5802145b8065c2bed02f8fc052ce099a5619182.tar.bz2 gentoo-f5802145b8065c2bed02f8fc052ce099a5619182.zip |
dev-ros/robot_pose_ekf: fix tests
Closes: https://bugs.gentoo.org/807322
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-ros/robot_pose_ekf')
-rw-r--r-- | dev-ros/robot_pose_ekf/Manifest | 4 | ||||
-rw-r--r-- | dev-ros/robot_pose_ekf/robot_pose_ekf-1.15.0.ebuild | 25 | ||||
-rw-r--r-- | dev-ros/robot_pose_ekf/robot_pose_ekf-9999.ebuild | 25 |
3 files changed, 54 insertions, 0 deletions
diff --git a/dev-ros/robot_pose_ekf/Manifest b/dev-ros/robot_pose_ekf/Manifest index 910798bf7005..42be081e4ebf 100644 --- a/dev-ros/robot_pose_ekf/Manifest +++ b/dev-ros/robot_pose_ekf/Manifest @@ -1 +1,5 @@ +DIST robot_pose_ekf-1.15.0-ekf_test2_indexed.bag 3693526 BLAKE2B 44dd3664a74233a75811d9979ce94bbf5a2b25544b9ffef7e1033fd68f3f119775db9bdec8d41ca85d409b9bf7784c1d8362f521159819ff9800d2206c01f172 SHA512 fb98e063e61b6424463e39d0e1bc7541632adce0533180a64801107927cc51c63d9e969c37d013df9230148db8687c810c0938389ca49712b5fbd48ee0063e0c +DIST robot_pose_ekf-1.15.0-zero_covariance_indexed.bag 71021 BLAKE2B 6cf243bb4b230488990c866a8b4d9166664aee8b236ea2b0fc4a0e6139e781ada2378d7605022fd30a16e17604619d9b121273ede0b7b2a059852d378454d931 SHA512 0772c6481e227dbeb8e09a2e344708570696037f8f79e90d00bb9f2ed8881410b56cfbfbccd20cfb06b3a5298afbf831515f897a97f3e97caa7e87ebdfe47abd DIST robot_pose_ekf-1.15.0.tar.gz 18789 BLAKE2B a2110275633291926d73e5a5d352b135836a12645078251967f1bdfeda2e1e266204dcb0d9c240362b9c63b82170f91a92ed8cb372d2b1b99faf3c5459bbd5fc SHA512 a17373488e229ecb3d9c00a44b1f4e9c458f392460d0828c5cc36df91b2a70efaf345aaa3ad2d7b031a442c2e2cac81b7d3a4dd59a280b14a67b9c6c1bb7e41c +DIST robot_pose_ekf-9999-ekf_test2_indexed.bag 3693526 BLAKE2B 44dd3664a74233a75811d9979ce94bbf5a2b25544b9ffef7e1033fd68f3f119775db9bdec8d41ca85d409b9bf7784c1d8362f521159819ff9800d2206c01f172 SHA512 fb98e063e61b6424463e39d0e1bc7541632adce0533180a64801107927cc51c63d9e969c37d013df9230148db8687c810c0938389ca49712b5fbd48ee0063e0c +DIST robot_pose_ekf-9999-zero_covariance_indexed.bag 71021 BLAKE2B 6cf243bb4b230488990c866a8b4d9166664aee8b236ea2b0fc4a0e6139e781ada2378d7605022fd30a16e17604619d9b121273ede0b7b2a059852d378454d931 SHA512 0772c6481e227dbeb8e09a2e344708570696037f8f79e90d00bb9f2ed8881410b56cfbfbccd20cfb06b3a5298afbf831515f897a97f3e97caa7e87ebdfe47abd diff --git a/dev-ros/robot_pose_ekf/robot_pose_ekf-1.15.0.ebuild b/dev-ros/robot_pose_ekf/robot_pose_ekf-1.15.0.ebuild index 59f91b30ba19..c4df8f75e8e6 100644 --- a/dev-ros/robot_pose_ekf/robot_pose_ekf-1.15.0.ebuild +++ b/dev-ros/robot_pose_ekf/robot_pose_ekf-1.15.0.ebuild @@ -29,3 +29,28 @@ DEPEND="${RDEPEND} dev-cpp/gtest ) virtual/pkgconfig" + +TEST_DATA="ekf_test2_indexed.bag zero_covariance_indexed.bag" + +SRC_URI="${SRC_URI} test? ( " +for i in ${TEST_DATA}; do + SRC_URI="${SRC_URI} http://download.ros.org/data/robot_pose_ekf/${i} -> ${P}-${i}" +done +SRC_URI="${SRC_URI} )" + +src_prepare() { + ros-catkin_src_prepare + if use test; then + for i in ${TEST_DATA} ; do + cp "${DISTDIR}/${P}-${i}" "${S}/${i}" || die + done + sed \ + -e "s#http://download.ros.org/data/robot_pose_ekf#file://${S}#" \ + -i CMakeLists.txt || die + fi +} + +src_test() { + export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}" + ros-catkin_src_test +} diff --git a/dev-ros/robot_pose_ekf/robot_pose_ekf-9999.ebuild b/dev-ros/robot_pose_ekf/robot_pose_ekf-9999.ebuild index 59f91b30ba19..c4df8f75e8e6 100644 --- a/dev-ros/robot_pose_ekf/robot_pose_ekf-9999.ebuild +++ b/dev-ros/robot_pose_ekf/robot_pose_ekf-9999.ebuild @@ -29,3 +29,28 @@ DEPEND="${RDEPEND} dev-cpp/gtest ) virtual/pkgconfig" + +TEST_DATA="ekf_test2_indexed.bag zero_covariance_indexed.bag" + +SRC_URI="${SRC_URI} test? ( " +for i in ${TEST_DATA}; do + SRC_URI="${SRC_URI} http://download.ros.org/data/robot_pose_ekf/${i} -> ${P}-${i}" +done +SRC_URI="${SRC_URI} )" + +src_prepare() { + ros-catkin_src_prepare + if use test; then + for i in ${TEST_DATA} ; do + cp "${DISTDIR}/${P}-${i}" "${S}/${i}" || die + done + sed \ + -e "s#http://download.ros.org/data/robot_pose_ekf#file://${S}#" \ + -i CMakeLists.txt || die + fi +} + +src_test() { + export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}" + ros-catkin_src_test +} |