[pyferret] 87/110: [WIP] setup and run tests

Alastair McKinstry mckinstry at moszumanska.debian.org
Fri Jul 28 08:42:15 UTC 2017


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

mckinstry pushed a commit to branch debian/master
in repository pyferret.

commit 3a83711943efac628fdd0ee5133c25cc1cfd4228
Author: Alastair McKinstry <mckinstry at debian.org>
Date:   Mon Aug 15 00:00:30 2016 +0100

    [WIP] setup and run tests
---
 debian/rules | 22 ++++++++++++++++++----
 1 file changed, 18 insertions(+), 4 deletions(-)

diff --git a/debian/rules b/debian/rules
index 25114f2..ce1dbc9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -37,6 +37,9 @@ override_dh_auto_install:
 	ln -s $(CURDIR)/install/lib/$(PY3)/site-packages//pyferret/libpyferret.cpython-35m-$(ARCH).so \
 		$(INSTALLDIR)/lib/$(PY3)/libpyferret.so
 	# Build and install 
+	# Horrible hack breaks The Debian Way. I'm doing the build in the 'install' phase, as i'm installing into debian/tmp
+	# Doing it any earlier, and dh_prep will remove debian/tmp. 
+	# This means I'm also doing 'test' after the Install, not between during make & install. gack.
 	for p in $(PY2) $(PY3) ; do \
 		$(MAKE) HOSTTYPE=debian PYTHON_EXE=$$p clean all install ; \
 		done
@@ -44,12 +47,23 @@ override_dh_auto_install:
 	find debian -type d -name __pycache__ -delete
 	dh_numpy
 	dh_numpy3
+	@echo "Now doing bench tests"
+	ln -s debian/pyferret2  $(INSTALLDIR)/lib/$(PY2)/pyferret
+	ln -s debian/pyferret3  $(INSTALLDIR)/lib/$(PY3)/pyferret
+	# First build necessary files
+	for p in $(PY2) $(PY3) ; do \
+		sed -e 's%@ARCH@%${ARCH}%' \
+                -e 's%@LIBDIR@%${LIBDIR}%' \
+		-e 's%@CURDIR@%${CURDIR}%' \
+                -e "s%@PYTHON@%$$p%" \
+                < debian/site_specific.mk.in > site_specific.mk ; \
+		PATH=$(INSTALLDIR)/lib/$$p:$(PATH) PYTHONPATH=$(INSTALLDIR)/lib/$$p/site-packages \
+		$(MAKE)  -C bench run_tests \
+		HOSTTYPE=debian  FER_DIR=/usr/share/ferret-vis ; \
+		done
 
 override_dh_auto_test:
-	echo "Tests bypassed for the moment."
-	# First build necessary files
-	#$(MAKE) -C bench make_stream_file
-	# (cd bench && ./run_all )
+	@echo "Dummy test, to avoid calling make. Do test later"
 
 override_dh_auto_clean:
 	# use system xpm.h, not supplied ones

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



More information about the debian-science-commits mailing list