From 1effd3eb564f49a9b8e3543dfdbb121c6e1e9b73 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Mon, 11 May 2015 21:18:29 +0200 Subject: Testcase for ticket 51. --- testsuite/gna/ticket51/ent.vhdl | 11 +++++++++++ testsuite/gna/ticket51/testsuite.sh | 18 ++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 testsuite/gna/ticket51/ent.vhdl create mode 100755 testsuite/gna/ticket51/testsuite.sh (limited to 'testsuite') diff --git a/testsuite/gna/ticket51/ent.vhdl b/testsuite/gna/ticket51/ent.vhdl new file mode 100644 index 000000000..a7b5c3cd5 --- /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 000000000..ae261dcc3 --- /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" -- cgit v1.2.3