[eso-midas] 01/01: Use TEST_DIR variable

Ole Streicher olebole at moszumanska.debian.org
Sun Mar 22 14:45:38 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 f7f2b5c063177fd63513c459971529718cd1b2db
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Sun Mar 22 15:45:30 2015 +0100

    Use TEST_DIR variable
---
 debian/rules | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/debian/rules b/debian/rules
index 99451f8..a44d55f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,7 @@ export MID_HOME0
 MID_INSTALL=$(MIDASHOME)/$(MIDVERS)/install/unix
 MID_SYS=$(MIDASHOME)/$(MIDVERS)/system/unix/
 MID_WORK=$(MIDASHOME)/midwork
+TEST_DIR=$(MIDASHOME)/test_tmp
 
 %:
 	dh  $@
@@ -64,14 +65,14 @@ override_dh_fixperms:
 	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 ; bye" )
+	mkdir -p $(TEST_DIR)
+	( cd $(TEST_DIR) ; $(MID_SYS)/inmidas -m $(MID_WORK) -j "@ vericopy ; @@ veriall -nodisplay ; bye" )
 	test -f $(MID_WORK)/veriall_*
-	rm -rf test_tmp
+	rm -rf $(TEST_DIR)
 
 override_dh_makeshlibs:
 	# Avoid Lintian complaint: we don't have public shared libs
 
 override_dh_clean:
 	dh_clean
-	rm -rf $(MIDVERS) $(MID_WORK)
+	rm -rf $(MIDVERS) $(MID_WORK) $(TEST_DIR)

-- 
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