summaryrefslogtreecommitdiff
path: root/pkgs/tools/compression/zstd/playtests-darwin.patch
blob: 83bde5cb19f249e09ace846220f6a062fc5583e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--- a/tests/playTests.sh
+++ b/tests/playTests.sh
@@ -119,16 +119,10 @@ case "$OS" in
 esac
 
 case "$UNAME" in
-  Darwin) MD5SUM="md5 -r" ;;
-  NetBSD) MD5SUM="md5 -n" ;;
-  OpenBSD) MD5SUM="md5" ;;
   *) MD5SUM="md5sum" ;;
 esac
 
 MTIME="stat -c %Y"
-case "$UNAME" in
-    Darwin | FreeBSD | OpenBSD | NetBSD) MTIME="stat -f %m" ;;
-esac
 
 assertSameMTime() {
     MT1=$($MTIME "$1")
@@ -138,9 +132,6 @@ assertSameMTime() {
 }
 
 GET_PERMS="stat -c %a"
-case "$UNAME" in
-    Darwin | FreeBSD | OpenBSD | NetBSD) GET_PERMS="stat -f %Lp" ;;
-esac
 
 assertFilePermissions() {
     STAT1=$($GET_PERMS "$1")
@@ -1155,7 +1146,6 @@ $MD5SUM dirTestDict/* > tmph1
 zstd -f --rm dirTestDict/* -D tmpDictC
 zstd -d --rm dirTestDict/*.zst -D tmpDictC  # note : use internal checksum by default
 case "$UNAME" in
-  Darwin) println "md5sum -c not supported on OS-X : test skipped" ;;  # not compatible with OS-X's md5
   *) $MD5SUM -c tmph1 ;;
 esac
 rm -rf dirTestDict