Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ros/xacro/, dev-ros/xacro/files/
Date: Wed, 05 Aug 2020 17:55:42
Message-Id: 1596650100.6eb03dd80d6c042a6397f10c1631420f4e25b602.aballier@gentoo
1 commit: 6eb03dd80d6c042a6397f10c1631420f4e25b602
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 5 16:14:04 2020 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 5 17:55:00 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6eb03dd8
7
8 dev-ros/xacro: fix tests
9
10 Closes: https://bugs.gentoo.org/734694
11 Package-Manager: Portage-3.0.1, Repoman-2.3.23
12 Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>
13
14 dev-ros/xacro/files/tests.patch | 21 +++++++++++++++++++++
15 dev-ros/xacro/xacro-1.14.1.ebuild | 6 ++++++
16 dev-ros/xacro/xacro-9999.ebuild | 6 ++++++
17 3 files changed, 33 insertions(+)
18
19 diff --git a/dev-ros/xacro/files/tests.patch b/dev-ros/xacro/files/tests.patch
20 new file mode 100644
21 index 00000000000..28d4b5768c3
22 --- /dev/null
23 +++ b/dev-ros/xacro/files/tests.patch
24 @@ -0,0 +1,21 @@
25 +Index: xacro-1.14.1/test/test-cmake.sh
26 +===================================================================
27 +--- xacro-1.14.1.orig/test/test-cmake.sh
28 ++++ xacro-1.14.1/test/test-cmake.sh
29 +@@ -15,6 +15,7 @@
30 + test -d $1 || exit 2
31 + test -r $1/CMakeLists.txt || exit 2
32 +
33 ++basedir=`pwd`/../
34 + dir=`basename $1`
35 +
36 + # redirect stdout and stderr to $dir.log
37 +@@ -26,7 +27,7 @@ mkdir $dir
38 + cd $dir
39 +
40 + echo "*** running cmake ***"
41 +-cmake -DCATKIN_DEVEL_PREFIX=devel -DCMAKE_INSTALL_PREFIX=install $1 || exit $?
42 ++cmake -DCATKIN_DEVEL_PREFIX="${basedir}/devel" -DCMAKE_INSTALL_PREFIX=install $1 || exit $?
43 +
44 + echo
45 + echo "*** running make ***"
46
47 diff --git a/dev-ros/xacro/xacro-1.14.1.ebuild b/dev-ros/xacro/xacro-1.14.1.ebuild
48 index 70c940ca810..775778479d6 100644
49 --- a/dev-ros/xacro/xacro-1.14.1.ebuild
50 +++ b/dev-ros/xacro/xacro-1.14.1.ebuild
51 @@ -22,3 +22,9 @@ DEPEND="${RDEPEND}
52 "
53 RDEPEND="${RDEPEND}
54 dev-ros/roslaunch[${PYTHON_SINGLE_USEDEP}]"
55 +PATCHES=( "${FILESDIR}/tests.patch" )
56 +
57 +src_test() {
58 + export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}"
59 + ros-catkin_src_test
60 +}
61
62 diff --git a/dev-ros/xacro/xacro-9999.ebuild b/dev-ros/xacro/xacro-9999.ebuild
63 index 70c940ca810..775778479d6 100644
64 --- a/dev-ros/xacro/xacro-9999.ebuild
65 +++ b/dev-ros/xacro/xacro-9999.ebuild
66 @@ -22,3 +22,9 @@ DEPEND="${RDEPEND}
67 "
68 RDEPEND="${RDEPEND}
69 dev-ros/roslaunch[${PYTHON_SINGLE_USEDEP}]"
70 +PATCHES=( "${FILESDIR}/tests.patch" )
71 +
72 +src_test() {
73 + export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}"
74 + ros-catkin_src_test
75 +}