diff options
author | Przemyslaw Skibinski <inikep@gmail.com> | 2016-11-10 07:42:56 (GMT) |
---|---|---|
committer | Przemyslaw Skibinski <inikep@gmail.com> | 2016-11-10 07:42:56 (GMT) |
commit | 6a160b72e34b14da63101050889c4a04fc9c9c23 (patch) | |
tree | 474c3b4a34d70260b459b44e5306e3d8040e6e3c /tests/Makefile | |
parent | 063b4d92e10bb6b430e515e5cdd36b64fce6a01a (diff) | |
parent | 924f00c86ce9075d520967c893dbfbe13a7bf073 (diff) | |
download | lz4-6a160b72e34b14da63101050889c4a04fc9c9c23.zip lz4-6a160b72e34b14da63101050889c4a04fc9c9c23.tar.gz lz4-6a160b72e34b14da63101050889c4a04fc9c9c23.tar.bz2 |
Merge remote-tracking branch 'refs/remotes/lz4/dev' into dev
Diffstat (limited to 'tests/Makefile')
-rw-r--r-- | tests/Makefile | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/tests/Makefile b/tests/Makefile index 6df6381..16771da 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,37 @@ 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 - ./datagen -g6GB | $(PRGDIR)/lz4 -vqB5D | $(PRGDIR)/lz4 -qt - ./datagen -g6GB | $(PRGDIR)/lz4 -vq9BD | $(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-hugefile: lz4 datagen + @echo "\n ---- test huge files compression/decompression ----" + ./datagen -g6GB | $(PRGDIR)/lz4 -vB5D | $(PRGDIR)/lz4 -qt + ./datagen -g6GB | $(PRGDIR)/lz4 -v5BD | $(PRGDIR)/lz4 -qt + @$(RM) tmp* + +test-lz4-testmode: lz4 datagen + @echo "\n ---- bench mode ----" + $(PRGDIR)/lz4 -bi1 + @echo "\n ---- test mode ----" ./datagen | $(PRGDIR)/lz4 -t && false || true ./datagen | $(PRGDIR)/lz4 -tf && false || true + @echo "\n ---- pass-through mode ----" ./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 |