summaryrefslogtreecommitdiff
path: root/testsuite/gna/issue14/testsuite.sh
blob: 4b1ee2532b1439bc4bc5078368c69b28827cc4cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh

. ../../testenv.sh

GHDL_STD_FLAGS=--std=08
analyze repro.vhdl
elab_simulate repro 2>&1 | tee log.txt

if test `grep -c assert log.txt` -ne 2; then
    exit 1
else
    echo "Expected number of warnings"
fi

analyze repro1.vhdl
elab_simulate repro1

clean
rm log.txt

echo "Test successful"