Fix tests

This commit is contained in:
Julian Ospald 2022-02-11 18:51:16 +01:00
parent 9faf17634b
commit 8a16b0de7c
Signed by: hasufell
GPG Key ID: 3786C5262ECB4A3F
2 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
./ .
./cabal ./cabal.exe
./cabal.shim ./cabal.shim
./ghc-8.10.7.exe ./ghc-8.10.7.exe
./ghc-8.10.7.shim ./ghc-8.10.7.shim
@ -77,5 +77,5 @@
./runhaskell-8.10.7.shim ./runhaskell-8.10.7.shim
./runhaskell.exe ./runhaskell.exe
./runhaskell.shim ./runhaskell.shim
./stack ./stack.exe
./stack.shim ./stack.shim

View File

@ -114,7 +114,7 @@ if [ "${ARCH}" = "64" ] ; then
else else
expected=$(cat "$( cd "$(dirname "$0")" ; pwd -P )/../ghcup-run.files" | sort) expected=$(cat "$( cd "$(dirname "$0")" ; pwd -P )/../ghcup-run.files" | sort)
fi fi
actual=$(cd ".bin" && find | sort) actual=$(cd ".bin" && find . | sort)
[ "${actual}" = "${expected}" ] [ "${actual}" = "${expected}" ]
unset actual expected unset actual expected
rm -rf .bin rm -rf .bin
@ -148,7 +148,7 @@ else
eghcup --offline install ghc 8.10.3 eghcup --offline install ghc 8.10.3
if [ "${ARCH}" = "64" ] ; then if [ "${ARCH}" = "64" ] ; then
expected=$(cat "$( cd "$(dirname "$0")" ; pwd -P )/../ghc-8.10.3-linux.files" | sort) expected=$(cat "$( cd "$(dirname "$0")" ; pwd -P )/../ghc-8.10.3-linux.files" | sort)
actual=$(cd "${GHCUP_DIR}/ghc/8.10.3/" && find | sort) actual=$(cd "${GHCUP_DIR}/ghc/8.10.3/" && find . | sort)
[ "${actual}" = "${expected}" ] [ "${actual}" = "${expected}" ]
unset actual expected unset actual expected
fi fi
@ -156,7 +156,7 @@ else
eghcup prefetch ghc 8.10.3 eghcup prefetch ghc 8.10.3
eghcup --offline install ghc 8.10.3 eghcup --offline install ghc 8.10.3
expected=$(cat "$( cd "$(dirname "$0")" ; pwd -P )/../ghc-8.10.3-windows.files" | sort) expected=$(cat "$( cd "$(dirname "$0")" ; pwd -P )/../ghc-8.10.3-windows.files" | sort)
actual=$(cd "${GHCUP_DIR}/ghc/8.10.3/" && find | sort) actual=$(cd "${GHCUP_DIR}/ghc/8.10.3/" && find . | sort)
[ "${actual}" = "${expected}" ] [ "${actual}" = "${expected}" ]
unset actual expected unset actual expected
else else