diff options
Diffstat (limited to 'tests/test-lz4-skippable.sh')
-rwxr-xr-x | tests/test-lz4-skippable.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/test-lz4-skippable.sh b/tests/test-lz4-skippable.sh new file mode 100755 index 0000000..e34a33f --- /dev/null +++ b/tests/test-lz4-skippable.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +SKIPFILE="goldenSamples/skip.bin" +FPREFIX="tmp-lsk" + +set -e + +remove () { + rm "$FPREFIX"* +} + +trap remove EXIT + +set -x + +lz4 -dc $SKIPFILE +lz4 -dc < $SKIPFILE +printf "Hello from Valid Frame!\n" | lz4 -c > $FPREFIX.lz4 +cat $SKIPFILE $FPREFIX.lz4 $SKIPFILE | lz4 -dc |