Lines Matching refs:zstd

14 zstd() {  function
47 datagen $1 $proba | zstd --ultra -v$cLevel | zstd -d$dLevel | $MD5SUM > tmp2
69 zstd --ultra -v$local_c -c tmp | zstd -d$local_d | $MD5SUM > tmp.md5.2
152 if echo hello | zstd -v -T2 2>&1 > $INTOVOID | grep -q 'multi-threading is disabled'
165 zstd -f tmp # trivial compression case, creates tmp.zst
167 zstd -df tmp.zst # trivial decompression case (overwrites tmp)
169 zstd -99 -f tmp # too large compression level, automatic sized down
170 zstd -5000000000 -f tmp && die "too large numeric value : must fail"
172 zstd --fast -f tmp # == -1
173 zstd --fast=3 -f tmp # == -3
174 zstd --fast=200000 -f tmp # too low compression level, automatic fixed
175 zstd --fast=5000000000 -f tmp && die "too large numeric value : must fail"
176 zstd -c --fast=0 tmp > $INTOVOID && die "--fast must not accept value 0"
178 zstd --fast=9999999999 -f tmp && die "should have refused numeric value"
180 ZSTD_CLEVEL=12 zstd -f tmp # positive compression level
181 ZSTD_CLEVEL=-12 zstd -f tmp # negative compression level
182 ZSTD_CLEVEL=+12 zstd -f tmp # valid: verbose '+' sign
183 ZSTD_CLEVEL='' zstd -f tmp # empty env var, warn and revert to default setting
184 ZSTD_CLEVEL=- zstd -f tmp # malformed env var, warn and revert to default setting
185 ZSTD_CLEVEL=a zstd -f tmp # malformed env var, warn and revert to default setting
186 ZSTD_CLEVEL=+a zstd -f tmp # malformed env var, warn and revert to default setting
187 ZSTD_CLEVEL=3a7 zstd -f tmp # malformed env var, warn and revert to default setting
188 ZSTD_CLEVEL=50000000000 zstd -f tmp # numeric value too large, warn and revert to default setting
190 ZSTD_CLEVEL=12 zstd --fast=3 -f tmp # overridden by command line option
192 zstd tmp -c > tmpCompressed
193 zstd tmp --stdout > tmpCompressed # long command format
196 zstd tmp -o tmpCompressed
199 zstd tmp -fo tmpCompressed
202 zstd tmp2 -fo && die "-o must be followed by filename "
204 println bob | zstd | zstd -d
207 println bob | zstd && die "should have refused : compressed data to terminal"
209 zstd -d > $INTOVOID && die "should have refused : compressed data from terminal"
212 println -n '' | zstd - --stdout | zstd -d --stdout
215 zstd tmp1 -c | wc -c | grep "14"
216 zstd < tmp1 | wc -c | grep "14"
218 zstd -d tmpCompressed && die "wrong suffix error not detected!"
219 zstd -df tmp && die "should have refused : wrong extension"
221 zstd -d tmpCompressed -c > tmpResult # decompression using stdout
222 zstd --decompress tmpCompressed -c > tmpResult
223 zstd --decompress tmpCompressed --stdout > tmpResult
225 zstd -dc < tmp.zst > $INTOVOID # combine decompression, stdin & stdout
226 zstd -dc - < tmp.zst > $INTOVOID
227 zstd -d < tmp.zst > $INTOVOID # implicit stdout when stdin is used
228 zstd -d - < tmp.zst > $INTOVOID
230 zstd -d -f tmp.zst -M2K -c > $INTOVOID && die "decompression needs more memory than allowed"
231 zstd -d -f tmp.zst --memlimit=2K -c > $INTOVOID && die "decompression needs more memory than allowe…
232 zstd -d -f tmp.zst --memory=2K -c > $INTOVOID && die "decompression needs more memory than allowed"…
233 zstd -d -f tmp.zst --memlimit-decompress=2K -c > $INTOVOID && die "decompression needs more memory …
235 zstd -q tmp && die "overwrite check failed!"
237 zstd -q -f tmp
238 zstd -q --force tmp
244 zstd -q tmpro && die "should have refused to overwrite read-only file"
245 zstd -q -f tmpro
247 zstd tmpro -c --no-progress | zstd -d -f -o "$INTOVOID" --no-progress
248 zstd tmpro -cv --no-progress | zstd -dv -f -o "$INTOVOID" --no-progress
251 zstd tmp -fo tmp && die "zstd compression overwrote the input file"
252 zstd tmp.zst -dfo tmp.zst && die "zstd decompression overwrote the input file"
254 zstd nothere && die "zstd hasn't detected that input file does not exist"
256 zstd tmp -c --no-compress-literals -1 | zstd -t
257 zstd tmp -c --no-compress-literals --fast=1 | zstd -t
258 zstd tmp -c --no-compress-literals -19 | zstd -t
259 zstd tmp -c --compress-literals -1 | zstd -t
260 zstd tmp -c --compress-literals --fast=1 | zstd -t
261 zstd tmp -c --compress-literals -19 | zstd -t
262 zstd -b --fast=1 -i0e1 tmp --compress-literals
263 zstd -b --fast=1 -i0e1 tmp --no-compress-literals
265 zstd -f tmp -o tmp_corrupt.zst --check
266 zstd -f tmp -o tmp.zst --no-check
268 zstd -d -f tmp_corrupt.zst --no-check
269 zstd -d -f tmp_corrupt.zst --check --no-check # final flag overrides
270 zstd -d -f tmp.zst --no-check
276 zstd -f tmp_grep
288 zstd --exclude-compressed --long --rm -r precompressedFilterTestDir
291 zstd --exclude-compressed --long --rm -r precompressedFilterTestDir
303 zstd --exclude-compressed --long --rm -r precompressedFilterTestDir
307 zstd --long --rm -r precompressedFilterTestDir
318 zstd tmpPrompt -f
319 zstd < tmpPrompt -o tmpPrompt.zst && die "should have aborted immediately and failed to overwrite"
320 zstd < tmpPrompt -o tmpPrompt.zst -f # should successfully overwrite with -f
321 zstd -q -d -f tmpPrompt.zst -o tmpPromptRegenerated
324 echo 'yes' | zstd tmpPrompt -o tmpPrompt.zst # accept piped "y" input to force overwrite when usin…
325 echo 'yes' | zstd < tmpPrompt -o tmpPrompt.zst && die "should have aborted immediately and failed t…
326 zstd tmpPrompt - < tmpPrompt -o tmpPromp.zst --rm && die "should have aborted immediately and faile…
333 zstd -c -r < tmp > tmp.zst
337 zstd -f --rm tmp
339 zstd -f -d --rm tmp.zst
343 zstd tmp -f -o "$DEVDEVICE" 2>tmplog > "$INTOVOID"
346 zstd tmp -f -o "$INTOVOID" 2>&1 | grep -v "Refusing to remove non-regular file"
348 println a | zstd --rm > $INTOVOID # --rm should remain silent
350 zstd -f tmp && die "tmp not present : should have failed"
354 zstd -d -f tmp.zst && die "attempt to decompress a non existing file"
359 zstd -f tmp && die "attempt to compress a non existing file"
369 zstd -d -o tmp1 "$TESTDIR/golden-decompression/rle-first-block.zst"
377 zstd tmp1 tmp2 -o "$INTOVOID" -f
378 zstd tmp1 tmp2 -c | zstd -t
379 zstd tmp1 tmp2 -o tmp.zst
382 zstd tmp1 tmp2
383 zstd -t tmp1.zst tmp2.zst
384 zstd -dc tmp1.zst tmp2.zst
385 zstd tmp1.zst tmp2.zst -o "$INTOVOID" -f
386 zstd -d tmp1.zst tmp2.zst -o tmp
388 zstd tmp1 tmp2 -f -o tmpexists
389 zstd tmp1 tmp2 -q -o tmpexists && die "should have refused to overwrite"
393 echo 'y' | zstd tmp_rm1 tmp_rm2 -o tmp_rm3.zst --rm # tests the warning prompt for --rm with mu…
397 echo 'Y' | zstd -d tmp_rm3.zst tmp_rm4.zst -o tmp_rm_out --rm
400 echo 'yes' | zstd tmp_rm_out tmp_rm3 -c --rm && die "compressing multiple files to stdout with --rm…
401 echo 'yes' | zstd tmp_rm_out tmp_rm3 -c --rm -v && die "compressing multiple files to stdout with -…
403 zstd tmpexists1 tmpexists -c --rm -f > $INTOVOID
414 zstd -f tmp*
420 zstd -df ./*.zst
425 zstd -c tmp1 tmp2 tmp3 > tmpall
429 zstd -dc tmpall* > tmpdec
432 zstd -f tmp1 notHere tmp2 && die "missing file not detected!"
442 zstd tmp_named_pipe -o tmp_compressed
443 zstd -d -o tmp_decompressed tmp_compressed
456 zstd tmp -f -o tmp.zst
472 zstd tmp1 tmpInputTestDir/we/must/go/deeper/tmp2 --output-dir-flat tmpOutDir
477 zstd tmpOutDir -r -d --output-dir-flat tmpOutDirDecomp
481 zstd tmpOutDir -r -d --output-dir-flat=tmpOutDirDecomp
491 zstd tmp1 -r tmpInputTestDir --output-dir-mirror tmpOutDir
496zstd -r tmpInputTestDir/we/.../..must/../..mustgo/deeper.. --output-dir-mirror non-exist && die "…
497zstd -r tmpInputTestDir/we/.../..must/deeper../.. --output-dir-mirror non-exist && die "input can…
498zstd -r ../tests/tmpInputTestDir/we/.../..must/deeper.. --output-dir-mirror non-exist && die "inp…
502 zstd -r tmpInputTestDir/we/.../..must/go/deeper.. --output-dir-mirror tmpout
506 zstd tmpOutDir -r -d --output-dir-mirror tmpOutDirDecomp
511zstd -r tmpOutDir/tmpInputTestDir/we/.../..must/../..must --output-dir-mirror non-exist && die "i…
523 zstd -f --filelist=tmp_fileList
528 zstd -f --filelist tmp_fileList
535 zstd -f --filelist=tmp_symLink
545 zstd -f --filelist=tmp_fileList --filelist=tmp_fileList2
555 zstd -d -f --filelist=tmpZst
563 zstd -d -f --filelist=tmpZst --filelist=tmpZst2
571 zstd -f --filelist=tmp_badList && die "should have failed : list is text garbage"
575 zstd -qq -f --filelist=tmp_badList && die "should have failed : list is binary garbage" # let's av…
580 zstd -f tmp1 --filelist=tmpList --filelist=tmpList tmp2 tmp3 # can trigger an overflow of internal…
586 zstd -f tmp_contentsize
587 zstd -lv tmp_contentsize.zst | grep "Decompressed Size:"
588 zstd -f --no-content-size tmp_contentsize
589 zstd -lv tmp_contentsize.zst | grep "Decompressed Size:" && die
590 zstd -f --content-size tmp_contentsize
591 zstd -lv tmp_contentsize.zst | grep "Decompressed Size:"
592 zstd -f --content-size --no-content-size tmp_contentsize
593 zstd -lv tmp_contentsize.zst | grep "Decompressed Size:" && die
598 zstd --show-default-cparams -f tmp
606 zstd --show-default-cparams -f -r tmp_files
610 println "Hello world!" | zstd --zstd=windowLog=21, - -o tmp.zst && die "wrong parameters not d…
611 println "Hello world!" | zstd --zstd=windowLo=21 - -o tmp.zst && die "wrong parameters not d…
612 println "Hello world!" | zstd --zstd=windowLog=21,slog - -o tmp.zst && die "wrong parameters not d…
613 println "Hello world!" | zstd --zstd=strategy=10 - -o tmp.zst && die "parameter out of bound…
625 println "Hello world 1!" | zstd -df
626 println "Hello world 2!" | zstd -dcf
628 zstd -dcf tmp1
635 zstd -c hello.tmp > hello.zst
636 zstd -c world.tmp > world.zst
638 zstd -dc helloworld.zst > result.tmp
642 zstd -c hello.tmp > hello.zst --no-check
643 zstd -c world.tmp > world.zst --no-check
644 cat hello.zst world.zst > helloworld.zstd
645 zstd -dc helloworld.zst > result.tmp
663 rm ./*.tmp ./*.zstd
671 println foo | zstd > /dev/full && die "write error not detected!"
673 println foo | zstd | zstd -d > /dev/full && die "write error not detected!"
686 zstd world.tmp hello.tmp || true
689 zstd world.tmp || true
691 zstd world.tmp world2.tmp || true
694 zstd world.tmp hello.tmp -f
704 zstd tmpSparse -c | zstd -dv -o tmpSparseRegen
706 zstd tmpSparse -c | zstd -dv --sparse -c > tmpOutSparse
708 zstd tmpSparse -c | zstd -dv --no-sparse -c > tmpOutNoSparse
711 datagen -s1 -g1200007 -P100 | zstd | zstd -dv --sparse -c > tmpSparseOdd # Odd size file (to not …
715 println "Hello World 1 !" | zstd | zstd -d -c
716 println "Hello World 2 !" | zstd | zstd -d | cat
720 zstd -v -f tmpSparse1M -o tmpSparseCompressed
721 zstd -d -v -f tmpSparseCompressed -o tmpSparseRegenerated
722 zstd -d -v -f tmpSparseCompressed -c >> tmpSparseRegenerated
732 file_size=$(zstd -14 -f tmp -o tmp.zst && wc -c < tmp.zst)
733 stream_size=$(cat tmp | zstd -14 --stream-size=11000 | wc -c)
738 cat tmp | zstd -14 -f tmp -o tmp.zst --stream-size=11000
739 zstd -df tmp.zst -o tmp_decompress
742 cat tmp | zstd -14 -f -o tmp.zst --stream-size=11001 && die "should fail with incorrect stream size"
747 zstd -D "$TESTDIR/dict-files/zero-weight-dict" tmp_input
748 zstd -D "$TESTDIR/dict-files/zero-weight-dict" -d tmp_input.zst -o tmp_decomp
756 zstd -D "$TESTDIR/dict-files/zero-weight-dict" tmp_input
757 zstd -D "$TESTDIR/dict-files/zero-weight-dict" -d tmp_input.zst -o tmp_decomp
767 file_size=$(zstd -14 -f tmp -o tmp.zst && wc -c < tmp.zst)
768 stream_size=$(cat tmp | zstd -14 --size-hint=11000 | wc -c)
773 cat tmp | zstd -14 -f -o tmp.zst --size-hint=11000
774 zstd -df tmp.zst -o tmp_decompress
777 cat tmp | zstd -14 -f -D tmpDict --size-hint=11000 | zstd -t -D tmpDict
779 zstd -14 -f -D tmpDict --size-hint=11000 tmp tmp2
780 zstd -14 -f -o tmp1_.zst -D tmpDict --size-hint=11000 tmp
781 zstd -14 -f -o tmp2_.zst -D tmpDict --size-hint=11000 tmp2
785 cat tmp | zstd -14 -f --size-hint=11050 | zstd -t # slightly too high
786 cat tmp | zstd -14 -f --size-hint=10950 | zstd -t # slightly too low
787 cat tmp | zstd -14 -f --size-hint=22000 | zstd -t # considerably too high
788 cat tmp | zstd -14 -f --size-hint=5500 | zstd -t # considerably too low
796 datagen -g1M | zstd -D tmpDict | zstd -D tmpDict -dvq | $MD5SUM > tmp2
800 zstd --train "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpDict
803 zstd -f tmpDict -D tmpDict && die "compression error not detected!"
805 zstd -f tmp -D tmpDict
806 zstd -d tmp.zst -D tmpDict -fo result
809 zstd -f tmp -D tmpDict --zstd=strategy=6
810 zstd -d tmp.zst -D tmpDict -fo result
815 datagen -g5M | zstd -T2 -D tmpDict | zstd -t -D tmpDict # fails with v1.3.2
818 zstd --train "$TESTDIR"/*.c "$PRGDIR"/*.c "$PRGDIR"/*.h -o tmpDictC
819 zstd -d tmp.zst -D tmpDictC -fo result && die "wrong dictionary not detected!"
821 zstd --train "$TESTDIR"/*.c "$PRGDIR"/*.c --dictID=1 -o tmpDict1
824 zstd --train "$TESTDIR"/*.c "$PRGDIR"/*.c --dictID -o 1 tmpDict1 && die "wrong order : --dictID mus…
826 zstd --train "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpDict2 --maxdict=4K -v
828 zstd --train "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpDict3 --maxdict=1K -v
830 zstd --train "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpDict3 --maxdict -v 4K && die "wrong order : --maxdi…
832 zstd -f tmp -D tmpDict1 --no-dictID
833 zstd -d tmp.zst -D tmpDict -fo result
842 zstd -f --rm dirTestDict/* -D tmpDictC
843 zstd -d --rm dirTestDict/*.zst -D tmpDictC # note : use internal checksum by default
851 zstd --train-legacy -q tmp && die "Dictionary training should fail : not enough input source"
853 zstd --train-legacy -q tmp && die "Dictionary training should fail : source is pure noise"
856 zstd -o tmpDict --train "$TESTDIR"/*.c "$PRGDIR"/*.c
858 zstd --train "$TESTDIR"/*.c "$PRGDIR"/*.c
862 zstd --train tmpz tmpz tmpz tmpz tmpz tmpz tmpz tmpz tmpz && die "Dictionary training should fail :…
865zstd --train -T0 tmpz tmpz tmpz tmpz tmpz tmpz tmpz tmpz tmpz && die "Dictionary training should f…
867 zstd --train -T0 "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpDict
876 zstd --train-fastcover=k=46,d=8,f=15,split=80 "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpDict
878 zstd -f tmp -D tmpDict
879 zstd -d tmp.zst -D tmpDict -fo result
882 zstd --train-fastcover=k=56,d=8 "$TESTDIR"/*.c "$PRGDIR"/*.c "$PRGDIR"/*.h -o tmpDictC
883 zstd -d tmp.zst -D tmpDictC -fo result && die "wrong dictionary not detected!"
884 zstd --train-fastcover=k=56,d=8 && die "Create dictionary without input file"
886 zstd --train-fastcover=k=46,d=8,f=15,split=80 "$TESTDIR"/*.c "$PRGDIR"/*.c --dictID=1 -o tmpDict1
889 zstd --train-fastcover=steps=1,shrink "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpShrinkDict
890 zstd --train-fastcover=steps=1,shrink=1 "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpShrinkDict1
891 zstd --train-fastcover=steps=1,shrink=5 "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpShrinkDict2
893 zstd --train-fastcover=steps=1 "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpDict2 --maxdict=4K
895 zstd --train-fastcover=k=56,d=8,split=100 -r "$TESTDIR"/*.c "$PRGDIR"/*.c
897 zstd --train-fastcover=k=56,d=8,f=16 -r "$TESTDIR"/*.c "$PRGDIR"/*.c
898 zstd --train-fastcover=k=56,d=8,accel=15 -r "$TESTDIR"/*.c "$PRGDIR"/*.c && die "Created dictionary…
900 zstd --train-fastcover=k=56,d=8,accel=2 -r "$TESTDIR"/*.c "$PRGDIR"/*.c
902 zstd --train-fastcover=k=56,d=8,accel=10 -r "$TESTDIR"/*.c "$PRGDIR"/*.c
904 zstd --train-fastcover -T4 -r "$TESTDIR"/*.c "$PRGDIR"/*.c
907 zstd -o tmpDict --train-fastcover=k=56,d=8 "$TESTDIR"/*.c "$PRGDIR"/*.c
909 zstd --train-fastcover=k=56,d=8 "$TESTDIR"/*.c "$PRGDIR"/*.c
919 zstd --train-legacy=selectivity=8 "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpDict
921 zstd -f tmp -D tmpDict
922 zstd -d tmp.zst -D tmpDict -fo result
924 zstd --train-legacy=s=8 && die "Create dictionary without input files (should error)"
926 zstd --train-legacy=s=5 "$TESTDIR"/*.c "$PRGDIR"/*.c "$PRGDIR"/*.h -o tmpDictC
927 zstd -d tmp.zst -D tmpDictC -fo result && die "wrong dictionary not detected!"
929 zstd --train-legacy -s5 "$TESTDIR"/*.c "$PRGDIR"/*.c --dictID=1 -o tmpDict1
932 zstd --train-legacy -s9 "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpDict2 --maxdict=4K
935 zstd -o tmpDict --train-legacy "$TESTDIR"/*.c "$PRGDIR"/*.c
937 zstd --train-legacy "$TESTDIR"/*.c "$PRGDIR"/*.c
946 zstd tmp1
947 zstd -t tmp1.zst
948 zstd --test tmp1.zst
950 zstd -t ./*.zst
952 zstd -t ./* && die "bad files not detected !"
953 zstd -t tmp1 && die "bad file not detected !"
955 zstd -t tmp2.zst && die "bad file not detected !"
957 zstd -t tmp3 && die "bad file not detected !" # detects 0-sized files as bad
959 zstd -t --rm tmp1.zst
962 zstd -t tmpSplit.* && die "bad file not detected !"
963 datagen | zstd -c | zstd -t
968 zstd -t -r "$TESTDIR/golden-decompression"
969 zstd -c -r "$TESTDIR/golden-compression" | zstd -t
970 zstd -D "$TESTDIR/golden-dictionaries/http-dict-missing-symbols" "$TESTDIR/golden-compression/http"…
977 zstd -bi0 tmp1
979 zstd -i0b0e3 tmp1
981 zstd -bi0 --fast tmp1
983 zstd -rqi0b1e2 tmp1
985 zstd -f tmp1
986 zstd -b -d -i0 tmp1.zst
993 zstd --format=zstd -f tmp
1000 zstd --format=gzip -V || GZIPMODE=0
1007 zstd --format=gzip -f tmp
1010 zstd -d -f -v tmp.gz
1024 zstd -f --format=gzip tmp
1025 zstd -f tmp
1026 cat tmp.gz tmp.zst tmp.gz tmp.zst | zstd -d -f -o tmp
1027 truncateLastByte tmp.gz | zstd -t > $INTOVOID && die "incomplete frame not detected !"
1036 zstd --format=gzip --format=zstd -f tmp
1043 zstd --format=xz -V || LZMAMODE=0
1051 zstd --format=lzma -f tmp
1052 zstd --format=xz -f tmp
1057 zstd -d -f -v tmp.xz
1058 zstd -d -f -v tmp.lzma
1090 zstd -f --format=xz tmp
1091 zstd -f --format=lzma tmp
1092 zstd -f tmp
1093 cat tmp.xz tmp.lzma tmp.zst tmp.lzma tmp.xz tmp.zst | zstd -d -f -o tmp
1094 truncateLastByte tmp.xz | zstd -t > $INTOVOID && die "incomplete frame not detected !"
1095 truncateLastByte tmp.lzma | zstd -t > $INTOVOID && die "incomplete frame not detected !"
1104 zstd --format=lz4 -V || LZ4MODE=0
1111 zstd --format=lz4 -f tmp
1114 zstd -d -f -v tmp.lz4
1127 zstd -f --format=lz4 tmp
1128 zstd -f tmp
1129 cat tmp.lz4 tmp.zst tmp.lz4 tmp.zst | zstd -d -f -o tmp
1130 truncateLastByte tmp.lz4 | zstd -t > $INTOVOID && die "incomplete frame not detected !"
1139 ! zstd -d tmp.abc 2> tmplg
1155 zstd tmp1 -o tmp1.zstd
1156 zstd -d -f tmp1.zstd # support .zstd suffix even though it's not the default suffix
1160 rm -f tmp tmp.tar tmp.tzst tmp.tgz tmp.txz tmp.tlz4 tmp1.zstd
1164 zstd tmp.tar -o tmp.tzst
1166 zstd -d tmp.tzst
1172 zstd -d tmp.tgz
1178 tar c tmp | zstd --format=xz > tmp.txz
1179 zstd -d tmp.txz
1185 tar c tmp | zstd --format=lz4 > tmp.tlz4
1186 zstd -d tmp.tlz4
1192 ! zstd -d tmp.t
1193 ! zstd -d tmp.tz
1194 ! zstd -d tmp.tzs
1235 ZSTD_NBTHREADS=-3 zstd -f mt_tmp # negative value, warn and revert to default setting
1236 ZSTD_NBTHREADS='' zstd -f mt_tmp # empty env var, warn and revert to default setting
1237 ZSTD_NBTHREADS=- zstd -f mt_tmp # malformed env var, warn and revert to default setting
1238 ZSTD_NBTHREADS=a zstd -f mt_tmp # malformed env var, warn and revert to default setting
1239 ZSTD_NBTHREADS=+a zstd -f mt_tmp # malformed env var, warn and revert to default setting
1240 ZSTD_NBTHREADS=3a7 zstd -f mt_tmp # malformed env var, warn and revert to default setting
1241 …ZSTD_NBTHREADS=50000000000 zstd -f mt_tmp # numeric value too large, warn and revert to default se…
1242 ZSTD_NBTHREADS=2 zstd -f mt_tmp # correct usage
1243 ZSTD_NBTHREADS=1 zstd -f mt_tmp # correct usage: single thread
1248 refSize=$(zstd tmp -6 -c --zstd=wlog=18 | wc -c)
1249 ov9Size=$(zstd tmp -6 -c --zstd=wlog=18,ovlog=9 | wc -c)
1250 ov1Size=$(zstd tmp -6 -c --zstd=wlog=18,ovlog=1 | wc -c)
1274 zstd tmp*
1275 zstd -l ./*.zst
1276 zstd -lv ./*.zst | grep "Decompressed Size:" # check that decompressed size is present in header
1277 zstd --list ./*.zst
1278 zstd --list -v ./*.zst
1283 zstd -l ./*.zst
1284 zstd -lv ./*.zst
1287 zstd -l tmp1 tmp1.zst && die "-l must fail on non-zstd file"
1288 zstd --list tmp* && die "-l must fail on non-zstd file"
1289 zstd -lv tmp1* && die "-l must fail on non-zstd file"
1290 zstd --list -v tmp2 tmp12.zst && die "-l must fail on non-zstd file"
1297 zstd -f $TEST_DATA_FILE -o $FULL_COMPRESSED_FILE
1299 zstd --list $TRUNCATED_COMPRESSED_FILE && die "-l must fail on truncated file"
1306 zstd -l && die "-l must fail on empty list of files"
1307 zstd -l - && die "-l does not work on stdin"
1308 zstd -l < tmp1.zst && die "-l does not work on stdin"
1309 zstd -l - < tmp1.zst && die "-l does not work on stdin"
1310 zstd -l - tmp1.zst && die "-l does not work on stdin"
1311 zstd -l - tmp1.zst < tmp1.zst && die "-l does not work on stdin"
1312 zstd -l tmp1.zst < tmp2.zst # this will check tmp1.zst, but not tmp2.zst, which is not an error : z…
1316 zstd tmp5
1317 zstd -l tmp5.zst
1318 zstd -l tmp5* && die "-l must fail on non-zstd file"
1319 zstd -lv tmp5.zst | grep "Decompressed Size: 0.00 KB (0 B)" # check that 0 size is present in head…
1320 zstd -lv tmp5* && die "-l must fail on non-zstd file"
1323 datagen -g513K | zstd > tmp6.zst
1324 zstd -l tmp6.zst
1325 zstd -lv tmp6.zst | grep "Decompressed Size:" && die "Field :Decompressed Size: should not be avai…
1328 zstd -f --no-check tmp1
1329 zstd -l tmp1.zst
1330 zstd -lv tmp1.zst
1333 zstd -f --trace tmp.trace tmp1
1334 zstd -f --trace tmp.trace tmp1 tmp2 tmp3
1335 zstd -f --trace tmp.trace tmp1 tmp2 tmp3 -o /dev/null
1336 zstd -f --trace tmp.trace tmp1 tmp2 tmp3 --single-thread
1337 zstd -f --trace tmp.trace -D tmp1 tmp2 tmp3 -o /dev/null
1338 zstd -f --trace tmp.trace -D tmp1 tmp2 tmp3 -o /dev/null --single-thread
1339 zstd --trace tmp.trace -t tmp1.zst
1340 zstd --trace tmp.trace -t tmp1.zst tmp2.zst
1341 zstd -f --trace tmp.trace -d tmp1.zst
1342 zstd -f --trace tmp.trace -d tmp1.zst tmp2.zst tmp3.zst
1343 zstd -D tmp1 tmp2 -c | zstd --trace tmp.trace -t -D tmp1
1344 zstd -b1e10i0 --trace tmp.trace tmp1
1345 zstd -b1e10i0 --trace tmp.trace tmp1 tmp2 tmp3
1361 optCSize16=$(datagen -g511K | zstd -16 -c | wc -c)
1362 longCSize16=$(datagen -g511K | zstd -16 --long -c | wc -c)
1363 optCSize19=$(datagen -g2M | zstd -19 -c | wc -c)
1364 longCSize19=$(datagen -g2M | zstd -19 --long -c | wc -c)
1365 optCSize19wlog23=$(datagen -g2M | zstd -19 -c --zstd=wlog=23 | wc -c)
1366 longCSize19wlog23=$(datagen -g2M | zstd -19 -c --long=23 | wc -c)
1395 zstd -f -vv --adapt=min=10,max=9 tmp && die "--adapt must fail on incoherent bounds"
1401 zstd -f -vv --rsyncable --single-thread tmp && die "--rsyncable must fail with --single-thread"
1407 zstd --patch-from=tmp_dict tmp_patch -o tmp_patch_diff
1408 zstd -d --patch-from=tmp_dict tmp_patch_diff -o tmp_patch_recon
1412 zstd -f --patch-from tmp_dict tmp_patch -o tmp_patch_diff
1413 zstd -df --patch-from tmp_dict tmp_patch_diff -o tmp_patch_recon
1422 zstd --patch-from=tmp_dict -r tmp_dir && die
1428 zstd -15 --patch-from=tmp_dict tmp_patch 2>&1 | grep "long mode automatically triggered"
1434 cat tmp_patch | zstd -f --patch-from=tmp_dict -c -o tmp_patch_diff && die
1435 cat tmp_patch | zstd -f --patch-from=tmp_dict --stream-size=1000 -c -o tmp_patch_diff
1502 zstd --train-cover=k=46,d=8,split=80 "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpDict
1504 zstd -f tmp -D tmpDict
1505 zstd -d tmp.zst -D tmpDict -fo result
1507 zstd --train-cover=k=56,d=8 && die "Create dictionary without input file (should error)"
1509 zstd --train-cover=k=56,d=8 "$TESTDIR"/*.c "$PRGDIR"/*.c "$PRGDIR"/*.h -o tmpDictC
1510 zstd -d tmp.zst -D tmpDictC -fo result && die "wrong dictionary not detected!"
1512 zstd --train-cover=steps=256,shrink "$TESTDIR"/*.c "$PRGDIR"/*.c --dictID=1 -o tmpShrinkDict
1513 zstd --train-cover=steps=256,shrink=1 "$TESTDIR"/*.c "$PRGDIR"/*.c --dictID=1 -o tmpShrinkDict1
1514 zstd --train-cover=steps=256,shrink=5 "$TESTDIR"/*.c "$PRGDIR"/*.c --dictID=1 -o tmpShrinkDict2
1516 zstd --train-cover=k=46,d=8,split=80 "$TESTDIR"/*.c "$PRGDIR"/*.c --dictID=1 -o tmpDict1
1519 zstd --train-cover=steps=8 "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpDict2 --maxdict=4K
1521 zstd --train-cover=split=90 -r "$TESTDIR"/*.c "$PRGDIR"/*.c
1522 zstd --train-cover=split=80 -r "$TESTDIR"/*.c "$PRGDIR"/*.c
1524 zstd --train-cover=split=100 -r "$TESTDIR"/*.c "$PRGDIR"/*.c
1527 zstd -o tmpDict --train-cover "$TESTDIR"/*.c "$PRGDIR"/*.c
1529 zstd --train-cover "$TESTDIR"/*.c "$PRGDIR"/*.c