]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix SYSTEMTESTTOP on Windows
authorMichał Kępień <michal@isc.org>
Tue, 9 Jun 2020 13:35:54 +0000 (15:35 +0200)
committerMichał Kępień <michal@isc.org>
Tue, 9 Jun 2020 13:35:54 +0000 (15:35 +0200)
Without SYSTEMTESTTOP=.. lines in tests.sh scripts, SYSTEMTESTTOP is
being set to an absolute path.  On Windows, this means that an absolute
Cygwin path gets passed as a command line argument to native Windows
binaries, which cannot work and causes system tests to break.  Fix by
passing SYSTEMTESTTOP through cygpath on Windows, which causes that
variable to be set to an absolute "mixed mode" path (Windows path with
forward slashes).

bin/tests/system/run.sh.in

index 29b55e7ea9647fb20c012d6c894e6cd66191643d..0bf01aa80e078ed4d8571632c46b14f4a183d4cc 100644 (file)
@@ -21,6 +21,10 @@ srcdir=@abs_srcdir@
 . ${builddir}/conf.sh
 
 SYSTEMTESTTOP="$(cd -P -- "${builddir}" && pwd -P)"
+if [ "$CYGWIN" ]; then
+       SYSTEMTESTTOP="$(cygpath -m "${SYSTEMTESTTOP}")"
+fi
+
 export SYSTEMTESTTOP
 export builddir
 export srcdir