[cminpack] 03/03: Run test suite during build

Ole Streicher olebole-guest at moszumanska.debian.org
Mon Jun 2 07:36:54 UTC 2014


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

olebole-guest pushed a commit to branch debian
in repository cminpack.

commit cab23160690eff88b60b15902c0b2d2eacf16711
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Wed May 28 16:51:09 2014 +0200

    Run test suite during build
---
 debian/changelog               |  7 +++++++
 debian/clean                   |  2 ++
 debian/patches/fix_tests.patch | 20 ++++++++++++++++++++
 debian/patches/series          |  1 +
 debian/rules                   |  7 +++++++
 5 files changed, 37 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 497e0aa..9507bf5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+cminpack (1.3.4-1) unstable; urgency=low
+
+  * New upstream version
+  * Run test suite during build
+
+ -- Ole Streicher <debian at liska.ath.cx>  Wed, 28 May 2014 15:48:50 +0200
+
 cminpack (1.3.3-1) unstable; urgency=low
 
   * New upstream version.
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..c0be332
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,2 @@
+examples/*.out
+examples/*.o
diff --git a/debian/patches/fix_tests.patch b/debian/patches/fix_tests.patch
new file mode 100644
index 0000000..a2ba98e
--- /dev/null
+++ b/debian/patches/fix_tests.patch
@@ -0,0 +1,20 @@
+Author: Ole Streicher <debian at liska.ath.cx>
+Description: Use system provided environment when building the test suite
+--- a/examples/Makefile
++++ b/examples/Makefile
+@@ -10,10 +10,11 @@
+ #F77CFLAGS=-g
+ 
+ # uncomment the following for C MINPACK
+-MINPACK=../libcminpack$(LIBSUFFIX).a
+-CC=gcc
+-CFLAGS=-g -Wall
+-CPPFLAGS=-I..
++MINPACK=
++#CC=gcc
++#CFLAGS=-g -Wall
++CPPFLAGS+=-I..
++LDADD+=-L../obj-$(DEB_HOST_MULTIARCH) -lcminpack -Wl,-rpath -Wl,../obj-$(DEB_HOST_MULTIARCH)
+ 
+ FMINPACK=../fortran/libminpack.a
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 8964f0d..415522c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 addlibmath.patch
+fix_tests.patch
diff --git a/debian/rules b/debian/rules
index b2c88c3..e422591 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,5 +15,12 @@ CMAKE_EXTRA_FLAGS += -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
 override_dh_auto_configure:
 	dh_auto_configure -- $(CMAKE_EXTRA_FLAGS)
 
+override_dh_auto_test:
+	make -C examples ctest
+
+override_dh_clean:
+	dh_clean
+	make -C examples clean
+
 get-orig-source:
 	uscan --verbose --force-download --repack --rename

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



More information about the debian-science-commits mailing list