[Debian-astro-commits] [gyoto] 03/03: * Add autopkgtest suite * Install gyoto.pc * Install gyoto-mpi-worker*

Thibaut Jean-Claude Paumard thibaut at moszumanska.debian.org
Sat May 23 11:45:04 UTC 2015


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

thibaut pushed a commit to branch master
in repository gyoto.

commit d8b7021acb97168a02cabd333c9f408e1a78bd1b
Author: Thibaut Paumard <paumard at users.sourceforge.net>
Date:   Sat May 23 13:43:50 2015 +0200

    * Add autopkgtest suite
    * Install gyoto.pc
    * Install gyoto-mpi-worker*
---
 debian/control                | 22 +++++++++++++++-------
 debian/gyoto.install          |  1 +
 debian/gyoto.manpages         |  1 +
 debian/libgyoto2-dev.install  |  1 +
 debian/tests/control          | 30 ++++++++++++++++++++++++++++++
 debian/tests/gyoto-mpi        | 12 ++++++++++++
 debian/tests/python-gyoto     | 16 ++++++++++++++++
 debian/tests/python-gyoto-mpi | 16 ++++++++++++++++
 debian/tests/yorick-gyoto     | 26 ++++++++++++++++++++++++++
 debian/tests/yorick-gyoto-mpi | 26 ++++++++++++++++++++++++++
 10 files changed, 144 insertions(+), 7 deletions(-)

diff --git a/debian/control b/debian/control
index 32661c5..8e720aa 100644
--- a/debian/control
+++ b/debian/control
@@ -15,6 +15,7 @@ Build-Depends-Indep: doxygen-latex,
 Standards-Version: 3.9.6
 X-Python-Version: >= 2.6
 X-Python3-Version: >= 3.2
+Testsuite: autopkgtest
 Vcs-Git: git://anonscm.debian.org/debian-astro/packages/gyoto.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-astro/packages/gyoto.git
 Homepage: http://gyoto.obspm.fr
@@ -32,19 +33,23 @@ Description: General relativistic ray-tracing
  result in FITS format.
  .
  More complex uses of the Gyoto framework can be achieved using the
- yorick-gyoto package. Gyoto can be extended with plug-ins (see
- libgyoto2-dev).
+ yorick-gyoto, python-gyoto or python3-gyoto packages. Gyoto can be
+ extended with plug-ins (see libgyoto2-dev).
 
 Package: libgyoto2
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Pre-Depends: ${misc:Pre-Depends}
+Recommends: gyoto
 Description: General relativistic geodesic integration and ray-tracing
  Gyoto aims at providing a framework for computing orbits and
  ray-traced images in General relativity. It consists in a shared
  library (this package), utility programs (in the gyoto package), and
- a plug-in for the Yorick programing language (in yorick-gyoto). Gyoto
- can be extended with plug-ins (see libgyoto2-dev).
+ a plug-in for the Yorick and Python 2 and 3 programing languages (in
+ yorick-gyoto, python-gyoto and python3-gyoto respectively). Gyoto can
+ be extended with plug-ins (see libgyoto2-dev).
+ .
+ MPI parallelization requires the gyoto package.
 
 Package: gyoto-dbg
 Architecture: any
@@ -52,15 +57,18 @@ Section: debug
 Depends: libgyoto2 (= ${binary:Version}),
 	 gyoto (= ${binary:Version}) [!kfreebsd-any],
 	 yorick-gyoto (= ${binary:Version}),
+	 python-gyoto (= ${binary:Version}),
+	 python3-gyoto (= ${binary:Version}),
 	 ${misc:Depends}
 Description: debugging symbols for gyoto, libgyoto2 and yorick-gyoto
  Gyoto aims at providing a framework for computing orbits and
  ray-traced images in General relativity. It consists in a shared
  library (this package), utility programs (in the gyoto package), and
- a plug-in for the Yorick programing language (in yorick-gyoto).
+ a plug-in for the Yorick and Python 2 and 3 programing language (in
+ yorick-gyoto, python-gyoto and python3-gyoto).
  .
- This package contains the debugging symbols for the gyoto, libgyoto2
- and yorick-gyoto packages.
+ This package contains the debugging symbols for the gyoto, libgyoto2,
+ yorick-gyoto, python-gyoto and python3-gyoto packages.
 
 Package: libgyoto2-dev
 Architecture: any
diff --git a/debian/gyoto.install b/debian/gyoto.install
index ed126ef..bd14117 100644
--- a/debian/gyoto.install
+++ b/debian/gyoto.install
@@ -1 +1,2 @@
 usr/bin/gyoto
+usr/bin/gyoto-mpi-worker.*
diff --git a/debian/gyoto.manpages b/debian/gyoto.manpages
index 39deba6..9d48910 100644
--- a/debian/gyoto.manpages
+++ b/debian/gyoto.manpages
@@ -1 +1,2 @@
 bin/gyoto.1
+bin/gyoto-mpi-worker.*.1
diff --git a/debian/libgyoto2-dev.install b/debian/libgyoto2-dev.install
index 82b42dd..9909f63 100644
--- a/debian/libgyoto2-dev.install
+++ b/debian/libgyoto2-dev.install
@@ -1,3 +1,4 @@
 usr/include
 usr/lib/*/*.a
 usr/lib/*/gyoto/*/*.a
+usr/lib/*/pkgconfig
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..8d6a603
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,30 @@
+Tests: gyoto
+Depends: gyoto
+Restrictions: allow-stderr
+
+Tests: gyoto-mpi
+Depends: gyoto
+Restrictions: isolation-container allow-stderr
+
+Tests: yorick-gyoto
+Depends: yorick-gyoto
+Restrictions: allow-stderr
+
+Tests: yorick-gyoto-mpi
+Depends: yorick-gyoto, gyoto
+Restrictions: isolation-container allow-stderr
+
+Tests: python-gyoto
+Depends: python-gyoto, python3-gyoto,
+	 python-all, python3-all,
+	 python-numpy, python3-numpy,
+	 python-matplotlib, python3-matplotlib
+Restrictions: allow-stderr
+
+Tests: python-gyoto-mpi
+Depends: python-gyoto, python3-gyoto, gyoto,
+	 python-all, python3-all,
+	 python-numpy, python3-numpy,
+	 python-matplotlib, python3-matplotlib,
+	 python-mpi4py, python3-mpi4py
+Restrictions: isolation-container allow-stderr
diff --git a/debian/tests/gyoto-mpi b/debian/tests/gyoto-mpi
new file mode 100755
index 0000000..e7b0bd3
--- /dev/null
+++ b/debian/tests/gyoto-mpi
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -e
+
+EXAMPLES_DIR=/usr/share/doc/gyoto/examples
+BASE_NAMES=`basename -s.xml ${EXAMPLES_DIR}/*.xml | sed 's/example-[^ ]*-rotstar3_1//'`
+GYOTO="/usr/bin/gyoto --nprocesses=4 --nthreads=1 --resolution=32"
+
+for base in ${BASE_NAMES} ; do
+    mpirun ${GYOTO} ${EXAMPLES_DIR}/${base}.xml \!${ADT_ARTIFACTS}/${base}-mpi.fits ;
+done
+
+exit 0
diff --git a/debian/tests/python-gyoto b/debian/tests/python-gyoto
new file mode 100755
index 0000000..d39ab9c
--- /dev/null
+++ b/debian/tests/python-gyoto
@@ -0,0 +1,16 @@
+#!/bin/sh
+set -e
+
+SRC_ROOT=`pwd`
+
+mkdir -p ${ADTTMP}/doc
+cp -a doc/examples ${ADTTMP}/doc/
+mkdir -p ${ADTTMP}/python
+cd ${ADTTMP}/python
+echo "backend : PDF" > matplotlibrc
+
+for python in `pyversions -s` `py3versions -s` ; do
+    $python ${SRC_ROOT}/python/example.py ;
+done
+
+exit 0
diff --git a/debian/tests/python-gyoto-mpi b/debian/tests/python-gyoto-mpi
new file mode 100755
index 0000000..fd30e37
--- /dev/null
+++ b/debian/tests/python-gyoto-mpi
@@ -0,0 +1,16 @@
+#!/bin/sh
+set -e
+
+SRC_ROOT=`pwd`
+
+mkdir -p ${ADTTMP}/doc
+cp -a doc/examples ${ADTTMP}/doc/
+mkdir -p ${ADTTMP}/python
+cd ${ADTTMP}/python
+echo "backend : PDF" > matplotlibrc
+
+for python in `pyversions -s` `py3versions -s` ; do
+    mpirun $python ${SRC_ROOT}/python/example-mpi.py ;
+done
+
+exit 0
diff --git a/debian/tests/yorick-gyoto b/debian/tests/yorick-gyoto
new file mode 100755
index 0000000..4617060
--- /dev/null
+++ b/debian/tests/yorick-gyoto
@@ -0,0 +1,26 @@
+#!/usr/bin/yorick -i
+
+// ensure mkdirp is defined
+#include "pathfun.i"
+
+// get or set a few variables
+SRC_ROOT=cd(".");
+ADTTMP=get_env("ADTTMP");
+GYOTO_EXAMPLES_DIR=SRC_ROOT+"doc/examples/";
+GYOTO_CHECK_NODISPLAY="true"
+
+// no X11 display
+batch, 1;
+__xytitles=xytitles; __fma=fma; __winkill=winkill; __pli=pli; __plg=plg;
+__pause=pause; __window=window;
+xytitles = fma = winkill = pli = plg = pause = window = noop;
+
+// get scripts
+mkdirp, ADTTMP;
+cd, ADTTMP;
+system, "cp -f " + SRC_ROOT +"yorick/*.i ./";
+
+// run upstream test suite
+#include "check.i"
+
+quit;
diff --git a/debian/tests/yorick-gyoto-mpi b/debian/tests/yorick-gyoto-mpi
new file mode 100755
index 0000000..486b8da
--- /dev/null
+++ b/debian/tests/yorick-gyoto-mpi
@@ -0,0 +1,26 @@
+#!/usr/bin/yorick -i
+
+// ensure mkdirp is defined
+#include "pathfun.i"
+
+// get or set a few variables
+SRC_ROOT=cd(".");
+ADTTMP=get_env("ADTTMP");
+GYOTO_EXAMPLES_DIR=SRC_ROOT+"doc/examples/";
+GYOTO_CHECK_NODISPLAY="true"
+
+// no X11 display
+batch, 1;
+__xytitles=xytitles; __fma=fma; __winkill=winkill; __pli=pli; __plg=plg;
+__pause=pause; __window=window;
+xytitles = fma = winkill = pli = plg = pause = window = noop;
+
+// get scripts
+mkdirp, ADTTMP;
+cd, ADTTMP;
+system, "cp -f " + SRC_ROOT +"yorick/*.i ./";
+
+// run upstream test suite
+#include "check-mpi.i"
+
+quit;

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



More information about the Debian-astro-commits mailing list