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

. ../../testenv.sh

analyze repro.vhdl
elab repro
if ghdl_has_feature repro vcd; then
  simulate repro --vcd=repro-std.vcd
  simulate repro --vcd=repro-vlg.vcd --vcd-4states

  if fgrep -q "U!" repro-vlg.vcd; then
    echo "error: non-verilog state in vcd"
    exit 1;
  fi
fi

clean
rm -f repro-*.vcd

echo "Test successful"