added tests for forced compression level

dev
Paul Cruz 2017-07-13 14:57:24 -07:00
parent 0d9665cef5
commit 65a4ce2635
1 changed files with 35 additions and 0 deletions

View File

@ -201,5 +201,40 @@ zstd -d tmp.zst -o tmp2
diff -q tmp tmp2
rm tmp*
echo -e "\ncorrectness tests -- forced compression level"
./datagen -g1GB > tmp
./adapt tmp -otmp.zst -i11 -f
zstd -d tmp.zst -o tmp2
diff tmp tmp2
rm tmp*
./datagen -g100MB > tmp
./adapt tmp -otmp.zst -i11 -f
zstd -d tmp.zst -o tmp2
diff tmp tmp2
rm tmp*
./datagen -g10MB > tmp
./adapt tmp -otmp.zst -i11 -f
zstd -d tmp.zst -o tmp2
diff tmp tmp2
rm tmp*
./datagen -g1MB > tmp
./adapt tmp -otmp.zst -i11 -f
zstd -d tmp.zst -o tmp2
diff tmp tmp2
rm tmp*
./datagen -g100KB > tmp
./adapt tmp -otmp.zst -i11 -f
zstd -d tmp.zst -o tmp2
diff tmp tmp2
rm tmp*
./datagen -g10KB > tmp
./adapt tmp -otmp.zst -i11 -f
zstd -d tmp.zst -o tmp2
diff tmp tmp2
rm tmp*
make clean