diff options
author | Tristan Partin <tristan@partin.io> | 2022-08-16 07:36:48 (GMT) |
---|---|---|
committer | Tristan Partin <tristan@partin.io> | 2022-10-20 04:27:05 (GMT) |
commit | 198e532300f253ada3acac3ab5428ed991adb085 (patch) | |
tree | b5c04cd31e42772751dac47bc6a0780b581b871d /tests/test-lz4-frame-concatenation.sh | |
parent | e312412c60140b3d061526499cef22e5e99d7751 (diff) | |
download | lz4-198e532300f253ada3acac3ab5428ed991adb085.zip lz4-198e532300f253ada3acac3ab5428ed991adb085.tar.gz lz4-198e532300f253ada3acac3ab5428ed991adb085.tar.bz2 |
Update Meson build to 1.9.4
Specifically this adds support for the following options:
- LZ4_ALIGN_TEST
- LZ4_STATIC_LINKING_ONLY_DISABLE_MEMORY_ALLOCATION
- LZ4_DISTANCE_MAX
- LZ4_FAST_DEC_LOOP
- LZ4_FORCE_SW_BITCOUNT
- LZ4_FREESTANDING
- LZ4_USER_MEMORY_FUNCTIONS
- compiling ossfuzz targets
- compiling more test targets
- registering some tests
Diffstat (limited to 'tests/test-lz4-frame-concatenation.sh')
-rwxr-xr-x | tests/test-lz4-frame-concatenation.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/test-lz4-frame-concatenation.sh b/tests/test-lz4-frame-concatenation.sh new file mode 100755 index 0000000..94165c1 --- /dev/null +++ b/tests/test-lz4-frame-concatenation.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +FPREFIX="tmp-lfc" + +set -e +remove () { + rm $FPREFIX* +} + +trap remove EXIT + +set -x + +echo > $FPREFIX-empty +echo hi > $FPREFIX-nonempty +cat $FPREFIX-nonempty $FPREFIX-empty $FPREFIX-nonempty > $FPREFIX-src +lz4 -zq $FPREFIX-empty -c > $FPREFIX-empty.lz4 +lz4 -zq $FPREFIX-nonempty -c > $FPREFIX-nonempty.lz4 +cat $FPREFIX-nonempty.lz4 $FPREFIX-empty.lz4 $FPREFIX-nonempty.lz4 > $FPREFIX-concat.lz4 +lz4 -d $FPREFIX-concat.lz4 -c > $FPREFIX-result +cmp $FPREFIX-src $FPREFIX-result |