1 |
commit: 1fe570906e3205cfaac2b434ecf38e645481c651 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 5 16:29:16 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=1fe57090 |
7 |
|
8 |
dev-ros/test_roscpp: fix tests |
9 |
|
10 |
Closes: https://bugs.gentoo.org/734690 |
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/test_roscpp/files/tests.patch | 12 ++++++++++++ |
15 |
dev-ros/test_roscpp/test_roscpp-1.15.8.ebuild | 6 ++++++ |
16 |
dev-ros/test_roscpp/test_roscpp-9999.ebuild | 6 ++++++ |
17 |
3 files changed, 24 insertions(+) |
18 |
|
19 |
diff --git a/dev-ros/test_roscpp/files/tests.patch b/dev-ros/test_roscpp/files/tests.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..80c18962dee |
22 |
--- /dev/null |
23 |
+++ b/dev-ros/test_roscpp/files/tests.patch |
24 |
@@ -0,0 +1,12 @@ |
25 |
+Index: test_roscpp/test/src/CMakeLists.txt |
26 |
+=================================================================== |
27 |
+--- test_roscpp.orig/test/src/CMakeLists.txt |
28 |
++++ test_roscpp/test/src/CMakeLists.txt |
29 |
+@@ -290,6 +290,7 @@ if(TARGET tests) |
30 |
+ ${PROJECT_NAME}-left_right |
31 |
+ ${PROJECT_NAME}-string_msg_expect |
32 |
+ ${PROJECT_NAME}-publisher |
33 |
++ ${PROJECT_NAME}-publisher_rate |
34 |
+ ${PROJECT_NAME}-subscriber |
35 |
+ ${PROJECT_NAME}-stamped_topic_statistics_empty_timestamp |
36 |
+ ${PROJECT_NAME}-topic_statistic_frequency |
37 |
|
38 |
diff --git a/dev-ros/test_roscpp/test_roscpp-1.15.8.ebuild b/dev-ros/test_roscpp/test_roscpp-1.15.8.ebuild |
39 |
index d1b28ba0aca..39bfc4bf09a 100644 |
40 |
--- a/dev-ros/test_roscpp/test_roscpp-1.15.8.ebuild |
41 |
+++ b/dev-ros/test_roscpp/test_roscpp-1.15.8.ebuild |
42 |
@@ -28,3 +28,9 @@ DEPEND="${RDEPEND} |
43 |
) |
44 |
" |
45 |
REQUIRED_USE="test? ( ros_messages_cxx )" |
46 |
+PATCHES=( "${FILESDIR}/tests.patch" ) |
47 |
+ |
48 |
+src_test() { |
49 |
+ export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}" |
50 |
+ ros-catkin_src_test |
51 |
+} |
52 |
|
53 |
diff --git a/dev-ros/test_roscpp/test_roscpp-9999.ebuild b/dev-ros/test_roscpp/test_roscpp-9999.ebuild |
54 |
index d1b28ba0aca..39bfc4bf09a 100644 |
55 |
--- a/dev-ros/test_roscpp/test_roscpp-9999.ebuild |
56 |
+++ b/dev-ros/test_roscpp/test_roscpp-9999.ebuild |
57 |
@@ -28,3 +28,9 @@ DEPEND="${RDEPEND} |
58 |
) |
59 |
" |
60 |
REQUIRED_USE="test? ( ros_messages_cxx )" |
61 |
+PATCHES=( "${FILESDIR}/tests.patch" ) |
62 |
+ |
63 |
+src_test() { |
64 |
+ export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}" |
65 |
+ ros-catkin_src_test |
66 |
+} |