summaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2019-04-12 22:17:48 (GMT)
committerYann Collet <cyan@fb.com>2019-04-12 22:17:48 (GMT)
commite865a3e7ec36ca812d8ebb920796732eaceb5135 (patch)
tree4bd9ecfe987ac07006ac38d80b3e157ea2036d10 /tests/Makefile
parent2de183c92ad5dfe227f778dd5e727ef6995e09af (diff)
downloadlz4-e865a3e7ec36ca812d8ebb920796732eaceb5135.zip
lz4-e865a3e7ec36ca812d8ebb920796732eaceb5135.tar.gz
lz4-e865a3e7ec36ca812d8ebb920796732eaceb5135.tar.bz2
fixed lz4 -m -c
can compress multiple files into stdout
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 8e154f7..8442ab8 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -232,11 +232,20 @@ test-lz4-multiple: lz4 datagen
@./datagen -s2 -g100K > tmp-tlm2 2> $(VOID)
@./datagen -s3 -g1M > tmp-tlm3 2> $(VOID)
$(LZ4) -f -m tmp-tlm*
- ls -ls tmp-tlm*
+ test -f tmp-tlm1.lz4
+ test -f tmp-tlm2.lz4
+ test -f tmp-tlm3.lz4
@$(RM) tmp-tlm1 tmp-tlm2 tmp-tlm3
$(LZ4) -df -m tmp-tlm*.lz4
- ls -ls tmp-tlm*
- $(LZ4) -f -m tmp-tlm1 notHere tmp-tlm2; echo $$?
+ test -f tmp-tlm1
+ test -f tmp-tlm2
+ test -f tmp-tlm3
+ cat tmp-tlm1.lz4 tmp-tlm2.lz4 tmp-tlm3.lz4 > tmp-tlm-concat1
+ $(RM) *.lz4
+ $(LZ4) -f -m tmp-tlm* -c > tmp-tlm-concat2
+ test ! -f tmp-tlm1.lz4 # must not create .lz4 artefact
+ sdiff tmp-tlm-concat1 tmp-tlm-concat2 # must be equivalent
+ ! $(LZ4) -f -m tmp-tlm1 notHere tmp-tlm2 # must fail : notHere not present
@$(RM) tmp-tlm*
test-lz4-basic: lz4 datagen unlz4 lz4cat