diff options
Diffstat (limited to 'testsuite/gna/ticket48/testsuite.sh')
-rwxr-xr-x | testsuite/gna/ticket48/testsuite.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testsuite/gna/ticket48/testsuite.sh b/testsuite/gna/ticket48/testsuite.sh new file mode 100755 index 0000000..bf40a99 --- /dev/null +++ b/testsuite/gna/ticket48/testsuite.sh @@ -0,0 +1,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" |