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

. ../../testenv.sh

analyze ent.vhdl
elab_simulate ent

if "$GHDL" -v | egrep -q 'mcode|interpret'; then
  echo "Option -o not supported by mcode/interpretation"
else
  "$GHDL" --elab-run -o ent1 ent
  "$GHDL" --elab-run -o "$PWD/ent2" ent
fi

rm -f ent1 ent2
clean

echo "Test successful"