File: test.sh

package info (click to toggle)
ergo 3.8.2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 17,568 kB
  • sloc: cpp: 94,763; ansic: 17,785; sh: 10,701; makefile: 1,403; yacc: 127; lex: 116; awk: 23
file content (42 lines) | stat: -rwxr-xr-x 855 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_lapack
"$top_builddir"/source/matrix/template_lapack/lapack/templatelapacktest 
if [ $? -eq 0 ]
then
echo template_lapack test OK
else
echo ERROR in template_lapack test
exit 1
fi

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