summaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2016-12-07 22:29:22 (GMT)
committerYann Collet <cyan@fb.com>2016-12-07 22:29:22 (GMT)
commit01ffed25adbb4d18e48ceac59b1e5174ae29fc7f (patch)
tree4b757ce5132e80cc7741ac65d365a47e9c1cb862 /tests/Makefile
parent5eb547a6080b8e63b5e522b448e31052fbc6b927 (diff)
downloadlz4-01ffed25adbb4d18e48ceac59b1e5174ae29fc7f.zip
lz4-01ffed25adbb4d18e48ceac59b1e5174ae29fc7f.tar.gz
lz4-01ffed25adbb4d18e48ceac59b1e5174ae29fc7f.tar.bz2
fix : invocation of path/to/unlz4 (#284), reported by @beiDei8z
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/tests/Makefile b/tests/Makefile
index e58d449..5923a20 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -206,12 +206,15 @@ test-lz4-multiple: lz4 datagen
$(LZ4) -f -m tmp1 notHere tmp2; echo $$?
@$(RM) tmp*
-test-lz4-basic: lz4 datagen
+unlz4:
+ @$(MAKE) -C $(PRGDIR) unlz4
+
+test-lz4-basic: lz4 datagen unlz4
@echo "\n ---- test lz4 basic compression/decompression ----"
./datagen -g0 | $(LZ4) -v | $(LZ4) -t
./datagen -g16KB | $(LZ4) -9 | $(LZ4) -t
./datagen -g20KB > tmpSrc
- $(LZ4) < tmpSrc | $(LZ4) -d > tmpRes
+ $(LZ4) < tmpSrc | $(LZ4) -d > tmpRes
diff -q tmpSrc tmpRes
$(LZ4) --no-frame-crc < tmpSrc | $(LZ4) -d > tmpRes
diff -q tmpSrc tmpRes
@@ -220,6 +223,14 @@ test-lz4-basic: lz4 datagen
./datagen -g17M | $(LZ4) -9v | $(LZ4) -qt
./datagen -g33M | $(LZ4) --no-frame-crc | $(LZ4) -t
./datagen -g256MB | $(LZ4) -vqB4D | $(LZ4) -t
+ @echo "hello world" > tmp
+ $(LZ4) --rm tmp
+ ls -ls tmp && false || true # must fail (--rm)
+ ls -ls tmp.lz4
+ $(PRGDIR)/unlz4 --rm tmp.lz4
+ ls -ls tmp
+ ls -ls tmp.lz4 && false || true # must fail (--rm)
+ ls -ls tmp.lz4.lz4 && false || true # must fail (unlz4)
@$(RM) tmp*
test-lz4-hugefile: lz4 datagen