summaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
authorJennifer Liu <jenniferliu620@fb.com>2018-06-26 01:51:47 (GMT)
committerJennifer Liu <jenniferliu620@fb.com>2018-06-26 01:51:47 (GMT)
commit17bcb58eb0ca737c4d567159563ce950a0aef890 (patch)
tree03b2575d8d305b40ceef1ed81fb55caad9e6b52b /tests/Makefile
parent536b79afd916d65c472a7157390ef621ee967771 (diff)
downloadlz4-17bcb58eb0ca737c4d567159563ce950a0aef890.zip
lz4-17bcb58eb0ca737c4d567159563ce950a0aef890.tar.gz
lz4-17bcb58eb0ca737c4d567159563ce950a0aef890.tar.bz2
Fixed bug about file to be compressed is not present
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/Makefile b/tests/Makefile
index a133df1..0eba02d 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -262,10 +262,9 @@ 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)"
+ test "$(shell ./datagen -g20KB | lz4 -c --fast | wc -c)" -lt "$(shell ./datagen -g20KB | lz4 -c --fast=9 | wc -c)" # compressed size of compression level -1 should be lower than -9
+ 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 -9 | wc -c)" -lt "$(shell ./datagen -g20KB| lz4 -c --fast=1 | wc -c)" # compressed size of compression level 9 should be lower than -1
@$(RM) tmp-tlb*