Testing first block decompression cli

This commit is contained in:
Bimba Shrestha 2019-09-09 11:54:43 -07:00
parent 44e122053b
commit 0b25ab2202
3 changed files with 7 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -242,6 +242,11 @@ $ZSTD -f tmp && die "attempt to compress a non existing file"
test -f tmp.zst # destination file should still be present
rm tmp*
println "\n===> decompression only tests "
head -c 1M /dev/zero > tmp
$ZSTD -d -o tmp1 "$TESTDIR/files/rle-first-block.zst"
$DIFF -s tmp1 tmp
rm tmp*
println "test : compress multiple files"
println hello > tmp1
@ -583,8 +588,8 @@ $ZSTD -t tmpSplit.* && die "bad file not detected !"
println "\n===> golden files tests "
$ZSTD -t -r "$TESTDIR/files"
$ZSTD -c -r "$TESTDIR/files" | $ZSTD -t
$ZSTD -t -r "$TESTDIR/golden"
$ZSTD -c -r "$TESTDIR/golden" | $ZSTD -t
println "\n===> benchmark mode tests "