aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue1257/testsuite.sh
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-06-17 21:58:11 +0200
committerTristan Gingold <tgingold@free.fr>2020-06-17 21:58:11 +0200
commit1666a4c7458a9078daa77058ef6173bf34223018 (patch)
tree3cfffe18778613ba15471c02c1a77334c4b99f33 /testsuite/gna/issue1257/testsuite.sh
parent887496173322c262a976ac48d391d89255bf83f0 (diff)
downloadghdl-1666a4c7458a9078daa77058ef6173bf34223018.tar.gz
ghdl-1666a4c7458a9078daa77058ef6173bf34223018.tar.bz2
ghdl-1666a4c7458a9078daa77058ef6173bf34223018.zip
testsuite/gna: add tests for #1257
Diffstat (limited to 'testsuite/gna/issue1257/testsuite.sh')
-rwxr-xr-xtestsuite/gna/issue1257/testsuite.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/gna/issue1257/testsuite.sh b/testsuite/gna/issue1257/testsuite.sh
new file mode 100755
index 000000000..d3e8ab9e6
--- /dev/null
+++ b/testsuite/gna/issue1257/testsuite.sh
@@ -0,0 +1,20 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze_failure -Werror=runtime-error repro1.vhdl
+
+analyze repro2.vhdl
+elab_simulate_failure repro2 | tee repro2.err
+grep "1 downto 0" repro2.err
+
+analyze repro3.vhdl
+elab_simulate_failure repro3 | tee repro3.err
+grep "1 downto 0" repro3.err
+
+GHDL_STD_FLAGS=--std=08
+analyze direction_mismatch.vhd tb_direction_mismatch.vhd
+elab_simulate_failure tb_direction_mismatch
+clean
+
+echo "Test successful"