diff options
author | Gard Spreemann <gspreemann@gmail.com> | 2018-06-17 23:57:48 +0200 |
---|---|---|
committer | Gard Spreemann <gspreemann@gmail.com> | 2018-06-18 00:24:42 +0200 |
commit | d1717eeb740a159016ab846459bf9fee3dbd3fe7 (patch) | |
tree | 9252af2fd13688e5f3e5b2a03a4312203b004ad4 | |
parent | 36b225ec224a27b5931638e5b718ad9a37cb15d4 (diff) |
Force linking to LAPACK for test of statically linked binary.debian/3.0+dfsg.3-3
-rw-r--r-- | debian/changelog | 7 | ||||
-rw-r--r-- | debian/tests/control | 3 | ||||
-rwxr-xr-x | debian/tests/tests.sh | 10 |
3 files changed, 12 insertions, 8 deletions
diff --git a/debian/changelog b/debian/changelog index b51b21c..d19f7dc 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +lbfgsb (3.0+dfsg.3-3) unstable; urgency=medium + + * Statically linked test binary should link with LAPACK. + * Allow tests to print to stderr. + + -- Gard Spreemann <gspreemann@gmail.com> Sun, 17 Jun 2018 23:58:46 +0200 + lbfgsb (3.0+dfsg.3-2) unstable; urgency=medium * compat level 10. diff --git a/debian/tests/control b/debian/tests/control index 67b07be..6e49353 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -1,2 +1,3 @@ Tests: tests.sh -Depends: gfortran, libblas-dev, liblbfgsb-dev, shunit2
\ No newline at end of file +Depends: gfortran, libblas-dev, liblapack-dev, liblbfgsb-dev, shunit2 +Restrictions: allow-stderr
\ No newline at end of file diff --git a/debian/tests/tests.sh b/debian/tests/tests.sh index b681dea..94b784d 100755 --- a/debian/tests/tests.sh +++ b/debian/tests/tests.sh @@ -20,10 +20,8 @@ testSO() { assertEquals 0 $ret echo "Running." - set -x ./$name ret=$? - set +x assertEquals 0 $ret done cd $cwd @@ -34,18 +32,16 @@ testStatic() { cd $AUTOPKGTEST_TMP for name in $names do - echo "Building." + echo "Building (statically linked)." set -x - gfortran $name.f90 -O3 -march=native -static -llbfgsb -lblas -pthread -o $name-static + gfortran $name.f90 -O3 -march=native -static -llbfgsb -llapack -lblas -lgfortran -o $name-static ret=$? set +x assertEquals 0 $ret - echo "Running." - set -x + echo "Running (statically linked)." ./$name-static ret=$? - set +x assertEquals 0 $ret done cd $cwd |