[xmds2] 04/10: Run the unit test suite run_tests.py
Rafael Laboissière
rlaboiss-guest at moszumanska.debian.org
Tue Jan 7 08:30:20 UTC 2014
This is an automated email from the git hooks/post-receive script.
rlaboiss-guest pushed a commit to branch master
in repository xmds2.
commit 9d6c2f8959f6f9b2e44f6bd9f9a652f9a256ed99
Author: Rafael Laboissiere <rafael at laboissiere.net>
Date: Mon Jan 6 13:30:47 2014 +0100
Run the unit test suite run_tests.py
Also, build-depend on all run-time dependencies, such that the unit test
suite works, and clean up the testsuite_results directory.
---
debian/changelog | 3 +++
debian/control | 7 ++++++-
debian/rules | 14 ++++++++++++--
3 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index a32b569..654daae 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,9 +17,12 @@ xmds2 (2.1.4-1) UNRELEASED; urgency=low
+ Add paragraph to the Description field about the differences to xmds v1
+ Add dependency to libfftw3-mpi-dev
+ Replace dependencies on mpich2 by mpi-default-dev
+ + Build-depend on all run-time dependencies, such that the unit test
+ suite works
* debian/rules:
+ Remove the build directory in the clean rule
+ Run the lorenz.xmds example as unit test
+ + Run the unit test suite run_tests.py
* debian/watch: Add file for uscan
* Bump the debhelper compatibility level to 9
* debian/copyright: DEPS-5-compliant
diff --git a/debian/control b/debian/control
index 2a60c3d..0c76731 100644
--- a/debian/control
+++ b/debian/control
@@ -10,7 +10,12 @@ Build-Depends: debhelper (>= 9),
python-mpmath,
python-numpy,
python-lxml,
- python-cheetah
+ python-cheetah,
+ libfftw3-dev,
+ libfftw3-mpi-dev,
+ libhdf5-serial-dev,
+ libatlas-base-dev,
+ mpi-default-dev
Standards-Version: 3.9.5
XS-Python-Version: ${python:Versions}
Homepage: http://xmds.sourceforge.net/
diff --git a/debian/rules b/debian/rules
index a60c7f8..acb25c3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,8 @@
#!/usr/bin/make -f
# -*- makefile -*-
+XMDS_USER_DATA = $(CURDIR)/debian/xmds-user-data
+
#DH_VERBOSE=1
%:
@@ -11,10 +13,17 @@ override_dh_auto_install:
override_dh_auto_test:
( export PYTHONPATH=$$(pwd) ; \
+ export PATH=$$(pwd)/bin-test:$$PATH ; \
+ export XMDS_USER_DATA=$(XMDS_USER_DATA) ; \
+ unset CXXFLAGS ; export CXXFLAGS ; \
+ mkdir bin-test ; \
+ install -m 755 bin/* bin-test ; \
+ xmds2 --reconfigure ; \
+ ./run_tests.py ; \
cd ./examples ; \
- python ../bin/xmds2 lorenz.xmds ; \
+ xmds2 lorenz.xmds ; \
./lorenz ; \
- python ../bin/xsil2graphics2 -m lorenz.xsil )
+ xsil2graphics2 -m lorenz.xsil )
override_dh_auto_clean:
dh_clean
@@ -28,3 +37,4 @@ override_dh_auto_clean:
rm -f xpdeint/config.log
rm -rf build/
( cd examples ; rm -f lorenz.cc lorenz lorenz.xsil lorenz.h5 lorenz.m )
+ rm -rf testsuite_results $(XMDS_USER_DATA) bin-test
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/xmds2.git
More information about the debian-science-commits
mailing list