aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue332/testsuite.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/issue332/testsuite.sh')
-rwxr-xr-xtestsuite/gna/issue332/testsuite.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/testsuite/gna/issue332/testsuite.sh b/testsuite/gna/issue332/testsuite.sh
new file mode 100755
index 000000000..1dfe7cd21
--- /dev/null
+++ b/testsuite/gna/issue332/testsuite.sh
@@ -0,0 +1,30 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+export GHDL_STD_FLAGS=" -fexplicit -frelaxed-rules --mb-comments --warn-binding --ieee=synopsys --no-vital-checks --std=08"
+
+analyze ilos_sim_pkg.vhd
+analyze irqc_pif_pkg.vhd
+analyze irqc_pif.vhd
+analyze irqc_tb.vhd
+elab tb_irqc
+
+if ghdl_has_feature tb_irqc ghw; then
+ simulate tb_irqc --wave=sim.ghw
+fi
+
+analyze repro_rec.vhdl
+elab repro_rec
+
+if ghdl_has_feature repro_rec ghw; then
+ simulate repro_rec --wave=rec.ghw
+fi
+
+clean
+if [ $# -eq 0 ]; then
+ rm -f rec.ghw sim.ghw
+fi
+
+
+echo "Test successful"