aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/bug017/testsuite.sh
blob: d8972aff8154830a979f65c3ce7c3d8f5d7877b6 (plain)
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
43
44
45
46
#! /bin/sh

. ../../testenv.sh

units="
call1
call2
call3
call4
call5
call6
call6a
call6b
call7
call8
call9
call10
for1
if1
if2
if3
if4
loop1
loop2
case1
case3
case4
ret1
wait1
wait2
wait3
"

for f in $units; do
  analyze ${f}.vhdl
  elab_simulate $f --assert-level=error 2>&1 | tee res.out
  if ! grep -q SUCCESS res.out; then
     echo "Failure of $f"
     exit 1
  fi
done

rm -f res.out
clean

echo "Test successful"