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
151 if echo hello | zstd -v -T2 2>&1 > $INTOVOID | grep -q 'multi-threading is disabled'
164 zstd -f tmp # trivial compression case, creates tmp.zst
166 zstd -df tmp.zst # trivial decompression case (overwrites tmp)
168 zstd -99 -f tmp # too large compression level, automatic sized down
169 zstd -5000000000 -f tmp && die "too large numeric value : must fail"
171 zstd --fast -f tmp # == -1
172 zstd --fast=3 -f tmp # == -3
173 zstd --fast=200000 -f tmp # too low compression level, automatic fixed
174 zstd --fast=5000000000 -f tmp && die "too large numeric value : must fail"
175 zstd -c --fast=0 tmp > $INTOVOID && die "--fast must not accept value 0"
177 zstd --fast=9999999999 -f tmp && die "should have refused numeric value"
179 ZSTD_CLEVEL=12 zstd -f tmp # positive compression level
180 ZSTD_CLEVEL=-12 zstd -f tmp # negative compression level
181 ZSTD_CLEVEL=+12 zstd -f tmp # valid: verbose '+' sign
182 ZSTD_CLEVEL='' zstd -f tmp # empty env var, warn and revert to default setting
183 ZSTD_CLEVEL=- zstd -f tmp # malformed env var, warn and revert to default setting
184 ZSTD_CLEVEL=a 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=3a7 zstd -f tmp # malformed env var, warn and revert to default setting
187 ZSTD_CLEVEL=50000000000 zstd -f tmp # numeric value too large, warn and revert to default setting
189 ZSTD_CLEVEL=12 zstd --fast=3 -f tmp # overridden by command line option
191 zstd tmp -c > tmpCompressed
192 zstd tmp --stdout > tmpCompressed # long command format
195 zstd tmp -o tmpCompressed
198 zstd tmp -fo tmpCompressed
201 zstd tmp2 -fo && die "-o must be followed by filename "
203 println bob | zstd | zstd -d
206 println bob | zstd && die "should have refused : compressed data to terminal"
208 zstd -d > $INTOVOID && die "should have refused : compressed data from terminal"
211 println -n '' | zstd - --stdout | zstd -d --stdout
214 zstd tmp1 -c | wc -c | grep "14"
215 zstd < tmp1 | wc -c | grep "14"
217 zstd -d tmpCompressed && die "wrong suffix error not detected!"
218 zstd -df tmp && die "should have refused : wrong extension"
220 zstd -d tmpCompressed -c > tmpResult # decompression using stdout
221 zstd --decompress tmpCompressed -c > tmpResult
222 zstd --decompress tmpCompressed --stdout > tmpResult
224 zstd -dc < tmp.zst > $INTOVOID # combine decompression, stdin & stdout
225 zstd -dc - < tmp.zst > $INTOVOID
226 zstd -d < tmp.zst > $INTOVOID # implicit stdout when stdin is used
227 zstd -d - < tmp.zst > $INTOVOID
229 zstd -d -f tmp.zst -M2K -c > $INTOVOID && die "decompression needs more memory than allowed"
230 zstd -d -f tmp.zst --memlimit=2K -c > $INTOVOID && die "decompression needs more memory than allowe…
231 zstd -d -f tmp.zst --memory=2K -c > $INTOVOID && die "decompression needs more memory than allowed"…
232 zstd -d -f tmp.zst --memlimit-decompress=2K -c > $INTOVOID && die "decompression needs more memory …
234 zstd -q tmp && die "overwrite check failed!"
236 zstd -q -f tmp
237 zstd -q --force tmp
243 zstd -q tmpro && die "should have refused to overwrite read-only file"
244 zstd -q -f tmpro
246 zstd tmpro -c --no-progress | zstd -d -f -o "$INTOVOID" --no-progress
247 zstd tmpro -cv --no-progress | zstd -dv -f -o "$INTOVOID" --no-progress
250 zstd tmp -fo tmp && die "zstd compression overwrote the input file"
251 zstd tmp.zst -dfo tmp.zst && die "zstd decompression overwrote the input file"
253 zstd nothere && die "zstd hasn't detected that input file does not exist"
255 zstd tmp -c --no-compress-literals -1 | zstd -t
256 zstd tmp -c --no-compress-literals --fast=1 | zstd -t
257 zstd tmp -c --no-compress-literals -19 | zstd -t
258 zstd tmp -c --compress-literals -1 | zstd -t
259 zstd tmp -c --compress-literals --fast=1 | zstd -t
260 zstd tmp -c --compress-literals -19 | zstd -t
261 zstd -b --fast=1 -i0e1 tmp --compress-literals
262 zstd -b --fast=1 -i0e1 tmp --no-compress-literals
264 zstd -f tmp -o tmp_corrupt.zst --check
265 zstd -f tmp -o tmp.zst --no-check
267 zstd -d -f tmp_corrupt.zst --no-check
268 zstd -d -f tmp_corrupt.zst --check --no-check # final flag overrides
269 zstd -d -f tmp.zst --no-check
275 zstd -f tmp_grep
287 zstd --exclude-compressed --long --rm -r precompressedFilterTestDir
290 zstd --exclude-compressed --long --rm -r precompressedFilterTestDir
302 zstd --exclude-compressed --long --rm -r precompressedFilterTestDir
306 zstd --long --rm -r precompressedFilterTestDir
317 zstd tmpPrompt -f
318 zstd < tmpPrompt -o tmpPrompt.zst && die "should have aborted immediately and failed to overwrite"
319 zstd < tmpPrompt -o tmpPrompt.zst -f # should successfully overwrite with -f
320 zstd -q -d -f tmpPrompt.zst -o tmpPromptRegenerated
323 echo 'yes' | zstd tmpPrompt -o tmpPrompt.zst # accept piped "y" input to force overwrite when usin…
324 echo 'yes' | zstd < tmpPrompt -o tmpPrompt.zst && die "should have aborted immediately and failed t…
325 zstd tmpPrompt - < tmpPrompt -o tmpPromp.zst --rm && die "should have aborted immediately and faile…
332 zstd -c -r < tmp > tmp.zst
336 zstd -f --rm tmp
338 zstd -f -d --rm tmp.zst
342 zstd tmp -f -o "$DEVDEVICE" 2>tmplog > "$INTOVOID"
345 zstd tmp -f -o "$INTOVOID" 2>&1 | grep -v "Refusing to remove non-regular file"
347 println a | zstd --rm > $INTOVOID # --rm should remain silent
349 zstd -f tmp && die "tmp not present : should have failed"
353 zstd -d -f tmp.zst && die "attempt to decompress a non existing file"
358 zstd -f tmp && die "attempt to compress a non existing file"
368 zstd -d -o tmp1 "$TESTDIR/golden-decompression/rle-first-block.zst"
376 zstd tmp1 tmp2 -o "$INTOVOID" -f
377 zstd tmp1 tmp2 -c | zstd -t
378 zstd tmp1 tmp2 -o tmp.zst
381 zstd tmp1 tmp2
382 zstd -t tmp1.zst tmp2.zst
383 zstd -dc tmp1.zst tmp2.zst
384 zstd tmp1.zst tmp2.zst -o "$INTOVOID" -f
385 zstd -d tmp1.zst tmp2.zst -o tmp
387 zstd tmp1 tmp2 -f -o tmpexists
388 zstd tmp1 tmp2 -q -o tmpexists && die "should have refused to overwrite"
392 echo 'y' | zstd tmp_rm1 tmp_rm2 -o tmp_rm3.zst --rm # tests the warning prompt for --rm with mu…
396 echo 'Y' | zstd -d tmp_rm3.zst tmp_rm4.zst -o tmp_rm_out --rm
399 echo 'yes' | zstd tmp_rm_out tmp_rm3 -c --rm && die "compressing multiple files to stdout with --rm…
400 echo 'yes' | zstd tmp_rm_out tmp_rm3 -c --rm -v && die "compressing multiple files to stdout with -…
402 zstd tmpexists1 tmpexists -c --rm -f > $INTOVOID
413 zstd -f tmp*
419 zstd -df ./*.zst
424 zstd -c tmp1 tmp2 tmp3 > tmpall
428 zstd -dc tmpall* > tmpdec
431 zstd -f tmp1 notHere tmp2 && die "missing file not detected!"
441 zstd tmp_named_pipe -o tmp_compressed
442 zstd -d -o tmp_decompressed tmp_compressed
455 zstd tmp -f -o tmp.zst
471 zstd tmp1 tmpInputTestDir/we/must/go/deeper/tmp2 --output-dir-flat tmpOutDir
476 zstd tmpOutDir -r -d --output-dir-flat tmpOutDirDecomp
480 zstd tmpOutDir -r -d --output-dir-flat=tmpOutDirDecomp
490 zstd tmp1 -r tmpInputTestDir --output-dir-mirror tmpOutDir
495 …zstd -r tmpInputTestDir/we/must/../must --output-dir-mirror non-exist && die "input cannot contai…
499 zstd tmpOutDir -r -d --output-dir-mirror tmpOutDirDecomp
504 …zstd -r tmpOutDir/tmpInputTestDir/we/must/../must --output-dir-mirror non-exist && die "input can…
516 zstd -f --filelist=tmp_fileList
521 zstd -f --filelist tmp_fileList
528 zstd -f --filelist=tmp_symLink
538 zstd -f --filelist=tmp_fileList --filelist=tmp_fileList2
548 zstd -d -f --filelist=tmpZst
556 zstd -d -f --filelist=tmpZst --filelist=tmpZst2
564 zstd -f --filelist=tmp_badList && die "should have failed : list is text garbage"
568 zstd -qq -f --filelist=tmp_badList && die "should have failed : list is binary garbage" # let's av…
573 zstd -f tmp1 --filelist=tmpList --filelist=tmpList tmp2 tmp3 # can trigger an overflow of internal…
579 zstd -f tmp_contentsize
580 zstd -lv tmp_contentsize.zst | grep "Decompressed Size:"
581 zstd -f --no-content-size tmp_contentsize
582 zstd -lv tmp_contentsize.zst | grep "Decompressed Size:" && die
583 zstd -f --content-size tmp_contentsize
584 zstd -lv tmp_contentsize.zst | grep "Decompressed Size:"
585 zstd -f --content-size --no-content-size tmp_contentsize
586 zstd -lv tmp_contentsize.zst | grep "Decompressed Size:" && die
591 zstd --show-default-cparams -f tmp
599 zstd --show-default-cparams -f -r tmp_files
603 println "Hello world!" | zstd --zstd=windowLog=21, - -o tmp.zst && die "wrong parameters not d…
604 println "Hello world!" | zstd --zstd=windowLo=21 - -o tmp.zst && die "wrong parameters not d…
605 println "Hello world!" | zstd --zstd=windowLog=21,slog - -o tmp.zst && die "wrong parameters not d…
606 println "Hello world!" | zstd --zstd=strategy=10 - -o tmp.zst && die "parameter out of bound…
618 println "Hello world 1!" | zstd -df
619 println "Hello world 2!" | zstd -dcf
621 zstd -dcf tmp1
628 zstd -c hello.tmp > hello.zst
629 zstd -c world.tmp > world.zst
631 zstd -dc helloworld.zst > result.tmp
635 zstd -c hello.tmp > hello.zst --no-check
636 zstd -c world.tmp > world.zst --no-check
637 cat hello.zst world.zst > helloworld.zstd
638 zstd -dc helloworld.zst > result.tmp
656 rm ./*.tmp ./*.zstd
664 println foo | zstd > /dev/full && die "write error not detected!"
666 println foo | zstd | zstd -d > /dev/full && die "write error not detected!"
679 zstd world.tmp hello.tmp || true
682 zstd world.tmp || true
684 zstd world.tmp world2.tmp || true
687 zstd world.tmp hello.tmp -f
697 zstd tmpSparse -c | zstd -dv -o tmpSparseRegen
699 zstd tmpSparse -c | zstd -dv --sparse -c > tmpOutSparse
701 zstd tmpSparse -c | zstd -dv --no-sparse -c > tmpOutNoSparse
704 datagen -s1 -g1200007 -P100 | zstd | zstd -dv --sparse -c > tmpSparseOdd # Odd size file (to not …
708 println "Hello World 1 !" | zstd | zstd -d -c
709 println "Hello World 2 !" | zstd | zstd -d | cat
713 zstd -v -f tmpSparse1M -o tmpSparseCompressed
714 zstd -d -v -f tmpSparseCompressed -o tmpSparseRegenerated
715 zstd -d -v -f tmpSparseCompressed -c >> tmpSparseRegenerated
725 file_size=$(zstd -14 -f tmp -o tmp.zst && wc -c < tmp.zst)
726 stream_size=$(cat tmp | zstd -14 --stream-size=11000 | wc -c)
731 cat tmp | zstd -14 -f tmp -o tmp.zst --stream-size=11000
732 zstd -df tmp.zst -o tmp_decompress
735 cat tmp | zstd -14 -f -o tmp.zst --stream-size=11001 && die "should fail with incorrect stream size"
740 zstd -D "$TESTDIR/dict-files/zero-weight-dict" tmp_input
741 zstd -D "$TESTDIR/dict-files/zero-weight-dict" -d tmp_input.zst -o tmp_decomp
749 zstd -D "$TESTDIR/dict-files/zero-weight-dict" tmp_input
750 zstd -D "$TESTDIR/dict-files/zero-weight-dict" -d tmp_input.zst -o tmp_decomp
760 file_size=$(zstd -14 -f tmp -o tmp.zst && wc -c < tmp.zst)
761 stream_size=$(cat tmp | zstd -14 --size-hint=11000 | wc -c)
766 cat tmp | zstd -14 -f -o tmp.zst --size-hint=11000
767 zstd -df tmp.zst -o tmp_decompress
770 cat tmp | zstd -14 -f -D tmpDict --size-hint=11000 | zstd -t -D tmpDict
772 zstd -14 -f -D tmpDict --size-hint=11000 tmp tmp2
773 zstd -14 -f -o tmp1_.zst -D tmpDict --size-hint=11000 tmp
774 zstd -14 -f -o tmp2_.zst -D tmpDict --size-hint=11000 tmp2
778 cat tmp | zstd -14 -f --size-hint=11050 | zstd -t # slightly too high
779 cat tmp | zstd -14 -f --size-hint=10950 | zstd -t # slightly too low
780 cat tmp | zstd -14 -f --size-hint=22000 | zstd -t # considerably too high
781 cat tmp | zstd -14 -f --size-hint=5500 | zstd -t # considerably too low
789 datagen -g1M | zstd -D tmpDict | zstd -D tmpDict -dvq | $MD5SUM > tmp2
793 zstd --train "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpDict
796 zstd -f tmpDict -D tmpDict && die "compression error not detected!"
798 zstd -f tmp -D tmpDict
799 zstd -d tmp.zst -D tmpDict -fo result
802 zstd -f tmp -D tmpDict --zstd=strategy=6
803 zstd -d tmp.zst -D tmpDict -fo result
808 datagen -g5M | zstd -T2 -D tmpDict | zstd -t -D tmpDict # fails with v1.3.2
811 zstd --train "$TESTDIR"/*.c "$PRGDIR"/*.c "$PRGDIR"/*.h -o tmpDictC
812 zstd -d tmp.zst -D tmpDictC -fo result && die "wrong dictionary not detected!"
814 zstd --train "$TESTDIR"/*.c "$PRGDIR"/*.c --dictID=1 -o tmpDict1
817 zstd --train "$TESTDIR"/*.c "$PRGDIR"/*.c --dictID -o 1 tmpDict1 && die "wrong order : --dictID mus…
819 zstd --train "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpDict2 --maxdict=4K -v
821 zstd --train "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpDict3 --maxdict=1K -v
823 zstd --train "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpDict3 --maxdict -v 4K && die "wrong order : --maxdi…
825 zstd -f tmp -D tmpDict1 --no-dictID
826 zstd -d tmp.zst -D tmpDict -fo result
835 zstd -f --rm dirTestDict/* -D tmpDictC
836 zstd -d --rm dirTestDict/*.zst -D tmpDictC # note : use internal checksum by default
844 zstd --train-legacy -q tmp && die "Dictionary training should fail : not enough input source"
846 zstd --train-legacy -q tmp && die "Dictionary training should fail : source is pure noise"
849 zstd -o tmpDict --train "$TESTDIR"/*.c "$PRGDIR"/*.c
851 zstd --train "$TESTDIR"/*.c "$PRGDIR"/*.c
855 zstd --train tmpz tmpz tmpz tmpz tmpz tmpz tmpz tmpz tmpz && die "Dictionary training should fail :…
858 …zstd --train -T0 tmpz tmpz tmpz tmpz tmpz tmpz tmpz tmpz tmpz && die "Dictionary training should f…
860 zstd --train -T0 "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpDict
869 zstd --train-fastcover=k=46,d=8,f=15,split=80 "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpDict
871 zstd -f tmp -D tmpDict
872 zstd -d tmp.zst -D tmpDict -fo result
875 zstd --train-fastcover=k=56,d=8 "$TESTDIR"/*.c "$PRGDIR"/*.c "$PRGDIR"/*.h -o tmpDictC
876 zstd -d tmp.zst -D tmpDictC -fo result && die "wrong dictionary not detected!"
877 zstd --train-fastcover=k=56,d=8 && die "Create dictionary without input file"
879 zstd --train-fastcover=k=46,d=8,f=15,split=80 "$TESTDIR"/*.c "$PRGDIR"/*.c --dictID=1 -o tmpDict1
882 zstd --train-fastcover=steps=1,shrink "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpShrinkDict
883 zstd --train-fastcover=steps=1,shrink=1 "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpShrinkDict1
884 zstd --train-fastcover=steps=1,shrink=5 "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpShrinkDict2
886 zstd --train-fastcover=steps=1 "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpDict2 --maxdict=4K
888 zstd --train-fastcover=k=56,d=8,split=100 -r "$TESTDIR"/*.c "$PRGDIR"/*.c
890 zstd --train-fastcover=k=56,d=8,f=16 -r "$TESTDIR"/*.c "$PRGDIR"/*.c
891 zstd --train-fastcover=k=56,d=8,accel=15 -r "$TESTDIR"/*.c "$PRGDIR"/*.c && die "Created dictionary…
893 zstd --train-fastcover=k=56,d=8,accel=2 -r "$TESTDIR"/*.c "$PRGDIR"/*.c
895 zstd --train-fastcover=k=56,d=8,accel=10 -r "$TESTDIR"/*.c "$PRGDIR"/*.c
897 zstd --train-fastcover -T4 -r "$TESTDIR"/*.c "$PRGDIR"/*.c
900 zstd -o tmpDict --train-fastcover=k=56,d=8 "$TESTDIR"/*.c "$PRGDIR"/*.c
902 zstd --train-fastcover=k=56,d=8 "$TESTDIR"/*.c "$PRGDIR"/*.c
912 zstd --train-legacy=selectivity=8 "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpDict
914 zstd -f tmp -D tmpDict
915 zstd -d tmp.zst -D tmpDict -fo result
917 zstd --train-legacy=s=8 && die "Create dictionary without input files (should error)"
919 zstd --train-legacy=s=5 "$TESTDIR"/*.c "$PRGDIR"/*.c "$PRGDIR"/*.h -o tmpDictC
920 zstd -d tmp.zst -D tmpDictC -fo result && die "wrong dictionary not detected!"
922 zstd --train-legacy -s5 "$TESTDIR"/*.c "$PRGDIR"/*.c --dictID=1 -o tmpDict1
925 zstd --train-legacy -s9 "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpDict2 --maxdict=4K
928 zstd -o tmpDict --train-legacy "$TESTDIR"/*.c "$PRGDIR"/*.c
930 zstd --train-legacy "$TESTDIR"/*.c "$PRGDIR"/*.c
939 zstd tmp1
940 zstd -t tmp1.zst
941 zstd --test tmp1.zst
943 zstd -t ./*.zst
945 zstd -t ./* && die "bad files not detected !"
946 zstd -t tmp1 && die "bad file not detected !"
948 zstd -t tmp2.zst && die "bad file not detected !"
950 zstd -t tmp3 && die "bad file not detected !" # detects 0-sized files as bad
952 zstd -t --rm tmp1.zst
955 zstd -t tmpSplit.* && die "bad file not detected !"
956 datagen | zstd -c | zstd -t
961 zstd -t -r "$TESTDIR/golden-decompression"
962 zstd -c -r "$TESTDIR/golden-compression" | zstd -t
963 zstd -D "$TESTDIR/golden-dictionaries/http-dict-missing-symbols" "$TESTDIR/golden-compression/http"…
970 zstd -bi0 tmp1
972 zstd -i0b0e3 tmp1
974 zstd -bi0 --fast tmp1
976 zstd -rqi0b1e2 tmp1
978 zstd -f tmp1
979 zstd -b -d -i0 tmp1.zst
986 zstd --format=zstd -f tmp
993 zstd --format=gzip -V || GZIPMODE=0
1000 zstd --format=gzip -f tmp
1003 zstd -d -f -v tmp.gz
1017 zstd -f --format=gzip tmp
1018 zstd -f tmp
1019 cat tmp.gz tmp.zst tmp.gz tmp.zst | zstd -d -f -o tmp
1020 truncateLastByte tmp.gz | zstd -t > $INTOVOID && die "incomplete frame not detected !"
1029 zstd --format=gzip --format=zstd -f tmp
1036 zstd --format=xz -V || LZMAMODE=0
1044 zstd --format=lzma -f tmp
1045 zstd --format=xz -f tmp
1050 zstd -d -f -v tmp.xz
1051 zstd -d -f -v tmp.lzma
1083 zstd -f --format=xz tmp
1084 zstd -f --format=lzma tmp
1085 zstd -f tmp
1086 cat tmp.xz tmp.lzma tmp.zst tmp.lzma tmp.xz tmp.zst | zstd -d -f -o tmp
1087 truncateLastByte tmp.xz | zstd -t > $INTOVOID && die "incomplete frame not detected !"
1088 truncateLastByte tmp.lzma | zstd -t > $INTOVOID && die "incomplete frame not detected !"
1097 zstd --format=lz4 -V || LZ4MODE=0
1104 zstd --format=lz4 -f tmp
1107 zstd -d -f -v tmp.lz4
1120 zstd -f --format=lz4 tmp
1121 zstd -f tmp
1122 cat tmp.lz4 tmp.zst tmp.lz4 tmp.zst | zstd -d -f -o tmp
1123 truncateLastByte tmp.lz4 | zstd -t > $INTOVOID && die "incomplete frame not detected !"
1132 ! zstd -d tmp.abc 2> tmplg
1148 zstd tmp1 -o tmp1.zstd
1149 zstd -d -f tmp1.zstd # support .zstd suffix even though it's not the default suffix
1153 rm -f tmp tmp.tar tmp.tzst tmp.tgz tmp.txz tmp.tlz4 tmp1.zstd
1157 zstd tmp.tar -o tmp.tzst
1159 zstd -d tmp.tzst
1165 zstd -d tmp.tgz
1171 tar c tmp | zstd --format=xz > tmp.txz
1172 zstd -d tmp.txz
1178 tar c tmp | zstd --format=lz4 > tmp.tlz4
1179 zstd -d tmp.tlz4
1185 ! zstd -d tmp.t
1186 ! zstd -d tmp.tz
1187 ! zstd -d tmp.tzs
1228 ZSTD_NBTHREADS=-3 zstd -f mt_tmp # negative value, warn and revert to default setting
1229 ZSTD_NBTHREADS='' zstd -f mt_tmp # empty env var, warn and revert to default setting
1230 ZSTD_NBTHREADS=- zstd -f mt_tmp # malformed env var, warn and revert to default setting
1231 ZSTD_NBTHREADS=a zstd -f mt_tmp # malformed env var, warn and revert to default setting
1232 ZSTD_NBTHREADS=+a zstd -f mt_tmp # malformed env var, warn and revert to default setting
1233 ZSTD_NBTHREADS=3a7 zstd -f mt_tmp # malformed env var, warn and revert to default setting
1234 …ZSTD_NBTHREADS=50000000000 zstd -f mt_tmp # numeric value too large, warn and revert to default se…
1235 ZSTD_NBTHREADS=2 zstd -f mt_tmp # correct usage
1236 ZSTD_NBTHREADS=1 zstd -f mt_tmp # correct usage: single thread
1241 refSize=$(zstd tmp -6 -c --zstd=wlog=18 | wc -c)
1242 ov9Size=$(zstd tmp -6 -c --zstd=wlog=18,ovlog=9 | wc -c)
1243 ov1Size=$(zstd tmp -6 -c --zstd=wlog=18,ovlog=1 | wc -c)
1267 zstd tmp*
1268 zstd -l ./*.zst
1269 zstd -lv ./*.zst | grep "Decompressed Size:" # check that decompressed size is present in header
1270 zstd --list ./*.zst
1271 zstd --list -v ./*.zst
1276 zstd -l ./*.zst
1277 zstd -lv ./*.zst
1280 zstd -l tmp1 tmp1.zst && die "-l must fail on non-zstd file"
1281 zstd --list tmp* && die "-l must fail on non-zstd file"
1282 zstd -lv tmp1* && die "-l must fail on non-zstd file"
1283 zstd --list -v tmp2 tmp12.zst && die "-l must fail on non-zstd file"
1290 zstd -f $TEST_DATA_FILE -o $FULL_COMPRESSED_FILE
1292 zstd --list $TRUNCATED_COMPRESSED_FILE && die "-l must fail on truncated file"
1299 zstd -l && die "-l must fail on empty list of files"
1300 zstd -l - && die "-l does not work on stdin"
1301 zstd -l < tmp1.zst && die "-l does not work on stdin"
1302 zstd -l - < tmp1.zst && die "-l does not work on stdin"
1303 zstd -l - tmp1.zst && die "-l does not work on stdin"
1304 zstd -l - tmp1.zst < tmp1.zst && die "-l does not work on stdin"
1305 zstd -l tmp1.zst < tmp2.zst # this will check tmp1.zst, but not tmp2.zst, which is not an error : z…
1309 zstd tmp5
1310 zstd -l tmp5.zst
1311 zstd -l tmp5* && die "-l must fail on non-zstd file"
1312 zstd -lv tmp5.zst | grep "Decompressed Size: 0.00 KB (0 B)" # check that 0 size is present in head…
1313 zstd -lv tmp5* && die "-l must fail on non-zstd file"
1316 datagen -g513K | zstd > tmp6.zst
1317 zstd -l tmp6.zst
1318 zstd -lv tmp6.zst | grep "Decompressed Size:" && die "Field :Decompressed Size: should not be avai…
1321 zstd -f --no-check tmp1
1322 zstd -l tmp1.zst
1323 zstd -lv tmp1.zst
1339 optCSize16=$(datagen -g511K | zstd -16 -c | wc -c)
1340 longCSize16=$(datagen -g511K | zstd -16 --long -c | wc -c)
1341 optCSize19=$(datagen -g2M | zstd -19 -c | wc -c)
1342 longCSize19=$(datagen -g2M | zstd -19 --long -c | wc -c)
1343 optCSize19wlog23=$(datagen -g2M | zstd -19 -c --zstd=wlog=23 | wc -c)
1344 longCSize19wlog23=$(datagen -g2M | zstd -19 -c --long=23 | wc -c)
1345 optCSize22=$(datagen -g900K | zstd -22 --ultra -c | wc -c)
1346 longCSize22=$(datagen -g900K | zstd -22 --ultra --long -c | wc -c)
1378 zstd -f -vv --adapt=min=10,max=9 tmp && die "--adapt must fail on incoherent bounds"
1384 zstd -f -vv --rsyncable --single-thread tmp && die "--rsyncable must fail with --single-thread"
1390 zstd --patch-from=tmp_dict tmp_patch -o tmp_patch_diff
1391 zstd -d --patch-from=tmp_dict tmp_patch_diff -o tmp_patch_recon
1395 zstd -f --patch-from tmp_dict tmp_patch -o tmp_patch_diff
1396 zstd -df --patch-from tmp_dict tmp_patch_diff -o tmp_patch_recon
1405 zstd --patch-from=tmp_dict -r tmp_dir && die
1411 zstd -15 --patch-from=tmp_dict tmp_patch 2>&1 | grep "long mode automatically triggered"
1417 cat tmp_patch | zstd -f --patch-from=tmp_dict -c -o tmp_patch_diff && die
1418 cat tmp_patch | zstd -f --patch-from=tmp_dict --stream-size=1000 -c -o tmp_patch_diff
1485 zstd --train-cover=k=46,d=8,split=80 "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpDict
1487 zstd -f tmp -D tmpDict
1488 zstd -d tmp.zst -D tmpDict -fo result
1490 zstd --train-cover=k=56,d=8 && die "Create dictionary without input file (should error)"
1492 zstd --train-cover=k=56,d=8 "$TESTDIR"/*.c "$PRGDIR"/*.c "$PRGDIR"/*.h -o tmpDictC
1493 zstd -d tmp.zst -D tmpDictC -fo result && die "wrong dictionary not detected!"
1495 zstd --train-cover=steps=256,shrink "$TESTDIR"/*.c "$PRGDIR"/*.c --dictID=1 -o tmpShrinkDict
1496 zstd --train-cover=steps=256,shrink=1 "$TESTDIR"/*.c "$PRGDIR"/*.c --dictID=1 -o tmpShrinkDict1
1497 zstd --train-cover=steps=256,shrink=5 "$TESTDIR"/*.c "$PRGDIR"/*.c --dictID=1 -o tmpShrinkDict2
1499 zstd --train-cover=k=46,d=8,split=80 "$TESTDIR"/*.c "$PRGDIR"/*.c --dictID=1 -o tmpDict1
1502 zstd --train-cover=steps=8 "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpDict2 --maxdict=4K
1504 zstd --train-cover=split=90 -r "$TESTDIR"/*.c "$PRGDIR"/*.c
1505 zstd --train-cover=split=80 -r "$TESTDIR"/*.c "$PRGDIR"/*.c
1507 zstd --train-cover=split=100 -r "$TESTDIR"/*.c "$PRGDIR"/*.c
1510 zstd -o tmpDict --train-cover "$TESTDIR"/*.c "$PRGDIR"/*.c
1512 zstd --train-cover "$TESTDIR"/*.c "$PRGDIR"/*.c