From b21a6f21ce6da15adab4444e980887d57db8c007 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 24 Jun 2021 07:58:05 -0700 Subject: install-tests: use relative path in run.sh. * Makefile (install-tests): In the generated run.sh, let's allow flexibility in the installation location of the tests by avoiding a cd to an absolute path where the tests are assumed to be installed. Let's assume that they are installed relative to where the run.sh script is, and cd there. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2f09af0f..65d6711a 100644 --- a/Makefile +++ b/Makefile @@ -530,7 +530,7 @@ install-tests: $(call SH, \ (echo "#!/bin/sh" ; \ echo "set -ex" ; \ - echo "cd $(datadir)" ; \ + echo 'cd "$$(dirname "$$(dirname "$$0")")"' ; \ make -s -n tests VERBOSE=y TXR=$(bindir)/txr) \ > run.sh) $(call INSTALL,0755,run.sh,$(DESTDIR)$(datadir)/tests) -- cgit v1.2.3