[ros-actionlib] 01/01: Working on unit tests

Jochen Sprickerhof jspricke-guest at moszumanska.debian.org
Thu Aug 4 15:28:38 UTC 2016


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

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

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

    Working on unit tests
---
 debian/control |  7 ++++++-
 debian/rules   | 10 ++++++----
 2 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/debian/control b/debian/control
index 70f9573..54c61df 100644
--- a/debian/control
+++ b/debian/control
@@ -17,7 +17,12 @@ 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
 Standards-Version: 3.9.8
 Section: libs
 Homepage: http://www.ros.org/wiki/actionlib
diff --git a/debian/rules b/debian/rules
index a76f4ab..064de49 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,12 +2,14 @@
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/default.mk
 
+# Needed for unit tests
+export PYTHONPATH=$(CURDIR)/build/devel/lib/python2.7/dist-packages
+
 %:
-	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