summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2017-03-05 23:20:10 (GMT)
committerDmitry V. Levin <ldv@altlinux.org>2017-03-05 23:28:25 (GMT)
commit0dfb0b9dad2a8cb7cc347d2139bf9b84de7e1481 (patch)
treeeca5d5041282d6a532529f95990d1f1f593a9627 /tests
parent97df1c9789cbc8a7891cadbd49ea5053574e2f72 (diff)
downloadlz4-0dfb0b9dad2a8cb7cc347d2139bf9b84de7e1481.zip
lz4-0dfb0b9dad2a8cb7cc347d2139bf9b84de7e1481.tar.gz
lz4-0dfb0b9dad2a8cb7cc347d2139bf9b84de7e1481.tar.bz2
Fix test-lz4-basic
When no output filename is specified and stdout is not a terminal, lz4 doesn't attempt to guess an output filename and uses stdout for output. This change fixes test-lz4-basic when run without a terminal by specifying output filenames.
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Makefile b/tests/Makefile
index ebab278..d68c700 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -235,19 +235,19 @@ test-lz4-basic: lz4 datagen unlz4 lz4cat
./datagen -g33M | $(LZ4) --no-frame-crc | $(LZ4) -t
./datagen -g256MB | $(LZ4) -vqB4D | $(LZ4) -t
@echo "hello world" > tmp
- $(LZ4) --rm -f tmp
+ $(LZ4) --rm -f tmp tmp.lz4
test ! -f tmp # must fail (--rm)
test -f tmp.lz4
$(PRGDIR)/lz4cat tmp.lz4 # must display hello world
test -f tmp.lz4
- $(PRGDIR)/unlz4 --rm tmp.lz4
+ $(PRGDIR)/unlz4 --rm tmp.lz4 tmp
test -f tmp
test ! -f tmp.lz4 # must fail (--rm)
test ! -f tmp.lz4.lz4 # must fail (unlz4)
$(PRGDIR)/lz4cat tmp # pass-through mode
test -f tmp
test ! -f tmp.lz4 # must fail (lz4cat)
- $(LZ4) tmp # creates tmp.lz4
+ $(LZ4) tmp tmp.lz4 # 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)