diff options
author | Yann Collet <Cyan4973@users.noreply.github.com> | 2022-10-25 06:47:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-25 06:47:31 (GMT) |
commit | 214bfb325bd4db112b73859912b919aa35e12d61 (patch) | |
tree | b5c04cd31e42772751dac47bc6a0780b581b871d /tests/test-lz4-testmode.sh | |
parent | e312412c60140b3d061526499cef22e5e99d7751 (diff) | |
parent | 198e532300f253ada3acac3ab5428ed991adb085 (diff) | |
download | lz4-214bfb325bd4db112b73859912b919aa35e12d61.zip lz4-214bfb325bd4db112b73859912b919aa35e12d61.tar.gz lz4-214bfb325bd4db112b73859912b919aa35e12d61.tar.bz2 |
Merge pull request #1139 from tristan957/meson
Update Meson build to 1.9.4
Diffstat (limited to 'tests/test-lz4-testmode.sh')
-rwxr-xr-x | tests/test-lz4-testmode.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/test-lz4-testmode.sh b/tests/test-lz4-testmode.sh new file mode 100755 index 0000000..d37eaad --- /dev/null +++ b/tests/test-lz4-testmode.sh @@ -0,0 +1,38 @@ +#!/bin/sh + +FPREFIX="tmp-ltm" + +set -e + +remove () { + rm $FPREFIX* +} + +trap remove EXIT + +set -x + +lz4 -bi0 +datagen > $FPREFIX +lz4 -f $FPREFIX -c > $FPREFIX.lz4 +lz4 -bdi0 $FPREFIX.lz4 # test benchmark decode-only mode +lz4 -bdi0 --no-crc $FPREFIX.lz4 # test benchmark decode-only mode +echo "---- test mode ----" +datagen | lz4 -t && exit 1 +datagen | lz4 -tf && exit 1 +echo "---- pass-through mode ----" +echo "Why hello there " > ${FPREFIX}2.lz4 +lz4 -f ${FPREFIX}2.lz4 > $FPREFIX-trash && exit 1 +datagen | lz4 -dc > $FPREFIX-trash && exit 1 +datagen | lz4 -df > $FPREFIX-trash && exit 1 +datagen | lz4 -dcf > $FPREFIX-trash +echo "Hello World !" > ${FPREFIX}1 +lz4 -dcf ${FPREFIX}1 +echo "from underground..." > ${FPREFIX}2 +lz4 -dcfm ${FPREFIX}1 ${FPREFIX}2 +echo "---- non-existing source (must fail cleanly) ----" +lz4 file-does-not-exist && exit 1 +lz4 -f file-does-not-exist && exit 1 +lz4 -t file-does-not-exist && exit 1 +lz4 -fm file1-dne file2-dne && exit 1 +true |