summaryrefslogtreecommitdiff
path: root/testsuite/gna/issue14/testsuite.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/issue14/testsuite.sh')
-rwxr-xr-xtestsuite/gna/issue14/testsuite.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/gna/issue14/testsuite.sh b/testsuite/gna/issue14/testsuite.sh
new file mode 100755
index 0000000..7b44135
--- /dev/null
+++ b/testsuite/gna/issue14/testsuite.sh
@@ -0,0 +1,18 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+GHDL_STD_FLAGS=--std=08
+analyze repro.vhdl
+elab_simulate repro 2>&1 | tee log.txt
+
+if test `grep -c assert log.txt` -ne 2; then
+ exit 1
+else
+ echo "Expected number of warnings"
+fi
+
+clean
+rm log.txt
+
+echo "Test successful"