aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue147
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-09-23 03:46:39 +0200
committerTristan Gingold <tgingold@free.fr>2016-09-23 20:53:08 +0200
commit4d56867e52058674b4bae95877e49495b02b4db1 (patch)
treedc21a7b27f623d1e2586ce60dcddf0b4620956f8 /testsuite/gna/issue147
parente4c208b46c810974f6d6e91b8c5b838dd7d1220d (diff)
downloadghdl-4d56867e52058674b4bae95877e49495b02b4db1.tar.gz
ghdl-4d56867e52058674b4bae95877e49495b02b4db1.tar.bz2
ghdl-4d56867e52058674b4bae95877e49495b02b4db1.zip
Add testcase for issue #147
Diffstat (limited to 'testsuite/gna/issue147')
-rw-r--r--testsuite/gna/issue147/simple.vhdl8
-rwxr-xr-xtestsuite/gna/issue147/testsuite.sh20
2 files changed, 28 insertions, 0 deletions
diff --git a/testsuite/gna/issue147/simple.vhdl b/testsuite/gna/issue147/simple.vhdl
new file mode 100644
index 000000000..2cdc4a6a9
--- /dev/null
+++ b/testsuite/gna/issue147/simple.vhdl
@@ -0,0 +1,8 @@
+entity simple is
+end;
+
+architecture behav of simple is
+begin
+ assert false report "Hello" severity note;
+end;
+
diff --git a/testsuite/gna/issue147/testsuite.sh b/testsuite/gna/issue147/testsuite.sh
new file mode 100755
index 000000000..84a22c0a7
--- /dev/null
+++ b/testsuite/gna/issue147/testsuite.sh
@@ -0,0 +1,20 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+GHDL_STD_FLAGS=--workdir=work1
+mkdir work1
+analyze simple.vhdl
+elab_simulate simple
+
+clean
+
+rmdir work1
+
+# Some simple checks
+if test -f simple || test -f 'e~simple.o'; then
+ echo "Not correctly cleaned"
+ exit 1
+fi
+
+echo "Test successful"