2020-05-29 06:06:01 +00:00
|
|
|
--- a/tests/playTests.sh
|
|
|
|
+++ b/tests/playTests.sh
|
2021-06-28 23:13:55 +00:00
|
|
|
@@ -112,22 +112,12 @@ case "$OS" in
|
2021-04-05 15:23:46 +00:00
|
|
|
esac
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
case "$UNAME" in
|
|
|
|
- Darwin) MD5SUM="md5 -r" ;;
|
|
|
|
- FreeBSD) MD5SUM="gmd5sum" ;;
|
2021-04-05 15:23:46 +00:00
|
|
|
- NetBSD) MD5SUM="md5 -n" ;;
|
2020-05-29 06:06:01 +00:00
|
|
|
- OpenBSD) MD5SUM="md5" ;;
|
|
|
|
*) MD5SUM="md5sum" ;;
|
2021-04-05 15:23:46 +00:00
|
|
|
esac
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
MTIME="stat -c %Y"
|
|
|
|
-case "$UNAME" in
|
2021-04-05 15:23:46 +00:00
|
|
|
- Darwin | FreeBSD | OpenBSD | NetBSD) MTIME="stat -f %m" ;;
|
2020-05-29 06:06:01 +00:00
|
|
|
-esac
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
GET_PERMS="stat -c %a"
|
|
|
|
-case "$UNAME" in
|
|
|
|
- Darwin | FreeBSD | OpenBSD | NetBSD) GET_PERMS="stat -f %Lp" ;;
|
|
|
|
-esac
|
|
|
|
|
|
|
|
assertFilePermissions() {
|
|
|
|
STAT1=$($GET_PERMS "$1")
|
|
|
|
@@ -967,7 +957,6 @@ $MD5SUM dirTestDict/* > tmph1
|
2021-04-05 15:23:46 +00:00
|
|
|
zstd -f --rm dirTestDict/* -D tmpDictC
|
|
|
|
zstd -d --rm dirTestDict/*.zst -D tmpDictC # note : use internal checksum by default
|
2020-05-29 06:06:01 +00:00
|
|
|
case "$UNAME" in
|
|
|
|
- Darwin) println "md5sum -c not supported on OS-X : test skipped" ;; # not compatible with OS-X's md5
|
|
|
|
*) $MD5SUM -c tmph1 ;;
|
2021-04-05 15:23:46 +00:00
|
|
|
esac
|
2021-06-28 23:13:55 +00:00
|
|
|
rm -rf dirTestDict
|