From 1a7b8fbc24e855d33474b783cd453568dc2dc686 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Wed, 15 Jun 2016 23:33:38 +0200 Subject: [PATCH] fixed dictionary tests --- programs/playTests.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/programs/playTests.sh b/programs/playTests.sh index 60d413c99..a7edbeb94 100755 --- a/programs/playTests.sh +++ b/programs/playTests.sh @@ -179,14 +179,14 @@ $ZSTD -f tmp -D tmpDict1 --no-dictID $ZSTD -d tmp.zst -D tmpDict -of result diff zstdcli.c result $ECHO "- Compress multiple files with dictionary" -cat *.c *.h | $MD5SUM > tmp1 rm -rf dirTestDict mkdir dirTestDict cp *.c dirTestDict cp *.h dirTestDict +cat dirTestDict/* | $MD5SUM > tmph1 # note : we expect same file order to generate same hash $ZSTD -f dirTestDict/* -D tmpDictC -$ZSTD -d dirTestDict/*.zst -D tmpDictC -c | $MD5SUM > tmp2 -diff -q tmp1 tmp2 +$ZSTD -d dirTestDict/*.zst -D tmpDictC -c | $MD5SUM > tmph2 +diff -q tmph1 tmph2 rm -rf dirTestDict rm tmp* @@ -194,6 +194,8 @@ rm tmp* $ECHO "\n**** integrity tests **** " $ECHO "test one file (tmp1.zst) " +./datagen > tmp1 +$ZSTD tmp1 $ZSTD -t tmp1.zst $ZSTD --test tmp1.zst $ECHO "test multiple files (*.zst) " -- 2.47.3