r44877 - /packages/openturns/trunk/debian/rules

barbier-guest at users.alioth.debian.org barbier-guest at users.alioth.debian.org
Tue May 22 22:00:59 UTC 2012


Author: barbier-guest
Date: Tue May 22 22:00:58 2012
New Revision: 44877

URL: http://svn.debian.org/wsvn/debian-science/?sc=1&rev=44877
Log:
Do not ignore tests result on architectures where all tests are known to pass

Modified:
    packages/openturns/trunk/debian/rules

Modified: packages/openturns/trunk/debian/rules
URL: http://svn.debian.org/wsvn/debian-science/packages/openturns/trunk/debian/rules?rev=44877&op=diff
==============================================================================
--- packages/openturns/trunk/debian/rules (original)
+++ packages/openturns/trunk/debian/rules Tue May 22 22:00:58 2012
@@ -33,6 +33,16 @@
     with_tbb := -DUSE_TBB:BOOL=ON
 else
     with_tbb := -DUSE_TBB:BOOL=OFF
+endif
+
+# On those architectures, all tests pass with 1.0-3
+arches_with_validated_tests := i386 amd64 kfreebsd-i386 kfreebsd-amd64
+# Should be fixed after applying debian/patches/test-output.patch:
+#  alpha ia64 powerpc ppc64
+# Failed tests need investigations; several failures may get fixed by fix-bigendian.patch
+#  mips sparc
+ifeq (,$(findstring $(shell dpkg-architecture -qDEB_HOST_ARCH), $(arches_with_validated_tests)))
+    disable_runtime_tests := || true
 endif
 
 # Explicitly set builddir directory
@@ -75,7 +85,7 @@
 	-mkdir -p debian/tmp/usr/share/openturns/m4
 	cp lib/m4/*.m4 debian/tmp/usr/share/openturns/m4
 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
-	-CTEST_OUTPUT_ON_FAILURE=1 $(MAKE) $(test_makeflags) -C $(builddir) installcheck
+	CTEST_OUTPUT_ON_FAILURE=1 $(MAKE) $(test_makeflags) -C $(builddir) installcheck $(disable_runtime_tests)
 endif
 	#  Fix script permissions
 	chmod a+x debian/tmp/usr/share/openturns/WrapperTemplates/wrapper_*/customize debian/tmp/usr/share/openturns/WrapperTemplates/wrapper_*/bootstrap
@@ -96,7 +106,7 @@
 override_dh_auto_test:
 	# Call 'make check' explicitly, 'make test' does not build binary tests
 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
-	-CTEST_OUTPUT_ON_FAILURE=1 $(MAKE) $(test_makeflags) -C $(builddir) check
+	CTEST_OUTPUT_ON_FAILURE=1 $(MAKE) $(test_makeflags) -C $(builddir) check $(disable_runtime_tests)
 endif
 
 override_dh_auto_clean:




More information about the debian-science-commits mailing list