aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue418/testsuite.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/issue418/testsuite.sh')
-rwxr-xr-xtestsuite/gna/issue418/testsuite.sh24
1 files changed, 9 insertions, 15 deletions
diff --git a/testsuite/gna/issue418/testsuite.sh b/testsuite/gna/issue418/testsuite.sh
index ffbba4d1c..e6f846826 100755
--- a/testsuite/gna/issue418/testsuite.sh
+++ b/testsuite/gna/issue418/testsuite.sh
@@ -3,26 +3,20 @@
. ../../testenv.sh
export GHDL_STD_FLAGS=--std=08
-analyze repro.vhdl
-elab repro
-analyze repro2.vhdl
-elab repro2
-
-analyze tc749.vhdl
-elab tc749
-
-if ghdl_has_feature repro2 ghw; then
- simulate repro --wave=repro.ghw
- simulate repro2 --wave=repro2.ghw
- simulate tc749 --wave=tc749.ghw
- # How to test the ghw ? Use ghwdump ?
-fi
+for item in repro repro2 tc749; do
+ analyze "$item".vhdl
+ elab "$item"
+ if ghdl_has_feature "$item" ghw; then
+ simulate "$item" --wave="$item".ghw
+ ghw_diff "$item"
+ rm -f "$item".txt "$item".ghw
+ fi
+done
analyze repro3.vhdl
elab_simulate repro3
clean
-rm -f repro.ghw repro2.ghw tc749.ghw
echo "Test successful"