summaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
authorYann Collet <Cyan4973@users.noreply.github.com>2022-07-15 19:03:44 (GMT)
committerGitHub <noreply@github.com>2022-07-15 19:03:44 (GMT)
commitc26902e02a83ce4f0fe688b5acc0db53acb1a872 (patch)
tree05296bc62356e36426c3a3212b43f30bee0cbf48 /tests/Makefile
parenta9a0a967cf3312d561c33c98492c70bed29317ce (diff)
parent6784e78e006329ba67eb799a1cb94dd7267a9241 (diff)
downloadlz4-c26902e02a83ce4f0fe688b5acc0db53acb1a872.zip
lz4-c26902e02a83ce4f0fe688b5acc0db53acb1a872.tar.gz
lz4-c26902e02a83ce4f0fe688b5acc0db53acb1a872.tar.bz2
Merge pull request #1119 from lz4/skipFrames
support skippable frames within pipe
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 6f063a1..002fb40 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -342,6 +342,17 @@ test-lz4-multiple-legacy: lz4 datagen
! $(LZ4) -f -l -m tmp-tlm-concat1 notHere-legacy tmp-tlm-concat2 # must fail : notHere-legacy not present
@$(RM) tmp-tlm*
+SKIPFILE = goldenSamples/skip.bin
+test-lz4-skippable: lz4 datagen
+ @echo "\n ---- test lz4 with skippable frames ----"
+ $(LZ4) -dc $(SKIPFILE)
+ $(LZ4) -dc < $(SKIPFILE)
+ cat $(SKIPFILE) | $(LZ4) -dc
+ echo "Hello from Valid Frame!\n" > tmplsk
+ $(LZ4) tmplsk -c > tmplsk.lz4
+ cat $(SKIPFILE) tmplsk.lz4 $(SKIPFILE) | $(LZ4) -dc
+ $(RM) tmplsk*
+
test-lz4-basic: lz4 datagen unlz4 lz4cat
@echo "\n ---- test lz4 basic compression/decompression ----"
$(DATAGEN) -g0 | $(LZ4) -v | $(LZ4) -t
@@ -484,7 +495,8 @@ test-lz4-essentials : lz4 datagen test-lz4-basic test-lz4-multiple test-lz4-mult
@$(RM) tmp*
test-lz4: lz4 datagen test-lz4-essentials test-lz4-opt-parser \
- test-lz4-sparse test-lz4-hugefile test-lz4-dict
+ test-lz4-sparse test-lz4-hugefile test-lz4-dict \
+ test-lz4-skippable
@$(RM) tmp*
test-lz4c: lz4c datagen