summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJennifer Liu <jenniferliu620@fb.com>2018-06-26 00:46:39 (GMT)
committerJennifer Liu <jenniferliu620@fb.com>2018-06-26 00:46:39 (GMT)
commit536b79afd916d65c472a7157390ef621ee967771 (patch)
tree5dafb6f2c54f166a9f9730ea1c5264df08c8a5fa /tests
parent78978d655d0197f46a04ea4788a601d19afa9e7a (diff)
downloadlz4-536b79afd916d65c472a7157390ef621ee967771.zip
lz4-536b79afd916d65c472a7157390ef621ee967771.tar.gz
lz4-536b79afd916d65c472a7157390ef621ee967771.tar.bz2
Added --fast command to cli
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
index ac86c3e..a133df1 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -262,8 +262,14 @@ test-lz4-basic: lz4 datagen unlz4 lz4cat
cat tmp-tlb-hw >> tmp-tlb-hw.lz4
$(LZ4) -f tmp-tlb-hw.lz4 # uncompress valid frame followed by invalid data
$(LZ4) -BX tmp-tlb-hw -c -q | $(LZ4) -tv # test block checksum
+ ./datagen -g256KB > tmp-tlb-dg256k
+ test "$(shell lz4 -c --fast tmp-tlb-dg256k| wc -c)" -lt "$(shell lz4 -c --fast=9 tmp-tlb-dg256k| wc -c)"
+ test "$(shell lz4 -c --fast=1 tmp-tlb-dg256k| wc -c)" -eq "$(shell lz4 -c --fast tmp-tlb-dg256k| wc -c)"
+ test "$(shell lz4 -c -9 tmp-tlb-dg256k| wc -c)" -lt "$(shell lz4 -c --fast=1 tmp-tlb-dg256k| wc -c)"
@$(RM) tmp-tlb*
+
+
test-lz4-dict: lz4 datagen
@echo "\n ---- test lz4 compression/decompression with dictionary ----"
./datagen -g16KB > tmp-dict