From: Yann Collet Date: Fri, 6 Oct 2017 03:21:59 +0000 (-0700) Subject: playtests: do not use cat on large files X-Git-Tag: v1.3.2~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4252621e26110b1f35cef11962a7aa6b41618f18;p=thirdparty%2Fzstd.git playtests: do not use cat on large files some target have limitation making cat incompatible with large files (namely debian hurd-i386) --- diff --git a/tests/playTests.sh b/tests/playTests.sh index b588949c0..bc021648c 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -43,7 +43,7 @@ fileRoundTripTest() { rm -f tmp.zstd tmp.md5.1 tmp.md5.2 $ECHO "fileRoundTripTest: ./datagen $1 $local_p > tmp && $ZSTD -v$local_c -c tmp | $ZSTD -d$local_d" ./datagen $1 $local_p > tmp - cat tmp | $MD5SUM > tmp.md5.1 + < tmp $MD5SUM > tmp.md5.1 $ZSTD --ultra -v$local_c -c tmp | $ZSTD -d$local_d | $MD5SUM > tmp.md5.2 $DIFF -q tmp.md5.1 tmp.md5.2 }