Accepting request 81734 from devel:libraries:c_c++

Run blas_testing and lapack_testing during build (and check the result). For i686, the tests need to be compiled with -ffloat-store. To build and run blas_testing takes about 30s, for lapack_testing one needs about 4.5min, depending on the hardware. (forwarded request 81708 from burnus)

OBS-URL: https://build.opensuse.org/request/show/81734
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lapack?expand=0&rev=18
This commit is contained in:
Sascha Peilicke
2011-09-11 17:26:11 +00:00
committed by Git OBS Bridge
parent 4cb58cafd4
commit 5e6d07e82d
2 changed files with 33 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Sep 9 13:58:10 UTC 2011 - burnus@net-b.de
- Run BLAS and LAPACK testsuite when building
-------------------------------------------------------------------
Thu May 12 07:12:55 UTC 2011 - burnus@net-b.de

View File

@@ -155,6 +155,11 @@ Authors:
tar xjf %{S:1}
%build
case "$RPM_ARCH" in
i[0-9]86) PRECFLAGS="-ffloat-store" ;;
*) PRECFLAGS="" ;;
esac
export PRECFLAGS
cp make.inc.example make.inc
make cleanlib
make %{?jobs:-j%jobs} blaslib \
@@ -170,6 +175,17 @@ make cleanlib
make %{?jobs:-j%jobs} blaslib \
OPTS="$RPM_OPT_FLAGS" \
NOOPT="$RPM_OPT_FLAGS -O0"
make blas_testing \
OPTS="$RPM_OPT_FLAGS $PRECFLAGS" \
NOOPT="$RPM_OPT_FLAGS $PRECFLAGS -O0"
if grep -B15 -A15 FAIL BLAS/*.out; then
echo
echo "blas_testing FAILED"
echo
false
else
true # No failures
fi
mv blas_LINUX.a libblas.a
make cleanlib
make %{?jobs:-j%jobs} lapacklib \
@@ -185,6 +201,18 @@ make cleanlib
make %{?jobs:-j%jobs} lapacklib \
OPTS="$RPM_OPT_FLAGS" \
NOOPT="$RPM_OPT_FLAGS -O0"
ln -s libblas.a blas_LINUX.a
make lapack_testing \
OPTS="$RPM_OPT_FLAGS $PRECFLAGS" \
NOOPT="$RPM_OPT_FLAGS $PRECFLAGS -O0"
if grep -B15 -A15 FAIL TESTING/*.out; then
echo
echo "lapack_testing FAILED"
echo
false
else
true # No failures
fi
mv lapack_LINUX.a liblapack.a
%install