aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/gna/issue668/golden_wb_demux_tb.txt0
-rwxr-xr-xtestsuite/gna/issue668/testsuite.sh25
-rw-r--r--testsuite/gna/issue668/wb_demux_tb.vhdl (renamed from testsuite/gna/issue668/tb.vhdl)0
3 files changed, 10 insertions, 15 deletions
diff --git a/testsuite/gna/issue668/golden_wb_demux_tb.txt b/testsuite/gna/issue668/golden_wb_demux_tb.txt
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/testsuite/gna/issue668/golden_wb_demux_tb.txt
diff --git a/testsuite/gna/issue668/testsuite.sh b/testsuite/gna/issue668/testsuite.sh
index 19b6004b5..62af85327 100755
--- a/testsuite/gna/issue668/testsuite.sh
+++ b/testsuite/gna/issue668/testsuite.sh
@@ -3,23 +3,18 @@
. ../../testenv.sh
export GHDL_STD_FLAGS=--std=08
-analyze tb.vhdl
-elab wb_demux_tb
+for item in wb_demux_tb repro2; do
+ analyze "$item".vhdl
+ elab "$item"
-if ghdl_has_feature wb_demux_tb ghw; then
- simulate wb_demux_tb --dump-rti
- simulate wb_demux_tb --wave=w.ghw
-fi
-
-analyze repro2.vhdl
-elab repro2
-if ghdl_has_feature repro2 ghw; then
- simulate repro2 --dump-rti
- simulate repro2 --wave=w.ghw
-fi
+ if ghdl_has_feature "$item" ghw; then
+ elab_simulate "$item" --dump-rti
+ elab_simulate "$item" --wave="$item".ghw
+ ghw_diff "$item"
+ rm -f "$item".txt "$item".ghw
+ fi
+done
clean
-rm -f w.ghw
-
echo "Test successful"
diff --git a/testsuite/gna/issue668/tb.vhdl b/testsuite/gna/issue668/wb_demux_tb.vhdl
index 768038201..768038201 100644
--- a/testsuite/gna/issue668/tb.vhdl
+++ b/testsuite/gna/issue668/wb_demux_tb.vhdl