File: test.sh

package info (click to toggle)
ergo 3.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 17,396 kB
  • sloc: cpp: 94,740; ansic: 17,015; sh: 7,559; makefile: 1,402; yacc: 127; lex: 110; awk: 23
file content (42 lines) | stat: -rwxr-xr-x 835 bytes parent folder | download | duplicates (4)
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
40
41
42
#!/bin/sh

if test "$top_builddir" = ""; then
    top_builddir=..
fi
if test "$top_srcdir" = ""; then
    top_srcdir=..
fi

# Prefer gawk - we know exactly what it can do.
# awk on Sun does not support functions, need to use nawk for this
if gawk '{print 1}'</dev/null > /dev/null 2>&1; then
   AWK=gawk
elif nawk '{print 1}'</dev/null > /dev/null 2>&1; then
   AWK=nawk
else
   AWK=awk
fi


echo
echo Testing template_blas
"$top_builddir"/source/matrix/template_lapack/blas/templateblastest 
if [ $? -eq 0 ]
then
echo template_blas test OK
else
echo ERROR in template_blas test
exit 1
fi

echo
echo Testing template_blas with threads
"$top_builddir"/source/matrix/template_lapack/blas/templateblastest_threaded
if [ $? -eq 0 ]
then
echo template_blas with threads test OK
else
echo ERROR in template_blas with threads test
exit 1
fi