diff options
author | umarcor <unai.martinezcorral@ehu.eus> | 2021-04-23 02:37:19 +0200 |
---|---|---|
committer | umarcor <unai.martinezcorral@ehu.eus> | 2021-04-24 01:59:30 +0200 |
commit | 76404f71df0f7c1037b190a3cf23bad84bc4c84b (patch) | |
tree | abf64faae59ddbb59d2dcbe199d99486889a59ed /testsuite | |
parent | 026006aec2f37328edc8540472920ef0fbc591b9 (diff) | |
download | ghdl-76404f71df0f7c1037b190a3cf23bad84bc4c84b.tar.gz ghdl-76404f71df0f7c1037b190a3cf23bad84bc4c84b.tar.bz2 ghdl-76404f71df0f7c1037b190a3cf23bad84bc4c84b.zip |
testsuite/gna/issue668: use ghw_diff (#1740)
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gna/issue668/golden_wb_demux_tb.txt | 0 | ||||
-rwxr-xr-x | testsuite/gna/issue668/testsuite.sh | 25 | ||||
-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 |