File: lapack-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 (39 lines) | stat: -rwxr-xr-x 1,158 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
35
36
37
38
39
#!/bin/bash

# Run upstream testsuite for LAPACK

set -e

DEB_HOST_MULTIARCH=$(dpkg-architecture -q DEB_HOST_MULTIARCH)

# Enforce the BLAS (resp. LAPACK) contained in package libblas3 (resp. liblapack3)
export LD_LIBRARY_PATH=/usr/lib/${DEB_HOST_MULTIARCH}/blas:/usr/lib/${DEB_HOST_MULTIARCH}/lapack

if [ -z "$AUTOPKGTEST_TMP" ]
then
	echo "Temporary directory \$AUTOPKGTEST_TMP is not set. Aborting" >&2
	exit 1
fi

# Work from $AUTOPKGTEST_TMP as we need to treat the original source as read-only
cp lapack_testing.py TESTING/*.in "${AUTOPKGTEST_TMP}/"

cd "${AUTOPKGTEST_TMP}/"

for testprog in xlintst{s,c,d,z} xlintstrf{s,c,d,z} xlintstds xlintstzc xeigtst{s,c,d,z}
do
    ln -s /usr/lib/${DEB_HOST_MULTIARCH}/lapack/${testprog}
done

read NUM_ERRORS OTHER_ERRORS <<< $(./lapack_testing.py -r -d . -n)

echo "Total errors: $((NUM_ERRORS + OTHER_ERRORS))"

# The following line is commented out, because some test failures are currently expected.
# Instead display a warning, and exit gracefully. See #811191.
#((NUM_ERRORS + OTHER_ERRORS == 0))
if ((NUM_ERRORS + OTHER_ERRORS != 0))
then
    echo "Some failures are expected, so nevermind."
fi
exit 0