Adding --show-default-cparams (show cparams before compressing

This commit is contained in:
Bimba Shrestha
2020-01-30 14:12:03 -08:00
parent 6a426ef65e
commit 2f10019b92
4 changed files with 158 additions and 108 deletions
+12
View File
@@ -457,6 +457,18 @@ ls tmp* > tmpList
$ZSTD -f tmp1 --filelist=tmpList --filelist=tmpList tmp2 tmp3 # can trigger an overflow of internal file list
rm -rf tmp*
println "test : show-default-cparams regular"
$DATAGEN > tmp
$ZSTD --show-default-cparams -f tmp
rm -rf tmp*
println "test : show-default-cparams recursive"
mkdir tmp_files
$DATAGEN -g15000 > tmp_files/tmp1
$DATAGEN -g129000 > tmp_files/tmp2
$DATAGEN -g257000 > tmp_files/tmp3
$ZSTD --show-default-cparams -f -r tmp_files
rm -rf tmp*
println "\n===> Advanced compression parameters "
println "Hello world!" | $ZSTD --zstd=windowLog=21, - -o tmp.zst && die "wrong parameters not detected!"