summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2016-12-08 22:17:40 (GMT)
committerYann Collet <cyan@fb.com>2016-12-08 22:25:04 (GMT)
commitde93e9e5d84fef6c5741ff0d72306fdb2baade1e (patch)
treec8ab766f88d9ae22553695b6b0060fbbc83a4aeb /tests
parent0280cf40dd01caa784d291480aaead9987ae9f9a (diff)
downloadlz4-de93e9e5d84fef6c5741ff0d72306fdb2baade1e.zip
lz4-de93e9e5d84fef6c5741ff0d72306fdb2baade1e.tar.gz
lz4-de93e9e5d84fef6c5741ff0d72306fdb2baade1e.tar.bz2
fix #285 : lz4cat doesn't work with stdin (reported by @beiDei8z)
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
index eb36abf..01b45bc 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -239,6 +239,11 @@ test-lz4-basic: lz4 datagen unlz4 lz4cat
$(PRGDIR)/lz4cat tmp # pass-through mode
ls -ls tmp
ls -ls tmp.lz4 && false || true # must fail (lz4cat)
+ $(LZ4) tmp # creates tmp.lz4
+ $(PRGDIR)/lz4cat < tmp.lz4 > tmp3 # checks lz4cat works with stdin (#285)
+ diff -q tmp tmp3
+ $(PRGDIR)/lz4cat < tmp > tmp2 # checks lz4cat works with stdin (#285)
+ diff -q tmp tmp2
@$(RM) tmp*
test-lz4-hugefile: lz4 datagen