[eso-midas] 01/01: Run unit tests (still no error on test failures)

Ole Streicher olebole at moszumanska.debian.org
Sun Mar 8 16:44:44 UTC 2015


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

olebole pushed a commit to branch debian
in repository eso-midas.

commit 134de3de897925fb993367b6176baf91fbd6c347
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Sun Mar 8 17:44:39 2015 +0100

    Run unit tests (still no error on test failures)
---
 debian/rules | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/debian/rules b/debian/rules
index 8bd7cc3..71bfff1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,7 +12,6 @@ export MIDASHOME
 MID_HOME=$(MIDASHOME)/$(MIDVERS)
 MID_HOME0=/usr/lib/eso-midas/$(MIDVERS)
 export MID_HOME0
-
 MID_INSTALL=$(MIDASHOME)/$(MIDVERS)/install/unix
 MID_SYS=$(MIDASHOME)/$(MIDVERS)/system/unix/
 MID_WORK=$(MIDASHOME)/midwork
@@ -34,14 +33,14 @@ override_dh_auto_build:
 	(cd $(MID_HOME)/monit ; make syskeys.unix )
 	$(MID_SYS)/inmidas -m $(MID_WORK) -j "@ compile.all"
 	$(MID_SYS)/inmidas -m $(MID_WORK) -j "@ ascii_bin no ; bye"
+
+override_dh_install:
 	(cd $(MID_HOME) ; yes | $(MID_SYS)/cleanmidas -a)
 	sed -e "s:^MIDVERS0=.*:MIDVERS0=$(MIDVERS):" \
 	    -e "s:^MIDASHOME0=.*:MIDASHOME0=/usr/lib/eso-midas:" \
 	    -i $(MID_HOME)/system/unix/inmidas \
 	       $(MID_HOME)/system/unix/helpmidas \
 	       $(MID_HOME)/system/unix/drs
-
-override_dh_install:
 	dh_install -X.mod -XCOPYING -Xsetup~ \
 	           -X${MIDVERS}/test -X${MIDVERS}/install \
 	           -X${MIDVERS}/system/unix/man -X${MIDVERS}/libsrc/readline
@@ -57,6 +56,11 @@ override_dh_fixperms:
 	find debian/eso-midas/$(MID_HOME0)/ -name \*.sh | xargs chmod 0755 
 	chmod 0755 debian/eso-midas/$(MID_HOME0)/util/bench/brun
 
+override_dh_auto_test:
+	mkdir test_tmp
+	( cd test_tmp ; $(MID_SYS)/inmidas -m $(MID_WORK) -j "@ vericopy ; @@ veriall -nodisplay 100 2 ; bye" )
+	rm -rf test_tmp
+
 override_dh_makeshlibs:
 	# Avoid Lintian complaint: we don't have public shared libs
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/eso-midas.git



More information about the debian-science-commits mailing list