diff options
author | Yann Collet <cyan@fb.com> | 2020-08-10 17:54:35 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2020-08-10 17:54:35 (GMT) |
commit | b01c58000e39ee7208032317fb1f0f96832e9e06 (patch) | |
tree | 15a7dffd26d4a1f0ee1e6935495734b8e9f37132 /tests | |
parent | 97654d3cd2c61a9aa7f20f117fd0cc69d647a1d6 (diff) | |
download | lz4-b01c58000e39ee7208032317fb1f0f96832e9e06.zip lz4-b01c58000e39ee7208032317fb1f0f96832e9e06.tar.gz lz4-b01c58000e39ee7208032317fb1f0f96832e9e06.tar.bz2 |
add test that breaks --fast
with huge values, as expected from #876
Also : added target `check`
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile index 1f8321c..05cae15 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -152,6 +152,9 @@ DD:=dd list: @$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs +.PHONY: check +check: test-lz4-essentials + .PHONY: test test: test-lz4 test-lz4c test-frametest test-fullbench test-fuzzer test-install test-amalgamation listTest @@ -349,6 +352,8 @@ test-lz4-basic: lz4 datagen unlz4 lz4cat 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 ! $(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 + # High --fast values can result in out-of-bound dereferences #876 + ./datagen -g1M | $(LZ4) -c --fast=999999999 > /dev/null # Test for #596 @echo "TEST" > tmp-tlb-test $(LZ4) -m tmp-tlb-test |