summaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
authorJennifer Liu <jenniferliu620@fb.com>2018-06-27 20:36:38 (GMT)
committerJennifer Liu <jenniferliu620@fb.com>2018-06-27 20:36:38 (GMT)
commite778db373b67ce15311b783c49b1d054293ce2af (patch)
tree0a5093a3eb5a14c55b40bde4f8eb6c379522f257 /tests/Makefile
parent8745638d7c04bdfc33bcf656ed262c2588534db5 (diff)
downloadlz4-e778db373b67ce15311b783c49b1d054293ce2af.zip
lz4-e778db373b67ce15311b783c49b1d054293ce2af.tar.gz
lz4-e778db373b67ce15311b783c49b1d054293ce2af.tar.bz2
Fixed bugs about incorrect acceleration calculation and benchmarking negative compresion level
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 0e7924a..81033b5 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -265,9 +265,8 @@ test-lz4-basic: lz4 datagen unlz4 lz4cat
# ./datagen -g20KB generates the same file every single time
# cannot save output of ./datagen -g20KB as input file to lz4 because the following shell commands are run before ./datagen -g20KB
test "$(shell ./datagen -g20KB | $(LZ4) -c --fast | wc -c)" -lt "$(shell ./datagen -g20KB | $(LZ4) -c --fast=9 | wc -c)" # -1 vs -9
+ test "$(shell ./datagen -g20KB | $(LZ4) -c -1 | wc -c)" -lt "$(shell ./datagen -g20KB| $(LZ4) -c --fast=1 | wc -c)" # 1 vs -1
test "$(shell ./datagen -g20KB | $(LZ4) -c --fast=1 | wc -c)" -eq "$(shell ./datagen -g20KB| $(LZ4) -c --fast| wc -c)" # checks default fast compression is -1
- test "$(shell ./datagen -g20KB | $(LZ4) -c -3 | wc -c)" -lt "$(shell ./datagen -g20KB| $(LZ4) -c --fast=1 | wc -c)" # 3 vs -1
- test "$(shell ./datagen -g20KB | $(LZ4) -c -1 | wc -c)" -lt "$(shell ./datagen -g20KB| $(LZ4) -c --fast=2 | wc -c)" # 1 vs -2
! $(LZ4) -c --fast=0 tmp-tlb-dg20K # lz4 should fail when fast=0
! $(LZ4) -c --fast=-1 tmp-tlb-dg20K # lz4 should fail when fast=-1
@$(RM) tmp-tlb*