From f9796ff6c48a352e4bef1de793759784c34007d2 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 5 Nov 2019 04:15:17 +0100 Subject: testenv: use abs_topdir for default ghdl.so path. --- testsuite/testenv.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'testsuite') diff --git a/testsuite/testenv.sh b/testsuite/testenv.sh index 086a1f4..fd36439 100644 --- a/testsuite/testenv.sh +++ b/testsuite/testenv.sh @@ -1,6 +1,12 @@ # Testsuite environment +if [ x"$topdir" = x"" ]; then + echo "topdir must be defined" + exit 1 +fi + . $topdir/../utils.sh +abs_topdir=`pwd`/$topdir set -e @@ -9,7 +15,8 @@ if [ x"$GHDL" = x ]; then fi if [ x"$YOSYS" = x ]; then - YOSYS="yosys -m ../../ghdl.so" + # Need to use abs_topdir because with sby yosys is executed in a subdir. + YOSYS="yosys -m $abs_topdir/../ghdl.so" fi if [ x"$SYMBIYOSYS" = x ]; then -- cgit v1.2.3