aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue314/testsuite.sh
blob: d7494151334e4a035a016be9818abf7ccd0d5a7b (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
#! /bin/sh

. ../../testenv.sh

analyze_failure t1.vhdl 2> t1.err
grep 2:9 t1.err

analyze_failure -ftabstop=4 t1.vhdl 2> t1.err
grep 2:5 t1.err

analyze_failure -fcaret-diagnostics -ftabstop=4 t1.vhdl 2> t1.err
grep "^    err;" t1.err

analyze_failure -fcaret-diagnostics t1.vhdl 2> t1.err
grep "^        err;" t1.err

if analyze -ftabstop=0 t1.vhdl; then
    echo "error expected"
    exit 1
fi

if analyze -ftabstop=140 t1.vhdl; then
    echo "error expected"
    exit 1
fi

if analyze -ftabstop=aa t1.vhdl; then
    echo "error expected"
    exit 1
fi

rm -f t1.err

clean

echo "Test successful"