From d79fa58f7efc06a048adf9e2172792e64b8abb20 Mon Sep 17 00:00:00 2001 From: umarcor Date: Fri, 23 Apr 2021 14:18:15 +0200 Subject: ci: set and use GHWDUMP envvar Since the tests are executed without installing the package, the ones that depend on ghwdump do fail on AppVeyor. Use envvar GHWDUMP in testenv for optionally specifying the location. --- testsuite/gna/issue1326/testsuite.sh | 2 +- testsuite/testenv.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'testsuite') diff --git a/testsuite/gna/issue1326/testsuite.sh b/testsuite/gna/issue1326/testsuite.sh index d861ffdcf..3c7edba08 100755 --- a/testsuite/gna/issue1326/testsuite.sh +++ b/testsuite/gna/issue1326/testsuite.sh @@ -8,7 +8,7 @@ if ghdl_has_feature mytestbench ghw; then elab_simulate mytestbench --wave=dump.ghw | tee mytestbench.out # We're just checking that ghwdump doesn't crash on a zero length signal. - ghwdump -ths dump.ghw > dump.txt + "${GHWDUMP:-ghwdump}" -ths dump.ghw > dump.txt rm -f mytestbench.out dump.txt dump.ghw fi diff --git a/testsuite/testenv.sh b/testsuite/testenv.sh index 7db202097..0d27c4a72 100644 --- a/testsuite/testenv.sh +++ b/testsuite/testenv.sh @@ -106,7 +106,7 @@ elab_simulate_failure () # Compare the dump of a GHW wave and a previous golden dump ghw_diff () { - ghwdump -ths "$1".ghw > "$1".txt + "${GHWDUMP:-ghwdump}" -ths "$1".ghw > "$1".txt if diff --strip-trailing-cr "$1".txt golden_"$1".txt; then echo "The ghw dump matches." else -- cgit v1.2.3