aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue14/testsuite.sh
blob: 7b441358bbf7bea5ec61b25444271446c2af6235 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /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

clean
rm log.txt

echo "Test successful"