public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alexis Ballier" <aballier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ros/gmapping/
Date: Tue,  6 Apr 2021 14:35:18 +0000 (UTC)	[thread overview]
Message-ID: <1617719715.22dde192d65d87430fb8546a362a6c9f6145826c.aballier@gentoo> (raw)

commit:     22dde192d65d87430fb8546a362a6c9f6145826c
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Tue Apr  6 13:52:59 2021 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Tue Apr  6 14:35:15 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22dde192

dev-ros/gmapping: fix tests

Closes: https://bugs.gentoo.org/780507
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>

 dev-ros/gmapping/Manifest              | 12 +++++++++++
 dev-ros/gmapping/gmapping-1.4.2.ebuild | 37 +++++++++++++++++++++++++++++++++-
 dev-ros/gmapping/gmapping-9999.ebuild  | 37 +++++++++++++++++++++++++++++++++-
 3 files changed, 84 insertions(+), 2 deletions(-)

diff --git a/dev-ros/gmapping/Manifest b/dev-ros/gmapping/Manifest
index 4784f82b3dc..66fc97e6a87 100644
--- a/dev-ros/gmapping/Manifest
+++ b/dev-ros/gmapping/Manifest
@@ -1 +1,13 @@
+DIST gmapping-1.4.2-basic_localization_stage_groundtruth.pgm 16000058 BLAKE2B 4bf5494b34be09f4dcf63c26c8bcfd29b63e96a11d667dd8083dee6a2f8352b67c84ffa5603ec262a5af3e7fcbb7ca71ca77563df92f8cf72d3e4cdb2f817226 SHA512 32be0d40c84b2a5320215efee317d97e25131aa4ce2f39e6dbdb4481b4782ba8d437dd8d086a60728ee215d6243ea9ff0693c6bffd2cae542977d5bd55c91fad
+DIST gmapping-1.4.2-basic_localization_stage_indexed.bag 8554014 BLAKE2B 56605fc2642ee7dfe93379c620e8888da56260e23155dc68b3026c59d219cbd287ea04e9387bf3105a1089f8d930976d2a9875775d63646def090f2fdfa3f9e5 SHA512 2060ad1f65150043b254f820357eafe179483e3fd12bd0d85721841bfc9a15bf702dfbb34f99cb9b1566bafe64b79b8777d6e7c2ee77bc33ca7e87eb4b6fb240
+DIST gmapping-1.4.2-hallway_slow_2011-03-04-21-41-33.bag 43648223 BLAKE2B 93d733a8ed4e959c0a786369ce95c51698849591de200b99da01cd4a3acd22dd2faeb0e532c0a29add1b04f0de88384df171bcc404cefb772a19171949d71a77 SHA512 dd97fa6a0c22a2802473d343ad9f9b26ba8ebd119c8baa6ae3bcf19e913742a1456aa2879aef64c1bd6aab987d5b164f6cb4c251a3fd0736a290465b7f0f92bc
+DIST gmapping-1.4.2-test_replay_crash.bag 191247 BLAKE2B 348b6b1766cc2e2909106a544936538ced8a7d33536f5a964de03155df531ca57733386834804f81071b40a09c188e32ee23ef6d14f8436849e0d20a84bd7297 SHA512 e94b351d2a3406ee01c14b09237e9108812a0e65f3cbfceeb4b7def514f61ca934545764962b36804e28fc9cac8ce17f3f6d18a7cb7574dcb0a2f169cd7a1014
+DIST gmapping-1.4.2-test_turtlebot.bag 3003517 BLAKE2B d5d9f468aa5ac700bc3a3f819fe3ab1bd2ea7a28fb468dac9ac82c0bbbc1d59146bce132482baf81cfd763c25e82f9fa5cfbac28c6cc2fea6e114063b0daaf17 SHA512 8a9d9a0d63da607a2fc220e15e37ea339a254433dcb9b91e3b3041f032924177078ddeaef50df00e2ca0e5a9bd80ec17eadd8bfb4f0f879faab62de54a0555a4
+DIST gmapping-1.4.2-test_upside_down.bag 9353464 BLAKE2B e4835be6d70595e67c25eac28803857c6d14375b63e5c11991d50b7e47614e093728a628281241cfd5678e4ed84a776890ab68ccf129ddcdcb2b4c693afa4c5c SHA512 c8e193fd65c049b436c24677ba26e1e2e29f5ea744ea4e50f311224c4dbca685ba7da1804bcf3a41cea41ae79a1848158c8fdb0c4954cfa4ec4130089adfc7b4
+DIST gmapping-9999-basic_localization_stage_groundtruth.pgm 16000058 BLAKE2B 4bf5494b34be09f4dcf63c26c8bcfd29b63e96a11d667dd8083dee6a2f8352b67c84ffa5603ec262a5af3e7fcbb7ca71ca77563df92f8cf72d3e4cdb2f817226 SHA512 32be0d40c84b2a5320215efee317d97e25131aa4ce2f39e6dbdb4481b4782ba8d437dd8d086a60728ee215d6243ea9ff0693c6bffd2cae542977d5bd55c91fad
+DIST gmapping-9999-basic_localization_stage_indexed.bag 8554014 BLAKE2B 56605fc2642ee7dfe93379c620e8888da56260e23155dc68b3026c59d219cbd287ea04e9387bf3105a1089f8d930976d2a9875775d63646def090f2fdfa3f9e5 SHA512 2060ad1f65150043b254f820357eafe179483e3fd12bd0d85721841bfc9a15bf702dfbb34f99cb9b1566bafe64b79b8777d6e7c2ee77bc33ca7e87eb4b6fb240
+DIST gmapping-9999-hallway_slow_2011-03-04-21-41-33.bag 43648223 BLAKE2B 93d733a8ed4e959c0a786369ce95c51698849591de200b99da01cd4a3acd22dd2faeb0e532c0a29add1b04f0de88384df171bcc404cefb772a19171949d71a77 SHA512 dd97fa6a0c22a2802473d343ad9f9b26ba8ebd119c8baa6ae3bcf19e913742a1456aa2879aef64c1bd6aab987d5b164f6cb4c251a3fd0736a290465b7f0f92bc
+DIST gmapping-9999-test_replay_crash.bag 191247 BLAKE2B 348b6b1766cc2e2909106a544936538ced8a7d33536f5a964de03155df531ca57733386834804f81071b40a09c188e32ee23ef6d14f8436849e0d20a84bd7297 SHA512 e94b351d2a3406ee01c14b09237e9108812a0e65f3cbfceeb4b7def514f61ca934545764962b36804e28fc9cac8ce17f3f6d18a7cb7574dcb0a2f169cd7a1014
+DIST gmapping-9999-test_turtlebot.bag 3003517 BLAKE2B d5d9f468aa5ac700bc3a3f819fe3ab1bd2ea7a28fb468dac9ac82c0bbbc1d59146bce132482baf81cfd763c25e82f9fa5cfbac28c6cc2fea6e114063b0daaf17 SHA512 8a9d9a0d63da607a2fc220e15e37ea339a254433dcb9b91e3b3041f032924177078ddeaef50df00e2ca0e5a9bd80ec17eadd8bfb4f0f879faab62de54a0555a4
+DIST gmapping-9999-test_upside_down.bag 9353464 BLAKE2B e4835be6d70595e67c25eac28803857c6d14375b63e5c11991d50b7e47614e093728a628281241cfd5678e4ed84a776890ab68ccf129ddcdcb2b4c693afa4c5c SHA512 c8e193fd65c049b436c24677ba26e1e2e29f5ea744ea4e50f311224c4dbca685ba7da1804bcf3a41cea41ae79a1848158c8fdb0c4954cfa4ec4130089adfc7b4
 DIST slam_gmapping-1.4.2.tar.gz 21721 BLAKE2B 63ac4ccc1238cc4fecbf416e2fb716d1b679b4ae4d2d94508887ede8894402d77564af0f60a3b8d0b1661c91d755a5276aabd3894826af436ce11bd6119619b2 SHA512 d21810149ffe09cf57730e8657298f0d5c7aaa2cd6257b4e891ef990e2b6c727f2246d22d7272969a11604e33887e245d8d66980cb0c158f875810f4ff17072a

diff --git a/dev-ros/gmapping/gmapping-1.4.2.ebuild b/dev-ros/gmapping/gmapping-1.4.2.ebuild
index 5fcdea26618..b6800510627 100644
--- a/dev-ros/gmapping/gmapping-1.4.2.ebuild
+++ b/dev-ros/gmapping/gmapping-1.4.2.ebuild
@@ -23,4 +23,39 @@ RDEPEND="
 "
 DEPEND="${RDEPEND}
 	dev-ros/nav_msgs[${CATKIN_MESSAGES_CXX_USEDEP}]
-	dev-ros/rostest"
+	test? (
+		dev-ros/rostest
+		dev-cpp/gtest
+	)
+"
+TEST_DATA="
+	basic_localization_stage_indexed.bag
+	hallway_slow_2011-03-04-21-41-33.bag
+	basic_localization_stage_groundtruth.pgm
+"
+PERCEPTION_TEST_DATA="
+	test_replay_crash.bag
+	test_turtlebot.bag
+	test_upside_down.bag
+"
+SRC_URI="${SRC_URI} test? ( "
+for i in ${TEST_DATA}; do
+	SRC_URI="${SRC_URI} http://download.ros.org/data/gmapping/${i} -> ${P}-${i}"
+done
+for i in ${PERCEPTION_TEST_DATA}; do
+	SRC_URI="${SRC_URI} https://github.com/ros-perception/slam_gmapping_test_data/raw/master/${i} -> ${P}-${i}"
+done
+SRC_URI="${SRC_URI} )"
+
+src_prepare() {
+	ros-catkin_src_prepare
+	if use test; then
+		for i in ${TEST_DATA} ${PERCEPTION_TEST_DATA}; do
+			cp "${DISTDIR}/${P}-${i}" "${S}/${i}" || die
+		done
+		sed \
+			-e "s#http://download.ros.org/data/gmapping#file://${S}#" \
+			-e "s#https://github.com/ros-perception/slam_gmapping_test_data/raw/master#file://${S}#" \
+			-i CMakeLists.txt || die
+	fi
+}

diff --git a/dev-ros/gmapping/gmapping-9999.ebuild b/dev-ros/gmapping/gmapping-9999.ebuild
index 5fcdea26618..b6800510627 100644
--- a/dev-ros/gmapping/gmapping-9999.ebuild
+++ b/dev-ros/gmapping/gmapping-9999.ebuild
@@ -23,4 +23,39 @@ RDEPEND="
 "
 DEPEND="${RDEPEND}
 	dev-ros/nav_msgs[${CATKIN_MESSAGES_CXX_USEDEP}]
-	dev-ros/rostest"
+	test? (
+		dev-ros/rostest
+		dev-cpp/gtest
+	)
+"
+TEST_DATA="
+	basic_localization_stage_indexed.bag
+	hallway_slow_2011-03-04-21-41-33.bag
+	basic_localization_stage_groundtruth.pgm
+"
+PERCEPTION_TEST_DATA="
+	test_replay_crash.bag
+	test_turtlebot.bag
+	test_upside_down.bag
+"
+SRC_URI="${SRC_URI} test? ( "
+for i in ${TEST_DATA}; do
+	SRC_URI="${SRC_URI} http://download.ros.org/data/gmapping/${i} -> ${P}-${i}"
+done
+for i in ${PERCEPTION_TEST_DATA}; do
+	SRC_URI="${SRC_URI} https://github.com/ros-perception/slam_gmapping_test_data/raw/master/${i} -> ${P}-${i}"
+done
+SRC_URI="${SRC_URI} )"
+
+src_prepare() {
+	ros-catkin_src_prepare
+	if use test; then
+		for i in ${TEST_DATA} ${PERCEPTION_TEST_DATA}; do
+			cp "${DISTDIR}/${P}-${i}" "${S}/${i}" || die
+		done
+		sed \
+			-e "s#http://download.ros.org/data/gmapping#file://${S}#" \
+			-e "s#https://github.com/ros-perception/slam_gmapping_test_data/raw/master#file://${S}#" \
+			-i CMakeLists.txt || die
+	fi
+}


             reply	other threads:[~2021-04-06 14:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-06 14:35 Alexis Ballier [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-04-05  9:52 [gentoo-commits] repo/gentoo:master commit in: dev-ros/gmapping/ Alexis Ballier
2021-04-05  9:52 Alexis Ballier
2020-10-12 19:08 Alexis Ballier
2019-08-28 17:24 Alexis Ballier
2019-08-28 17:24 Alexis Ballier
2018-02-12 14:03 Alexis Ballier
2018-02-12 14:03 Alexis Ballier
2018-01-28 12:54 Alexis Ballier
2017-11-04 13:23 Alexis Ballier
2015-09-30  9:18 Alexis Ballier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1617719715.22dde192d65d87430fb8546a362a6c9f6145826c.aballier@gentoo \
    --to=aballier@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox