diff options
author | Tristan Gingold <tgingold@free.fr> | 2018-11-04 08:54:38 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2018-11-07 20:53:22 +0100 |
commit | 51d6cab20ab8e08d1de3a0dc922a374ad42b6421 (patch) | |
tree | f6f4b881c861e52f85d7f41382919ec7f1f59cf1 /testsuite/gna/issue687/testsuite.sh | |
parent | 00d347e8de432216665e6cedb8b46b7ca0c87a69 (diff) | |
download | ghdl-51d6cab20ab8e08d1de3a0dc922a374ad42b6421.tar.gz ghdl-51d6cab20ab8e08d1de3a0dc922a374ad42b6421.tar.bz2 ghdl-51d6cab20ab8e08d1de3a0dc922a374ad42b6421.zip |
Add reproducer for #687
Diffstat (limited to 'testsuite/gna/issue687/testsuite.sh')
-rwxr-xr-x | testsuite/gna/issue687/testsuite.sh | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/testsuite/gna/issue687/testsuite.sh b/testsuite/gna/issue687/testsuite.sh new file mode 100755 index 000000000..2c71a7534 --- /dev/null +++ b/testsuite/gna/issue687/testsuite.sh @@ -0,0 +1,46 @@ +#! /bin/sh + +. ../../testenv.sh + +export GHDL_STD_FLAGS=--std=08 + +check_output() +{ + if ! grep -q "bound check failure" $1; then + echo "missing bound check failure" + exit 1 + fi +} + +analyze ent.vhdl +elab_simulate_failure tb > tb.err +check_output tb.err + +clean + +analyze ent_ok.vhdl +elab_simulate tb + +clean + +analyze ent2.vhdl +elab_simulate_failure tb > tb.err +check_output tb.err + +clean + +analyze ent3.vhdl +elab_simulate_failure tb > tb.err +check_output tb.err + +clean + +analyze ent4.vhdl +elab_simulate_failure tb > tb.err +check_output tb.err + +clean + +rm -f tb.err + +echo "Test successful" |