[SCM] Gmsh packaging. Gmsh is an automatic 3D finite element mesh generator. branch, master, updated. upstream/2.5.1_beta2_svn11604_dfsg-142-g53bd64a
Anton Gladky
gladky.anton at gmail.com
Mon Mar 12 18:27:42 UTC 2012
The following commit has been merged in the master branch:
commit 9ed84646e8bcd2e4f56657a4d08ad69dba4c44f8
Author: Anton Gladky <gladky.anton at gmail.com>
Date: Mon Mar 12 18:32:59 2012 +0100
Add auto-test to check functionality after build.
diff --git a/debian/rules b/debian/rules
index a17d9fb..516a2e4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,15 +4,17 @@ BUILDDIR = $(CURDIR)/debian/build
%:
dh $@ --buildsystem=cmake --builddirectory=$(BUILDDIR) --with python2 --parallel
+export OMPI_MCA_plm_rsh_agent=/bin/false #workaround to start MPI-applications in chroot
+
extra_flags += -DCMAKE_CXX_FLAGS="-DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX -fopenmp -lmpi" \
-DCMAKE_INCLUDE_PATH:="/usr/include/mpi"\
-DENABLE_METIS:=OFF\
-DENABLE_TAUCS:=OFF\
# PETSC_DIR is the location of PETSc.
-export PETSC_DIR=/usr/lib/petscdir/3.1
+export PETSC_DIR=/usr/lib/petscdir/3.2
export PETSC_ARCH=linux-gnu-c-opt
-export SLEPC_DIR=/usr/lib/slepcdir/3.1
+export SLEPC_DIR=/usr/lib/slepcdir/3.2
override_dh_auto_clean:
rm -rf $(BUILDDIR)
@@ -41,3 +43,15 @@ override_dh_auto_build:
# To avoid the texi2dvi pb add LC_ALL=C
dh_auto_build -- pdf html info LC_ALL=C
chrpath -d $(BUILDDIR)/wrappers/gmshpy/*.so
+
+override_dh_auto_test:
+ mkdir test-dir
+ cp demos/transfinite.geo test-dir
+ cd test-dir; $(BUILDDIR)/gmsh transfinite.geo -2 -o transfinite2d.mesh
+ cd test-dir; $(BUILDDIR)/gmsh transfinite.geo -3 -o transfinite3d.mesh
+ cd test-dir; $(BUILDDIR)/gmsh transfinite.geo -2 -o transfinite2d.msh
+ cd test-dir; $(BUILDDIR)/gmsh transfinite.geo -3 -o transfinite3d.msh
+ cd test-dir; $(BUILDDIR)/gmsh transfinite.geo -2 -o transfinite2d.stl
+ cd test-dir; $(BUILDDIR)/gmsh transfinite.geo -3 -o transfinite3d.stl
+ cd test-dir; ls -ln;
+ rm -rf test-dir
--
Gmsh packaging. Gmsh is an automatic 3D finite element mesh generator.
More information about the debian-science-commits
mailing list