summaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2016-11-09 22:36:42 (GMT)
committerYann Collet <cyan@fb.com>2016-11-09 22:36:42 (GMT)
commitacc48a3f85e5c97a102999544248ee7e51cc419b (patch)
treefc0d5df1eb31062d426b13cf8c3eb99cb2c1a97f /tests/Makefile
parent0c5e2e4d1bf7a4abed98913fd526779976214ea7 (diff)
downloadlz4-acc48a3f85e5c97a102999544248ee7e51cc419b.zip
lz4-acc48a3f85e5c97a102999544248ee7e51cc419b.tar.gz
lz4-acc48a3f85e5c97a102999544248ee7e51cc419b.tar.bz2
fixed lz4cat
changed lz4-test order
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile20
1 files changed, 16 insertions, 4 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 6df6381..e6779d9 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -77,7 +77,7 @@ lz4c:
$(MAKE) -C $(PRGDIR) $@
lz4c32:
- $(MAKE) -C $(PRGDIR) $@
+ $(MAKE) -C $(PRGDIR) $@
fullbench : $(LZ4DIR)/lz4.o $(LZ4DIR)/lz4hc.o $(LZ4DIR)/lz4frame.o $(LZ4DIR)/xxhash.o fullbench.c
$(CC) $(FLAGS) $^ -o $@$(EXT)
@@ -221,22 +221,34 @@ test-lz4-basic: lz4 datagen
./datagen -g17M | $(PRGDIR)/lz4 -9v | $(PRGDIR)/lz4 -qt
./datagen -g33M | $(PRGDIR)/lz4 --no-frame-crc | $(PRGDIR)/lz4 -t
./datagen -g256MB | $(PRGDIR)/lz4 -vqB4D | $(PRGDIR)/lz4 -t
+ @$(RM) tmp*
+
+test-lz4-hugefile: lz4 datagen
+ @echo "\n ---- test huge files compression/decompression ----"
./datagen -g6GB | $(PRGDIR)/lz4 -vqB5D | $(PRGDIR)/lz4 -qt
- ./datagen -g6GB | $(PRGDIR)/lz4 -vq9BD | $(PRGDIR)/lz4 -qt
+ ./datagen -g6GB | $(PRGDIR)/lz4 -vq5BD | $(PRGDIR)/lz4 -qt
@$(RM) tmp*
-test-lz4: lz4 datagen test-lz4-basic test-lz4-multiple test-lz4-sparse test-lz4-contentSize test-lz4-frame-concatenation
- @echo "\n ---- test pass-through ----"
+test-lz4-testmode: lz4 datagen
+ @echo "\n ---- test and pass-through ----"
./datagen | $(PRGDIR)/lz4 -t && false || true
./datagen | $(PRGDIR)/lz4 -tf && false || true
./datagen | $(PRGDIR)/lz4 -d > $(VOID) && false || true
./datagen | $(PRGDIR)/lz4 -df > $(VOID)
+ @echo "Hello World !" > tmp1
+ $(PRGDIR)/lz4 -dcf tmp1
+# @echo "from underground..." > tmp2
+# $(PRGDIR)/lz4 -dcfm tmp1 tmp2
@echo "\n ---- test cli ----"
$(PRGDIR)/lz4 file-does-not-exist && false || true
$(PRGDIR)/lz4 -f file-does-not-exist && false || true
$(PRGDIR)/lz4 -fm file1-dne file2-dne && false || true
$(PRGDIR)/lz4 -fm file1-dne file2-dne && false || true
+test-lz4: lz4 datagen test-lz4-basic test-lz4-multiple test-lz4-sparse \
+ test-lz4-frame-concatenation test-lz4-testmode test-lz4-contentSize \
+ test-lz4-hugefile
+
test-lz4c: lz4c datagen
@echo "\n ---- test lz4c version ----"
./datagen -g256MB | $(PRGDIR)/lz4c -l -v | $(PRGDIR)/lz4c -t