aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorXiretza <xiretza@xiretza.xyz>2021-04-27 18:15:35 +0200
committerUnai Martinez-Corral <38422348+umarcor@users.noreply.github.com>2021-04-27 19:39:03 +0200
commit9e7d54f0a5816f433f03271ea9f46bc7803e97e2 (patch)
treec5078c948658015209ad0f716b0ff62e36086c76 /testsuite
parent4ca59b2496725c6b45904ce5d5d852e5703adc36 (diff)
downloadghdl-9e7d54f0a5816f433f03271ea9f46bc7803e97e2.tar.gz
ghdl-9e7d54f0a5816f433f03271ea9f46bc7803e97e2.tar.bz2
ghdl-9e7d54f0a5816f433f03271ea9f46bc7803e97e2.zip
testsuite: try to determine ghwdump location automatically
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/testsuite.sh9
1 files changed, 9 insertions, 0 deletions
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=""