Lines Matching refs:tmp
65 rm -f tmp.zst tmp.md5.1 tmp.md5.2
67 datagen $1 $local_p > tmp
68 < tmp $MD5SUM > tmp.md5.1
69 zstd --ultra -v$local_c -c tmp | zstd -d$local_d | $MD5SUM > tmp.md5.2
70 $DIFF -q tmp.md5.1 tmp.md5.2
162 datagen > tmp
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
200 cp tmp tmp2
218 zstd -df tmp && die "should have refused : wrong extension"
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
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"
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
269 zstd -d -f tmp.zst --no-check
332 zstd -c -r < tmp > tmp.zst
336 zstd -f --rm tmp
337 test ! -f tmp # tmp should no longer be present
338 zstd -f -d --rm tmp.zst
339 test ! -f tmp.zst # tmp.zst should no longer be present
341 println hello > tmp
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"
348 rm tmp
349 zstd -f tmp && die "tmp not present : should have failed"
350 test ! -f tmp.zst # tmp.zst should not be created
352 touch tmp # create destination file
353 zstd -d -f tmp.zst && die "attempt to decompress a non existing file"
354 test -f tmp # destination file should still be present
356 rm tmp # erase source file
357 touch tmp.zst # create destination file
358 zstd -f tmp && die "attempt to compress a non existing file"
359 test -f tmp.zst # destination file should still be present
360 rm -rf tmp* # may also erase tmp* directory from previous failed run
367 dd bs=1048576 count=1 if=/dev/zero of=tmp
369 $DIFF -s tmp1 tmp
370 rm tmp*
378 zstd tmp1 tmp2 -o tmp.zst
385 zstd -d tmp1.zst tmp2.zst -o tmp
413 zstd -f tmp*
432 rm tmp*
444 rm -rf tmp*
452 datagen > tmp
453 sudoZstd tmp -o $INTOVOID # sudo rights could modify /dev/null permissions
454 sudoZstd tmp -c > $INTOVOID
455 zstd tmp -f -o tmp.zst
456 sudoZstd -d tmp.zst -c > $INTOVOID
457 sudoZstd -d tmp.zst -o $INTOVOID
483 rm -rf tmp*
507 rm -rf tmp*
572 ls tmp* > tmpList
574 rm -rf tmp*
587 rm -rf tmp*
590 datagen > tmp
591 zstd --show-default-cparams -f tmp
592 rm -rf tmp*
600 rm -rf tmp*
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…
607 test ! -f tmp.zst # tmp.zst should not be created
625 println "hello " > hello.tmp
626 println "world!" > world.tmp
627 cat hello.tmp world.tmp > helloworld.tmp
628 zstd -c hello.tmp > hello.zst
629 zstd -c world.tmp > world.zst
631 zstd -dc helloworld.zst > result.tmp
632 cat result.tmp
633 $DIFF helloworld.tmp result.tmp
635 zstd -c hello.tmp > hello.zst --no-check
636 zstd -c world.tmp > world.zst --no-check
638 zstd -dc helloworld.zst > result.tmp
639 $DIFF helloworld.tmp result.tmp
642 $EXE_PREFIX ./zstdcat helloworld.zst > result.tmp
643 $DIFF helloworld.tmp result.tmp
645 $EXE_PREFIX ./zstdcat helloworld.link.zst > result.tmp
646 $DIFF helloworld.tmp result.tmp
648 rm result.tmp
651 $EXE_PREFIX ./zcat helloworld.zst > result.tmp
652 $DIFF helloworld.tmp result.tmp
653 $EXE_PREFIX ./zcat helloworld.link.zst > result.tmp
654 $DIFF helloworld.tmp result.tmp
656 rm ./*.tmp ./*.zstd
675 rm -f hello.tmp world.tmp world2.tmp hello.tmp.zst world.tmp.zst
676 println "hello world" > hello.tmp
677 ln -s hello.tmp world.tmp
678 ln -s hello.tmp world2.tmp
679 zstd world.tmp hello.tmp || true
680 test -f hello.tmp.zst # regular file should have been compressed!
681 test ! -f world.tmp.zst # symbolic link should not have been compressed!
682 zstd world.tmp || true
683 test ! -f world.tmp.zst # symbolic link should not have been compressed!
684 zstd world.tmp world2.tmp || true
685 test ! -f world.tmp.zst # symbolic link should not have been compressed!
686 test ! -f world2.tmp.zst # symbolic link should not have been compressed!
687 zstd world.tmp hello.tmp -f
688 test -f world.tmp.zst # symbolic link should have been compressed with --force
689 rm -f hello.tmp world.tmp world2.tmp hello.tmp.zst world.tmp.zst
723 datagen -g11000 > tmp
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
733 cmp tmp tmp_decompress || die "difference between original and decompressed file"
735 cat tmp | zstd -14 -f -o tmp.zst --stream-size=11001 && die "should fail with incorrect stream size"
738 rm -f tmp*
743 rm -rf tmp*
746 rm -f tmp*
752 rm -rf tmp*
756 datagen -g11000 > tmp
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
768 cmp tmp tmp_decompress || die "difference between original and decompressed file"
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
775 cmp tmp.zst tmp1_.zst || die "first file's output differs"
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
794 cp "$TESTFILE" tmp
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
812 zstd -d tmp.zst -D tmpDictC -fo result && die "wrong dictionary not detected!"
825 zstd -f tmp -D tmpDict1 --no-dictID
826 zstd -d tmp.zst -D tmpDict -fo result
843 println "Hello World" > tmp
844 zstd --train-legacy -q tmp && die "Dictionary training should fail : not enough input source"
845 datagen -P0 -g10M > tmp
846 zstd --train-legacy -q tmp && die "Dictionary training should fail : source is pure noise"
862 rm tmp* dictionary
870 cp "$TESTFILE" tmp
871 zstd -f tmp -D tmpDict
872 zstd -d tmp.zst -D tmpDict -fo result
876 zstd -d tmp.zst -D tmpDictC -fo result && die "wrong dictionary not detected!"
904 rm tmp* dictionary
913 cp "$TESTFILE" tmp
914 zstd -f tmp -D tmpDict
915 zstd -d tmp.zst -D tmpDict -fo result
920 zstd -d tmp.zst -D tmpDictC -fo result && die "wrong dictionary not detected!"
932 rm tmp* dictionary
984 datagen > tmp
985 rm -f tmp.zst
986 zstd --format=zstd -f tmp
987 test -f tmp.zst
999 datagen > tmp
1000 zstd --format=gzip -f tmp
1001 gzip -t -v tmp.gz
1002 gzip -f tmp
1003 zstd -d -f -v tmp.gz
1004 rm tmp*
1016 datagen > tmp
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 !"
1021 rm tmp*
1027 datagen > tmp
1028 rm -f tmp.zst
1029 zstd --format=gzip --format=zstd -f tmp
1030 test -f tmp.zst
1043 datagen > tmp
1044 zstd --format=lzma -f tmp
1045 zstd --format=xz -f tmp
1046 xz -Q -t -v tmp.xz
1047 xz -Q -t -v tmp.lzma
1048 xz -Q -f -k tmp
1049 lzma -Q -f -k --lzma1 tmp
1050 zstd -d -f -v tmp.xz
1051 zstd -d -f -v tmp.lzma
1052 rm tmp*
1059 datagen > tmp
1060 ./xz tmp
1061 xz -Q -d tmp.xz
1062 ./lzma tmp
1063 lzma -Q -d tmp.lzma
1065 xz -Q tmp
1066 ./xz -d tmp.xz
1067 lzma -Q tmp
1068 ./lzma -d tmp.lzma
1070 rm tmp*
1082 datagen > tmp
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 !"
1089 rm tmp*
1103 datagen > tmp
1104 zstd --format=lz4 -f tmp
1105 lz4 -t -v tmp.lz4
1106 lz4 -f -m tmp # ensure result is sent into tmp.lz4, not stdout
1107 zstd -d -f -v tmp.lz4
1108 rm tmp*
1119 datagen > tmp
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 !"
1124 rm tmp*
1132 ! zstd -d tmp.abc 2> tmplg
1153 rm -f tmp tmp.tar tmp.tzst tmp.tgz tmp.txz tmp.tlz4 tmp1.zstd
1155 datagen > tmp
1156 tar cf tmp.tar tmp
1157 zstd tmp.tar -o tmp.tzst
1158 rm tmp.tar
1159 zstd -d tmp.tzst
1160 [ -e tmp.tar ] || die ".tzst failed to decompress to .tar!"
1161 rm -f tmp.tar tmp.tzst
1164 tar czf tmp.tgz tmp
1165 zstd -d tmp.tgz
1166 [ -e tmp.tar ] || die ".tgz failed to decompress to .tar!"
1167 rm -f tmp.tar tmp.tgz
1171 tar c tmp | zstd --format=xz > tmp.txz
1172 zstd -d tmp.txz
1173 [ -e tmp.tar ] || die ".txz failed to decompress to .tar!"
1174 rm -f tmp.tar tmp.txz
1178 tar c tmp | zstd --format=lz4 > tmp.tlz4
1179 zstd -d tmp.tlz4
1180 [ -e tmp.tar ] || die ".tlz4 failed to decompress to .tar!"
1181 rm -f tmp.tar tmp.tlz4
1184 touch tmp.t tmp.tz tmp.tzs
1185 ! zstd -d tmp.t
1186 ! zstd -d tmp.tz
1187 ! zstd -d tmp.tzs
1240 datagen -g2MB > tmp
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)
1261 rm tmp*
1267 zstd tmp*
1281 zstd --list tmp* && die "-l must fail on non-zstd file"
1325 rm tmp*
1377 datagen > tmp
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"
1406 rm -rf tmp*
1412 rm -rf tmp*
1419 rm -rf tmp*
1486 cp "$TESTFILE" tmp
1487 zstd -f tmp -D tmpDict
1488 zstd -d tmp.zst -D tmpDict -fo result
1493 zstd -d tmp.zst -D tmpDictC -fo result && die "wrong dictionary not detected!"
1514 rm -f tmp* dictionary
1516 rm -f tmp*