diff options
-rw-r--r-- | Makefile.in | 2 | ||||
-rwxr-xr-x | testsuite/testsuite.sh | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index 082596174..3d229c4e4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -291,7 +291,7 @@ install.gcc: install.grt uninstall.gcc: uninstall.grt test.gcc: - cd $(srcdir)/testsuite; GHDL=$(GHDL_GCC_BIN) ./testsuite.sh + cd $(srcdir)/testsuite; GHDL=$(GHDL_GCC_BIN) GHWDUMP=$(CURDIR)/ghwdump$(EXEEXT) ./testsuite.sh #################### For gcc backend - development only (local build) #### diff --git a/testsuite/testsuite.sh b/testsuite/testsuite.sh index 4c454d35c..cc1b91910 100755 --- a/testsuite/testsuite.sh +++ b/testsuite/testsuite.sh @@ -87,6 +87,15 @@ if [ "x$GHDL" = "x" ]; then fi fi +if [ "$GHWDUMP" = "" ]; then + case "$GHDL" in + */*) export GHWDUMP=${GHDL%/*}/ghwdump;; + *) export GHWDUMP=ghwdump;; + esac +fi + +command -v "$GHWDUMP" >/dev/null || die "ghwdump executable not found: $GHWDUMP" + cd $(dirname "$0") rm -f test_ok failures="" |