[openblas] 07/07: Add autopkgtest support, relying on upstream testsuite.

Sébastien Villemot sebastien at debian.org
Tue Apr 28 18:31:18 UTC 2015


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

sebastien pushed a commit to branch master
in repository openblas.

commit 075c51a1911f89c6e1cb9129025f4922875a69ab
Author: Sébastien Villemot <sebastien at debian.org>
Date:   Tue Apr 28 20:29:31 2015 +0200

    Add autopkgtest support, relying on upstream testsuite.
    
    + debian/tests/upstream-testsuite: script to run the testsuite
    + debian/tests/control: add the new test
    
    Closes: #781996
    Thanks: Christian Kastner for crafting the patch
    Git-Dch: Full
---
 debian/tests/control            |  3 +++
 debian/tests/upstream-testsuite | 21 +++++++++++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..88bd543
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: upstream-testsuite
+Restrictions: allow-stderr
+Depends: @, gfortran
diff --git a/debian/tests/upstream-testsuite b/debian/tests/upstream-testsuite
new file mode 100644
index 0000000..6c7373d
--- /dev/null
+++ b/debian/tests/upstream-testsuite
@@ -0,0 +1,21 @@
+#!/bin/sh
+# Execute upstream's testsuite against the installed binaries.
+
+set -e
+
+if [ -z "$ADTTMP" ]
+then
+	echo "Temporary directory \$ADTTMP is not set. Aborting" >&2
+	exit 1
+fi
+
+# Work from $ADTTMP as we need to treat the original source as read-only
+cp -a test Makefile* ?_check cpuid* ctest* getarch* param.h "$ADTTMP"/
+cd "$ADTTMP"/test
+
+# Make tests use the installed binaries instead of using the build result path
+sed -i -e 's,\.\./\$(LIBNAME),,g' Makefile
+sed -i -e 's,CEXTRALIB =,CEXTRALIB = -lopenblas -lpthread,' Makefile
+
+# Execute tests
+make

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



More information about the debian-science-commits mailing list