2020-05-23 16:44:00 +02:00
|
|
|
--- a/tests/playTests.sh
|
|
|
|
+++ b/tests/playTests.sh
|
2021-06-21 03:10:23 +02:00
|
|
|
@@ -112,22 +112,12 @@ case "$OS" in
|
2021-03-09 22:56:58 +01:00
|
|
|
esac
|
|
|
|
|
2020-05-23 16:44:00 +02:00
|
|
|
case "$UNAME" in
|
|
|
|
- Darwin) MD5SUM="md5 -r" ;;
|
|
|
|
- FreeBSD) MD5SUM="gmd5sum" ;;
|
2021-03-09 22:56:58 +01:00
|
|
|
- NetBSD) MD5SUM="md5 -n" ;;
|
2020-05-23 16:44:00 +02:00
|
|
|
- OpenBSD) MD5SUM="md5" ;;
|
|
|
|
*) MD5SUM="md5sum" ;;
|
2021-03-09 22:56:58 +01:00
|
|
|
esac
|
|
|
|
|
2020-05-23 16:44:00 +02:00
|
|
|
MTIME="stat -c %Y"
|
|
|
|
-case "$UNAME" in
|
2021-03-09 22:56:58 +01:00
|
|
|
- Darwin | FreeBSD | OpenBSD | NetBSD) MTIME="stat -f %m" ;;
|
2020-05-23 16:44:00 +02:00
|
|
|
-esac
|
|
|
|
|
2021-06-21 03:10:23 +02: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-03-09 22:56:58 +01:00
|
|
|
zstd -f --rm dirTestDict/* -D tmpDictC
|
|
|
|
zstd -d --rm dirTestDict/*.zst -D tmpDictC # note : use internal checksum by default
|
2020-05-23 16:44:00 +02: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-03-09 22:56:58 +01:00
|
|
|
esac
|
2021-06-21 03:10:23 +02:00
|
|
|
rm -rf dirTestDict
|