From: Michał Kępień Date: Tue, 9 Jun 2020 13:35:54 +0000 (+0200) Subject: Fix SYSTEMTESTTOP on Windows X-Git-Tag: v9.17.2~6^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1861866f6333458802a5f53be37681213f99487f;p=thirdparty%2Fbind9.git Fix SYSTEMTESTTOP on Windows 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). --- diff --git a/bin/tests/system/run.sh.in b/bin/tests/system/run.sh.in index 29b55e7ea96..0bf01aa80e0 100644 --- a/bin/tests/system/run.sh.in +++ b/bin/tests/system/run.sh.in @@ -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