File: blas-testsuite

package info (click to toggle)
lapack 3.8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 73,036 kB
  • sloc: fortran: 587,347; ansic: 179,104; makefile: 4,651; python: 269; sh: 197
file content (34 lines) | stat: -rwxr-xr-x 702 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh

# Run upstream testsuite for BLAS and CBLAS

set -e

DEB_HOST_MULTIARCH=$(dpkg-architecture -q DEB_HOST_MULTIARCH)

# Enforce the BLAS contained in package libblas3
export LD_LIBRARY_PATH=/usr/lib/${DEB_HOST_MULTIARCH}/blas

PATH=/usr/lib/${DEB_HOST_MULTIARCH}/blas:$PATH

DATADIR=/usr/lib/${DEB_HOST_MULTIARCH}/blas

cd $AUTOPKGTEST_TMP

# Test Fortran BLAS
for p in s d c z
do
    xblat1${p} > ${p}blat1.out
    xblat2${p} < $DATADIR/${p}blat2.in
    xblat3${p} < $DATADIR/${p}blat3.in
done

# Test CBLAS
for p in s d c z
do
    x${p}cblat1 > ${p}test1.out
    x${p}cblat2 < $DATADIR/${p}in2 > ${p}test2.out
    x${p}cblat3 < $DATADIR/${p}in3 > ${p}test3.out
done

! grep -q -i fail *.out