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

. ../../testenv.sh

# Build from scratch
cp ref.vhdl bug.vhdl
analyze bug.vhdl
elab_simulate ent

# No change.
touch bug.vhdl
elab_simulate ent

# Still no change.
cp ref.vhdl bug.vhdl
elab_simulate ent

# Modify file
cp ref1.vhdl bug.vhdl
if elab_simulate ent; then
  # cannot use elab_simulate_failure as it doesn't work in that case (it's a
  # feature: it expects only simulation failures).
  echo "failure expected"
  exit 1
fi

# Re-analyze
analyze bug.vhdl
elab_simulate ent

rm -f bug.vhdl
clean

echo "Test successful"