summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/gna/ticket51/ent.vhdl11
-rwxr-xr-xtestsuite/gna/ticket51/testsuite.sh18
2 files changed, 29 insertions, 0 deletions
diff --git a/testsuite/gna/ticket51/ent.vhdl b/testsuite/gna/ticket51/ent.vhdl
new file mode 100644
index 0000000..a7b5c3c
--- /dev/null
+++ b/testsuite/gna/ticket51/ent.vhdl
@@ -0,0 +1,11 @@
+entity ent is
+end entity;
+
+architecture a of ent is
+begin
+ main : process
+ begin
+ report "Hello World";
+ wait;
+ end process;
+end architecture;
diff --git a/testsuite/gna/ticket51/testsuite.sh b/testsuite/gna/ticket51/testsuite.sh
new file mode 100755
index 0000000..ae261dc
--- /dev/null
+++ b/testsuite/gna/ticket51/testsuite.sh
@@ -0,0 +1,18 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze ent.vhdl
+elab_simulate ent
+
+if $GHDL -v | grep -q mcode; then
+ echo "-o not supported by mcode"
+else
+ $GHDL --elab-run -o ent1 ent
+ $GHDL --elab-run -o $PWD/ent2 ent
+fi
+
+rm -f ent1 ent2
+clean
+
+echo "Test successful"