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).
. ${builddir}/conf.sh
SYSTEMTESTTOP="$(cd -P -- "${builddir}" && pwd -P)"
+if [ "$CYGWIN" ]; then
+ SYSTEMTESTTOP="$(cygpath -m "${SYSTEMTESTTOP}")"
+fi
+
export SYSTEMTESTTOP
export builddir
export srcdir