summaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
authorRuben O. Chiavone <ruben.ochiavone@gmail.com>2019-01-09 04:51:40 (GMT)
committerRuben O. Chiavone <ruben.ochiavone@gmail.com>2019-01-09 04:51:40 (GMT)
commit4c953b46ef0526b4342a9a0890508e0c84208e8d (patch)
tree2e89bc99b0a8faeabff1c803dc740e5ccd48a836 /tests/Makefile
parente6905b581249cfe5ae4df6d9157c757f49686824 (diff)
downloadlz4-4c953b46ef0526b4342a9a0890508e0c84208e8d.zip
lz4-4c953b46ef0526b4342a9a0890508e0c84208e8d.tar.gz
lz4-4c953b46ef0526b4342a9a0890508e0c84208e8d.tar.bz2
Add test to cover issue #596
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 8dcef6d..760fc32 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -284,6 +284,11 @@ 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
+ # Test for #596
+ @echo "TEST" > tmp-tlb-test
+ $(LZ4) tmp-tlb-test
+ $(LZ4) tmp-tlb-test.lz4 tmp-tlb-test2
+ $(DIFF) -q tmp-tlb-test tmp-tlb-test2
@$(RM) tmp-tlb*