python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / compression / zstd / playtests-darwin.patch
blob454489a24a1268a0b68ea6a6e07d37f5103787fe
1 --- a/tests/playTests.sh
2 +++ b/tests/playTests.sh
3 @@ -112,29 +112,19 @@ case "$OS" in
4 esac
6 case "$UNAME" in
7 - Darwin) MD5SUM="md5 -r" ;;
8 - FreeBSD) MD5SUM="gmd5sum" ;;
9 - NetBSD) MD5SUM="md5 -n" ;;
10 - OpenBSD) MD5SUM="md5" ;;
11 *) MD5SUM="md5sum" ;;
12 esac
14 MTIME="stat -c %Y"
15 -case "$UNAME" in
16 - Darwin | FreeBSD | OpenBSD | NetBSD) MTIME="stat -f %m" ;;
17 -esac
19 assertSameMTime() {
20 MT1=$($MTIME "$1")
21 MT2=$($MTIME "$2")
22 echo MTIME $MT1 $MT2
23 [ "$MT1" = "$MT2" ] || die "mtime on $1 doesn't match mtime on $2 ($MT1 != $MT2)"
26 GET_PERMS="stat -c %a"
27 -case "$UNAME" in
28 - Darwin | FreeBSD | OpenBSD | NetBSD) GET_PERMS="stat -f %Lp" ;;
29 -esac
31 assertFilePermissions() {
32 STAT1=$($GET_PERMS "$1")
33 @@ -967,7 +957,6 @@ $MD5SUM dirTestDict/* > tmph1
34 zstd -f --rm dirTestDict/* -D tmpDictC
35 zstd -d --rm dirTestDict/*.zst -D tmpDictC # note : use internal checksum by default
36 case "$UNAME" in
37 - Darwin) println "md5sum -c not supported on OS-X : test skipped" ;; # not compatible with OS-X's md5
38 *) $MD5SUM -c tmph1 ;;
39 esac
40 rm -rf dirTestDict