summaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2017-03-23 03:48:51 (GMT)
committerDmitry V. Levin <ldv@altlinux.org>2017-03-23 03:48:51 (GMT)
commitb1daffc4e5653f05fa6a7eb40d0751c300837636 (patch)
treec201e77fa3d006d18b4ddee3e277b044f6a1e78d /tests/Makefile
parenteff6166eb84a7aca764cf310bc9eef23d003c354 (diff)
downloadlz4-b1daffc4e5653f05fa6a7eb40d0751c300837636.zip
lz4-b1daffc4e5653f05fa6a7eb40d0751c300837636.tar.gz
lz4-b1daffc4e5653f05fa6a7eb40d0751c300837636.tar.bz2
cli: add GNU separator -- specifying that all following arguments are files
This option is supported by other compressors with compatible cli, so add it to lz4 as well for better compatibility.
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
index d68c700..bc22423 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -252,6 +252,14 @@ test-lz4-basic: lz4 datagen unlz4 lz4cat
$(DIFF) -q tmp tmp3
$(PRGDIR)/lz4cat < tmp > tmp2 # checks lz4cat works with stdin (#285)
$(DIFF) -q tmp tmp2
+ cp tmp ./-d
+ $(LZ4) --rm -- -d -d.lz4 # compresses ./d into ./-d.lz4
+ test -f ./-d.lz4
+ test ! -f ./-d
+ mv ./-d.lz4 ./-z
+ $(LZ4) -d --rm -- -z tmp4 # uncompresses ./-z into tmp4
+ test ! -f ./-z
+ $(DIFF) -q tmp tmp4
@$(RM) tmp*
test-lz4-hugefile: lz4 datagen