| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
# Run upstream testsuite for BLAS and CBLAS |
| 4 |
|
| 5 |
set -e |
| 6 |
|
| 7 |
DEB_HOST_MULTIARCH=$(dpkg-architecture -q DEB_HOST_MULTIARCH) |
| 8 |
|
| 9 |
# Enforce the BLAS contained in package libblas3 |
| 10 |
export LD_LIBRARY_PATH=/usr/lib/${DEB_HOST_MULTIARCH}/blas |
| 11 |
|
| 12 |
PATH=/usr/lib/${DEB_HOST_MULTIARCH}/blas:$PATH |
| 13 |
|
| 14 |
DATADIR=/usr/lib/${DEB_HOST_MULTIARCH}/blas |
| 15 |
|
| 16 |
cd "$AUTOPKGTEST_TMP" |
| 17 |
|
| 18 |
# Test Fortran BLAS |
| 19 |
for p in s d c z |
| 20 |
do |
| 21 |
xblat1${p} > ${p}blat1.out |
| 22 |
xblat2${p} < $DATADIR/${p}blat2.in |
| 23 |
xblat3${p} < $DATADIR/${p}blat3.in |
| 24 |
done |
| 25 |
|
| 26 |
# Test CBLAS |
| 27 |
for p in s d c z |
| 28 |
do |
| 29 |
x${p}cblat1 > ${p}test1.out |
| 30 |
x${p}cblat2 < $DATADIR/${p}in2 > ${p}test2.out |
| 31 |
x${p}cblat3 < $DATADIR/${p}in3 > ${p}test3.out |
| 32 |
done |
| 33 |
|
| 34 |
! grep -q -i fail *.out |