]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10515 tests: Windows compat
authorHoward Chu <hyc@openldap.org>
Mon, 1 Jun 2026 14:11:31 +0000 (15:11 +0100)
committerHoward Chu <hyc@openldap.org>
Mon, 1 Jun 2026 14:11:31 +0000 (15:11 +0100)
We use MSYS(2) to build on Windows. To run the test suite we need
to use Windows-compatible pathnames.

tests/scripts/defines.sh

index 52b497821ade073ced6f416d5e3a54a343d91d41..65c928bf0929fcc33d1efcf89fb76d4222b52a50 100755 (executable)
 
 umask 077
 
-TESTWD=`pwd`
+case "$OS" in
+Windows*)      TESTWD=`pwd -W` ;;
+*)     TESTWD=`pwd` ;;
+esac
 
 if [ -z "$STARTTIME" ]; then
     STARTTIME=$(date +%s)