[ros-actionlib] 01/01: Enable unit tests

Jochen Sprickerhof jspricke-guest at moszumanska.debian.org
Fri Aug 5 11:55:59 UTC 2016


This is an automated email from the git hooks/post-receive script.

jspricke-guest pushed a commit to branch master
in repository ros-actionlib.

commit dd7e15bd654d2696294e5775378f33de4c67bf2c
Author: Jochen Sprickerhof <git at jochen.sprickerhof.de>
Date:   Thu Aug 4 17:28:06 2016 +0200

    Enable unit tests
---
 debian/control | 10 +++++++++-
 debian/rules   | 11 +++++++----
 2 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/debian/control b/debian/control
index 70f9573..9a747d7 100644
--- a/debian/control
+++ b/debian/control
@@ -17,7 +17,15 @@ Build-Depends: debhelper (>= 9), catkin (>= 0.6.16-4),
 		python-rosunit,
 		libroscpp-msgs-dev,
 		dh-python,
-		libconsole-bridge-dev
+		libconsole-bridge-dev,
+		librostest-dev,
+		python-rospkg,
+		python-rostest,
+		libroslib-dev,
+		python-roslaunch,
+		python-actionlib-msgs,
+		python-rosnode,
+		python-rostopic
 Standards-Version: 3.9.8
 Section: libs
 Homepage: http://www.ros.org/wiki/actionlib
diff --git a/debian/rules b/debian/rules
index a76f4ab..8c64390 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,12 +2,15 @@
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/default.mk
 
+# Needed for unit tests
+export PYTHONPATH=$(CURDIR)/build/devel/lib/python2.7/dist-packages
+export ROS_HOME=$(CURDIR)/build/ros
+
 %:
-	dh $@ --parallel --buildsystem=cmake --with python2
+	dh $@ --parallel --buildsystem=cmake --with python2 --builddirectory=build
 
-override_dh_auto_configure:
-	dh_auto_configure -- \
-	-DCATKIN_ENABLE_TESTING=OFF
+override_dh_auto_test:
+	make -C build run_tests
 
 get-orig-source:
 	uscan --verbose --force-download --repack --compress xz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ros/ros-actionlib.git



More information about the debian-science-commits mailing list