projects
/
platform
/
upstream
/
lz4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6905b5
)
Add test to cover issue #596
author
Ruben O. Chiavone
<ruben.ochiavone@gmail.com>
Wed, 9 Jan 2019 04:51:40 +0000
(
01:51
-0300)
committer
Ruben O. Chiavone
<ruben.ochiavone@gmail.com>
Wed, 9 Jan 2019 04:51:40 +0000
(
01:51
-0300)
tests/Makefile
patch
|
blob
|
history
diff --git
a/tests/Makefile
b/tests/Makefile
index
8dcef6d
..
760fc32
100644
(file)
--- 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*