diff options
author | umarcor <unai.martinezcorral@ehu.eus> | 2021-04-23 03:09:39 +0200 |
---|---|---|
committer | tgingold <tgingold@users.noreply.github.com> | 2021-04-23 05:34:09 +0200 |
commit | e8a44b3c366027f0199d1a6fde0b761a7b2b03c5 (patch) | |
tree | a63f1501d88e1ba8ccda02bc50ec787211db8a0b /testsuite/gna/issue1323 | |
parent | a73daf35f1ba5b5eeaddb05947ce9088c78ea6d2 (diff) | |
download | ghdl-e8a44b3c366027f0199d1a6fde0b761a7b2b03c5.tar.gz ghdl-e8a44b3c366027f0199d1a6fde0b761a7b2b03c5.tar.bz2 ghdl-e8a44b3c366027f0199d1a6fde0b761a7b2b03c5.zip |
testsuite: add function 'ghw_diff' to testenv
Diffstat (limited to 'testsuite/gna/issue1323')
-rwxr-xr-x | testsuite/gna/issue1323/testsuite.sh | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/testsuite/gna/issue1323/testsuite.sh b/testsuite/gna/issue1323/testsuite.sh index c9c7091e1..2cc9ca2c9 100755 --- a/testsuite/gna/issue1323/testsuite.sh +++ b/testsuite/gna/issue1323/testsuite.sh @@ -4,22 +4,12 @@ analyze mydesign.vhdl elab myentity - -simulate myentity --wave=dump.ghw | tee mydesign.out - -gcc ../../../src/grt/ghwdump.c ../../../src/grt/ghwlib.c -I../../../src/grt/ -o ghwdump - -# We're just checking that ghwdump doesn't crash on a zero length signal. -./ghwdump -ths dump.ghw > dump.txt - -if diff --strip-trailing-cr dump.txt golden_dump.txt; then - echo "The ghw dump matches." -else - echo "The ghw dump does not match what is expected." - exit 1 +if ghdl_has_feature myentity ghw; then + elab_simulate myentity --wave=dump.ghw | tee mydesign.out + ghw_diff dump + rm -f mydesign.out dump.txt dump.ghw fi -#rm -f mydesign.out ghwdump dump.txt dump.ghw clean -echo "Test Success" +echo "Test successful" |