Lines Matching +full:- +full:o

2 # LZ4 programs - Makefile
3 # Copyright (C) Yann Collet 2011-2020
19 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 # - LZ4 homepage : http://www.lz4.org
23 # - LZ4 source repository : https://github.com/lz4/lz4
37 DEBUGFLAGS = -g -DLZ4_DEBUG=$(DEBUGLEVEL)
38 CFLAGS ?= -O3 # can select custom optimization flags. Example : CFLAGS=-O2 make
39 CFLAGS += -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow \
40 -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes \
41 -Wpointer-arith -Wstrict-aliasing=1
43 CPPFLAGS+= -I$(LZ4DIR) -I$(PRGDIR) -DXXH_NAMESPACE=LZ4_
53 FUZZER_TIME := -T90s
54 NB_LOOPS ?= -i1
59 all: fullbench fuzzer frametest roundTripTest datagen checkFrame decompress-partial
61 all32: CFLAGS+=-m32
65 $(MAKE) -C $(PRGDIR) $@ CFLAGS="$(CFLAGS)"
68 $(MAKE) -C $(LZ4DIR) $@ CFLAGS="$(CFLAGS)"
73 lz4c32: # create a 32-bits version for 32/64 interop tests
74 $(MAKE) -C $(PRGDIR) $@ CFLAGS="-m32 $(CFLAGS)"
76 %.o : $(LZ4DIR)/%.c $(LZ4DIR)/%.h
77 $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
80 fullbench : lz4.o lz4hc.o lz4frame.o xxhash.o fullbench.c
81 $(CC) $(FLAGS) $^ -o $@$(EXT)
84 $(MAKE) -C $(LZ4DIR) liblz4.a
86 fullbench-lib: fullbench.c $(LZ4DIR)/liblz4.a
87 $(CC) $(FLAGS) $^ -o $@$(EXT)
89 fullbench-dll: fullbench.c $(LZ4DIR)/xxhash.c
90 $(MAKE) -C $(LZ4DIR) liblz4
91 $(CC) $(FLAGS) $^ -o $@$(EXT) -DLZ4_DLL_IMPORT=1 $(LZ4DIR)/dll/$(LIBLZ4).dll
94 fullbench-wmalloc: CPPFLAGS += -DLZ4_USER_MEMORY_FUNCTIONS
95 fullbench-wmalloc: fullbench
97 fuzzer : lz4.o lz4hc.o xxhash.o fuzzer.c
98 $(CC) $(FLAGS) $^ -o $@$(EXT)
100 frametest: lz4frame.o lz4.o lz4hc.o xxhash.o frametest.c
101 $(CC) $(FLAGS) $^ -o $@$(EXT)
103 roundTripTest : lz4.o lz4hc.o xxhash.o roundTripTest.c
104 $(CC) $(FLAGS) $^ -o $@$(EXT)
107 $(CC) $(FLAGS) -I$(PRGDIR) $^ -o $@$(EXT)
109 checkFrame : lz4frame.o lz4.o lz4hc.o xxhash.o checkFrame.c
110 $(CC) $(FLAGS) $^ -o $@$(EXT)
112 decompress-partial: lz4.o decompress-partial.c
113 $(CC) $(FLAGS) $^ -o $@$(EXT)
117 @$(MAKE) -C $(LZ4DIR) $@ > $(VOID)
118 @$(MAKE) -C $(PRGDIR) $@ > $(VOID)
119 @$(RM) -rf core *.o *.test tmp* \
120 fullbench-dll$(EXT) fullbench-lib$(EXT) \
126 frameTest$(EXT) decompress-partial$(EXT) \
128 @$(RM) -rf $(TESTDIR)
133 $(PYTHON) test-lz4-versions.py
137 QEMU_SYS=$(QEMU_SYS) $(PYTHON) test-lz4-list.py
140 $(CC) $(FLAGS) $< -o $@$(EXT)
142 #-----------------------------------------------------------------------------
144 #-----------------------------------------------------------------------------
149 MD5:=md5 -r
165-pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make …
168 check: test-lz4-essentials
171 test: test-lz4 test-lz4c test-frametest test-fullbench test-fuzzer test-install test-amalgamation l…
174 test32: CFLAGS+=-m32
177 test-amalgamation: lz4_all.o
182 test-install: lz4 lib liblz4.pc
185 test-lz4-sparse: lz4 datagen
186 @echo "\n ---- test sparse file support ----"
187 $(DATAGEN) -g5M -P100 > tmplsdg5M
188 $(LZ4) -B4D tmplsdg5M -c | $(LZ4) -dv --sparse > tmplscB4
189 $(DIFF) -s tmplsdg5M tmplscB4
190 $(LZ4) -B5D tmplsdg5M -c | $(LZ4) -dv --sparse > tmplscB5
191 $(DIFF) -s tmplsdg5M tmplscB5
192 $(LZ4) -B6D tmplsdg5M -c | $(LZ4) -dv --sparse > tmplscB6
193 $(DIFF) -s tmplsdg5M tmplscB6
194 $(LZ4) -B7D tmplsdg5M -c | $(LZ4) -dv --sparse > tmplscB7
195 $(DIFF) -s tmplsdg5M tmplscB7
196 $(LZ4) tmplsdg5M -c | $(LZ4) -dv --no-sparse > tmplsnosparse
197 $(DIFF) -s tmplsdg5M tmplsnosparse
198 ls -ls tmpls*
199 …$(DATAGEN) -s1 -g1200007 -P100 | $(LZ4) | $(LZ4) -dv --sparse > tmplsodd # Odd size file (to gen…
200 $(DATAGEN) -s1 -g1200007 -P100 | $(DIFF) -s - tmplsodd
201 ls -ls tmplsodd
204 echo "Hello World 1 !" | $(LZ4) | $(LZ4) -d -c
205 echo "Hello World 2 !" | $(LZ4) | $(LZ4) -d | $(CAT)
206 echo "Hello World 3 !" | $(LZ4) --no-frame-crc | $(LZ4) -d -c
208 $(DATAGEN) -P100 -g1M > tmplsdg1M
210 $(LZ4) -B5 -v tmplsdg1M tmplsc
211 $(LZ4) -d -v tmplsc tmplsr
212 $(LZ4) -d -v tmplsc -c >> tmplsr
213 ls -ls tmp*
217 test-lz4-contentSize: lz4 datagen
218 @echo "\n ---- test original size support ----"
219 $(DATAGEN) -g15M > tmplc1
220 $(LZ4) -v tmplc1 -c | $(LZ4) -t
221 $(LZ4) -v --content-size tmplc1 -c | $(LZ4) -d > tmplc2
223 $(LZ4) -f tmplc1 -c > tmplc1.lz4
224 $(LZ4) --content-size tmplc1 -c > tmplc2.lz4
226 $(LZ4) --content-size < tmplc1 > tmplc3.lz4
230 $(CAT) tmplc1 | $(LZ4) --content-size > tmplc5.lz4 # can't determine content size
234 test-lz4-frame-concatenation: lz4 datagen
235 @echo "\n ---- test frame concatenation ----"
236 @echo -n > tmp-lfc-empty
237 @echo hi > tmp-lfc-nonempty
238 $(CAT) tmp-lfc-nonempty tmp-lfc-empty tmp-lfc-nonempty > tmp-lfc-src
239 $(LZ4) -zq tmp-lfc-empty -c > tmp-lfc-empty.lz4
240 $(LZ4) -zq tmp-lfc-nonempty -c > tmp-lfc-nonempty.lz4
241 $(CAT) tmp-lfc-nonempty.lz4 tmp-lfc-empty.lz4 tmp-lfc-nonempty.lz4 > tmp-lfc-concat.lz4
242 $(LZ4) -d tmp-lfc-concat.lz4 -c > tmp-lfc-result
243 $(CMP) tmp-lfc-src tmp-lfc-result
244 @$(RM) tmp-lfc-*
247 test-lz4-multiple: lz4 datagen
248 @echo "\n ---- test multiple files ----"
249 @$(DATAGEN) -s1 > tmp-tlm1 2> $(VOID)
250 @$(DATAGEN) -s2 -g100K > tmp-tlm2 2> $(VOID)
251 @$(DATAGEN) -s3 -g200K > tmp-tlm3 2> $(VOID)
253 $(LZ4) -f -m tmp-tlm*
254 test -f tmp-tlm1.lz4
255 test -f tmp-tlm2.lz4
256 test -f tmp-tlm3.lz4
258 mv tmp-tlm1 tmp-tlm1-orig
259 mv tmp-tlm2 tmp-tlm2-orig
260 mv tmp-tlm3 tmp-tlm3-orig
261 $(LZ4) -d -f -m tmp-tlm*.lz4
262 $(CMP) tmp-tlm1 tmp-tlm1-orig # must be identical
263 $(CMP) tmp-tlm2 tmp-tlm2-orig
264 $(CMP) tmp-tlm3 tmp-tlm3-orig
266 $(CAT) tmp-tlm1.lz4 tmp-tlm2.lz4 tmp-tlm3.lz4 > tmp-tlm-concat1
268 $(LZ4) -m tmp-tlm1 tmp-tlm2 tmp-tlm3 -c > tmp-tlm-concat2
269 test ! -f tmp-tlm1.lz4 # must not create .lz4 artefact
270 $(CMP) tmp-tlm-concat1 tmp-tlm-concat2 # must be equivalent
272 $(RM) tmp-tlm-concat1 tmp-tlm-concat2
273 $(LZ4) -f -m tmp-tlm1 tmp-tlm2 tmp-tlm3 # generate .lz4 to decompress
274 $(CAT) tmp-tlm1 tmp-tlm2 tmp-tlm3 > tmp-tlm-concat1 # create concatenated reference
275 $(RM) tmp-tlm1 tmp-tlm2 tmp-tlm3
276 $(LZ4) -d -m tmp-tlm1.lz4 tmp-tlm2.lz4 tmp-tlm3.lz4 -c > tmp-tlm-concat2
277 test ! -f tmp-tlm1 # must not create file artefact
278 $(CMP) tmp-tlm-concat1 tmp-tlm-concat2 # must be equivalent
280 ! $(LZ4) -f -m tmp-tlm-concat1 notHere tmp-tlm-concat2 # must fail : notHere not present
281 @$(RM) tmp-tlm*
283 test-lz4-multiple-legacy: lz4 datagen
284 @echo "\n ---- test multiple files (Legacy format) ----"
285 @$(DATAGEN) -s1 > tmp-tlm1 2> $(VOID)
286 @$(DATAGEN) -s2 -g100K > tmp-tlm2 2> $(VOID)
287 @$(DATAGEN) -s3 -g200K > tmp-tlm3 2> $(VOID)
289 $(LZ4) -f -l -m tmp-tlm*
290 test -f tmp-tlm1.lz4
291 test -f tmp-tlm2.lz4
292 test -f tmp-tlm3.lz4
294 mv tmp-tlm1 tmp-tlm1-orig
295 mv tmp-tlm2 tmp-tlm2-orig
296 mv tmp-tlm3 tmp-tlm3-orig
297 $(LZ4) -d -f -m tmp-tlm*.lz4
298 $(LZ4) -l -d -f -m tmp-tlm*.lz4 # -l mustn't impact -d option
299 $(CMP) tmp-tlm1 tmp-tlm1-orig # must be identical
300 $(CMP) tmp-tlm2 tmp-tlm2-orig
301 $(CMP) tmp-tlm3 tmp-tlm3-orig
303 $(CAT) tmp-tlm1.lz4 tmp-tlm2.lz4 tmp-tlm3.lz4 > tmp-tlm-concat1
305 $(LZ4) -l -m tmp-tlm1 tmp-tlm2 tmp-tlm3 -c > tmp-tlm-concat2
306 test ! -f tmp-tlm1.lz4 # must not create .lz4 artefact
307 $(CMP) tmp-tlm-concat1 tmp-tlm-concat2 # must be equivalent
309 $(RM) tmp-tlm-concat1 tmp-tlm-concat2
310 $(LZ4) -l -f -m tmp-tlm1 tmp-tlm2 tmp-tlm3 # generate .lz4 to decompress
311 $(CAT) tmp-tlm1 tmp-tlm2 tmp-tlm3 > tmp-tlm-concat1 # create concatenated reference
312 $(RM) tmp-tlm1 tmp-tlm2 tmp-tlm3
313 $(LZ4) -d -m tmp-tlm1.lz4 tmp-tlm2.lz4 tmp-tlm3.lz4 -c > tmp-tlm-concat2
314 …$(LZ4) -d -l -m tmp-tlm1.lz4 tmp-tlm2.lz4 tmp-tlm3.lz4 -c > tmp-tlm-concat2 # -l mustn't impact op…
315 test ! -f tmp-tlm1 # must not create file artefact
316 $(CMP) tmp-tlm-concat1 tmp-tlm-concat2 # must be equivalent
318 …! $(LZ4) -f -l -m tmp-tlm-concat1 notHere-legacy tmp-tlm-concat2 # must fail : notHere-legacy not…
319 @$(RM) tmp-tlm*
321 test-lz4-basic: lz4 datagen unlz4 lz4cat
322 @echo "\n ---- test lz4 basic compression/decompression ----"
323 $(DATAGEN) -g0 | $(LZ4) -v | $(LZ4) -t
324 $(DATAGEN) -g16KB | $(LZ4) -9 | $(LZ4) -t
325 $(DATAGEN) -g20KB > tmp-tlb-dg20k
326 $(LZ4) < tmp-tlb-dg20k | $(LZ4) -d > tmp-tlb-dec
327 $(DIFF) -q tmp-tlb-dg20k tmp-tlb-dec
328 $(LZ4) --no-frame-crc < tmp-tlb-dg20k | $(LZ4) -d > tmp-tlb-dec
329 $(DIFF) -q tmp-tlb-dg20k tmp-tlb-dec
330 $(DATAGEN) | $(LZ4) -BI | $(LZ4) -t
331 $(DATAGEN) -g6M -P99 | $(LZ4) -9BD | $(LZ4) -t
332 $(DATAGEN) -g17M | $(LZ4) -9v | $(LZ4) -qt
333 $(DATAGEN) -g33M | $(LZ4) --no-frame-crc | $(LZ4) -t
334 $(DATAGEN) -g256MB | $(LZ4) -vqB4D | $(LZ4) -t
335 @echo "hello world" > tmp-tlb-hw
336 $(LZ4) --rm -f tmp-tlb-hw tmp-tlb-hw.lz4
337 test ! -f tmp-tlb-hw # must fail (--rm)
338 test -f tmp-tlb-hw.lz4
339 $(PRGDIR)/lz4cat tmp-tlb-hw.lz4 # must display hello world
340 test -f tmp-tlb-hw.lz4
341 $(PRGDIR)/unlz4 --rm tmp-tlb-hw.lz4 tmp-tlb-hw
342 test -f tmp-tlb-hw
343 test ! -f tmp-tlb-hw.lz4 # must fail (--rm)
344 test ! -f tmp-tlb-hw.lz4.lz4 # must fail (unlz4)
345 $(PRGDIR)/lz4cat tmp-tlb-hw # pass-through mode
346 test -f tmp-tlb-hw
347 test ! -f tmp-tlb-hw.lz4 # must fail (lz4cat)
348 $(LZ4) tmp-tlb-hw tmp-tlb-hw.lz4 # creates tmp-tlb-hw.lz4
349 $(PRGDIR)/lz4cat < tmp-tlb-hw.lz4 > tmp-tlb3 # checks lz4cat works with stdin (#285)
350 $(DIFF) -q tmp-tlb-hw tmp-tlb3
351 $(PRGDIR)/lz4cat < tmp-tlb-hw > tmp-tlb2 # checks lz4cat works in pass-through mode
352 $(DIFF) -q tmp-tlb-hw tmp-tlb2
353 cp tmp-tlb-hw ./-d
354 $(LZ4) --rm -- -d -d.lz4 # compresses ./d into ./-d.lz4
355 test -f ./-d.lz4
356 test ! -f ./-d
357 mv ./-d.lz4 ./-z
358 $(LZ4) -d --rm -- -z tmp-tlb4 # uncompresses ./-z into tmp-tlb4
359 test ! -f ./-z
360 $(DIFF) -q tmp-tlb-hw tmp-tlb4
361 $(LZ4) -f tmp-tlb-hw
362 $(LZ4) --list tmp-tlb-hw.lz4 # test --list on valid single-frame file
363 $(CAT) tmp-tlb-hw >> tmp-tlb-hw.lz4
364 $(LZ4) -f tmp-tlb-hw.lz4 # uncompress valid frame followed by invalid data
365 $(LZ4) -BX tmp-tlb-hw -c -q | $(LZ4) -tv # test block checksum
366 # $(DATAGEN) -g20KB generates the same file every single time
367 …not save output of $(DATAGEN) -g20KB as input file to lz4 because the following shell commands are…
368 …st "$(shell $(DATAGEN) -g20KB | $(LZ4) -c --fast | wc -c)" -lt "$(shell $(DATAGEN) -g20KB | $(LZ4)…
369 …test "$(shell $(DATAGEN) -g20KB | $(LZ4) -c -1 | wc -c)" -lt "$(shell $(DATAGEN) -g20KB| $(LZ4) -c…
370 …DATAGEN) -g20KB | $(LZ4) -c --fast=1 | wc -c)" -eq "$(shell $(DATAGEN) -g20KB| $(LZ4) -c --fast| w…
371 ! $(LZ4) -c --fast=0 tmp-tlb-dg20K # lz4 should fail when fast=0
372 ! $(LZ4) -c --fast=-1 tmp-tlb-dg20K # lz4 should fail when fast=-1
373 # High --fast values can result in out-of-bound dereferences #876
374 $(DATAGEN) -g1M | $(LZ4) -c --fast=999999999 > /dev/null
376 @echo "TEST" > tmp-tlb-test
377 $(LZ4) -m tmp-tlb-test
378 $(LZ4) tmp-tlb-test.lz4 tmp-tlb-test2
379 $(DIFF) -q tmp-tlb-test tmp-tlb-test2
380 @$(RM) tmp-tlb*
384 test-lz4-dict: lz4 datagen
385 @echo "\n ---- test lz4 compression/decompression with dictionary ----"
386 $(DATAGEN) -g16KB > tmp-dict
387 $(DATAGEN) -g32KB > tmp-dict-sample-32k
388 < tmp-dict-sample-32k $(LZ4) -D tmp-dict | $(LZ4) -dD tmp-dict | diff - tmp-dict-sample-32k
389 $(DATAGEN) -g128MB > tmp-dict-sample-128m
390 < tmp-dict-sample-128m $(LZ4) -D tmp-dict | $(LZ4) -dD tmp-dict | diff - tmp-dict-sample-128m
391 touch tmp-dict-sample-0
392 < tmp-dict-sample-0 $(LZ4) -D tmp-dict | $(LZ4) -dD tmp-dict | diff - tmp-dict-sample-0
394 …< tmp-dict-sample-32k $(LZ4) -D tmp-dict-sample-0 | $(LZ4) -dD tmp-dict-sample-0 | diff - tmp-dict
395 …< tmp-dict-sample-0 $(LZ4) -D tmp-dict-sample-0 | $(LZ4) -dD tmp-dict-sample-0 | diff - tmp-dict-s…
397 @echo "\n ---- test lz4 dictionary loading ----"
398 $(DATAGEN) -g128KB > tmp-dict-data-128KB
399 set -e; \
401 $(DATAGEN) -g$$l > tmp-dict-$$l; \
402 …$(DD) if=tmp-dict-$$l of=tmp-dict-$$l-tail bs=1 count=65536 skip=$$((l > 65536 ? l - 65536 : 0)); \
403 …< tmp-dict-$$l $(LZ4) -D stdin tmp-dict-data-128KB -c | $(LZ4) -dD tmp-dict-$$l-tail | $(DIFF…
404 …< tmp-dict-$$l-tail $(LZ4) -D stdin tmp-dict-data-128KB -c | $(LZ4) -dD tmp-dict-$$l | $(DIFF…
407 @$(RM) tmp-dict*
409 test-lz4-hugefile: lz4 datagen
410 @echo "\n ---- test huge files compression/decompression ----"
411 ./datagen -g6GB | $(LZ4) -vB5D | $(LZ4) -qt
412 ./datagen -g4500MB | $(LZ4) -v3BD | $(LZ4) -qt
413 # test large file size [2-4] GB
414 @$(DATAGEN) -g3G -P100 | $(LZ4) -vv | $(LZ4) --decompress --force --sparse - tmphf1
415 @ls -ls tmphf1
416 …@$(DATAGEN) -g3G -P100 | $(LZ4) --quiet --content-size | $(LZ4) --verbose --decompress --force --s…
417 @ls -ls tmphf2
418 $(DIFF) -s tmphf1 tmphf2
421 test-lz4-testmode: lz4 datagen
422 @echo "\n ---- bench mode ----"
423 $(LZ4) -bi0
424 @echo "\n ---- test mode ----"
425 ! $(DATAGEN) | $(LZ4) -t
426 ! $(DATAGEN) | $(LZ4) -tf
427 @echo "\n ---- pass-through mode ----"
428 @echo "Why hello there " > tmp-tlt2.lz4
429 ! $(LZ4) -f tmp-tlt2.lz4 > $(VOID)
430 ! $(DATAGEN) | $(LZ4) -dc > $(VOID)
431 ! $(DATAGEN) | $(LZ4) -df > $(VOID)
432 $(DATAGEN) | $(LZ4) -dcf > $(VOID)
433 @echo "Hello World !" > tmp-tlt1
434 $(LZ4) -dcf tmp-tlt1
435 @echo "from underground..." > tmp-tlt2
436 $(LZ4) -dcfm tmp-tlt1 tmp-tlt2
437 @echo "\n ---- non-existing source ----"
438 ! $(LZ4) file-does-not-exist
439 ! $(LZ4) -f file-does-not-exist
440 ! $(LZ4) -t file-does-not-exist
441 ! $(LZ4) -fm file1-dne file2-dne
442 @$(RM) tmp-tlt tmp-tlt1 tmp-tlt2 tmp-tlt2.lz4
444 test-lz4-opt-parser: lz4 datagen
445 @echo "\n ---- test opt-parser ----"
446 $(DATAGEN) -g16KB | $(LZ4) -12 | $(LZ4) -t
447 $(DATAGEN) -P10 | $(LZ4) -12B4 | $(LZ4) -t
448 $(DATAGEN) -g256K | $(LZ4) -12B4D | $(LZ4) -t
449 $(DATAGEN) -g512K -P25 | $(LZ4) -12BD | $(LZ4) -t
450 $(DATAGEN) -g1M | $(LZ4) -12B5 | $(LZ4) -t
451 $(DATAGEN) -g2M -P99 | $(LZ4) -11B4D | $(LZ4) -t
452 $(DATAGEN) -g4M | $(LZ4) -11vq | $(LZ4) -qt
453 $(DATAGEN) -g8M | $(LZ4) -11B4 | $(LZ4) -t
454 $(DATAGEN) -g16M -P90 | $(LZ4) -11B5 | $(LZ4) -t
455 $(DATAGEN) -g32M -P10 | $(LZ4) -11B5D | $(LZ4) -t
457 test-lz4-essentials : lz4 datagen test-lz4-basic test-lz4-multiple test-lz4-multiple-legacy \
458 test-lz4-frame-concatenation test-lz4-testmode \
459 test-lz4-contentSize test-lz4-dict
462 test-lz4: lz4 datagen test-lz4-essentials test-lz4-opt-parser \
463 test-lz4-sparse test-lz4-hugefile test-lz4-dict
466 test-lz4c: lz4c datagen
467 @echo "\n ---- test lz4c variant ----"
468 $(DATAGEN) -g256MB | $(LZ4)c -l -v | $(LZ4)c -t
470 test-lz4c32: CFLAGS+=-m32
471 test-lz4c32: test-lz4
473 test-interop-32-64: lz4 lz4c32 datagen
474 @echo "\n ---- test interoperability 32-bits -vs- 64 bits ----"
475 $(DATAGEN) -g16KB | $(LZ4)c32 -9 | $(LZ4) -t
476 $(DATAGEN) -P10 | $(LZ4) -9B4 | $(LZ4)c32 -t
477 $(DATAGEN) | $(LZ4)c32 | $(LZ4) -t
478 $(DATAGEN) -g1M | $(LZ4) -3B5 | $(LZ4)c32 -t
479 $(DATAGEN) -g256MB | $(LZ4)c32 -vqB4D | $(LZ4) -qt
480 $(DATAGEN) -g1G -P90 | $(LZ4) | $(LZ4)c32 -t
481 $(DATAGEN) -g6GB | $(LZ4)c32 -vq9BD | $(LZ4) -qt
483 test-lz4c32-basic: lz4c32 datagen
484 @echo "\n ---- test lz4c32 32-bits version ----"
485 $(DATAGEN) -g16KB | $(LZ4)c32 -9 | $(LZ4)c32 -t
486 $(DATAGEN) | $(LZ4)c32 | $(LZ4)c32 -t
487 $(DATAGEN) -g256MB | $(LZ4)c32 -vqB4D | $(LZ4)c32 -qt
488 $(DATAGEN) -g6GB | $(LZ4)c32 -vqB5D | $(LZ4)c32 -qt
490 test-platform:
491 @echo "\n ---- test lz4 $(QEMU_SYS) platform ----"
492 $(QEMU_SYS) $(DATAGEN) -g16KB | $(QEMU_SYS) $(LZ4) -9 | $(QEMU_SYS) $(LZ4) -t
493 $(QEMU_SYS) $(DATAGEN) | $(QEMU_SYS) $(LZ4) | $(QEMU_SYS) $(LZ4) -t
494 $(QEMU_SYS) $(DATAGEN) -g256MB | $(QEMU_SYS) $(LZ4) -vqB4D | $(QEMU_SYS) $(LZ4) -qt
495 ifneq ($(QEMU_SYS),qemu-arm-static)
496 $(QEMU_SYS) $(DATAGEN) -g3GB | $(QEMU_SYS) $(LZ4) -vqB5D | $(QEMU_SYS) $(LZ4) -qt
499 test-fullbench: fullbench
500 ./fullbench --no-prompt $(NB_LOOPS) $(TEST_FILES)
502 test-fullbench32: CFLAGS += -m32
503 test-fullbench32: test-fullbench
505 test-fuzzer: fuzzer
508 test-fuzzer32: CFLAGS += -m32
509 test-fuzzer32: test-fuzzer
511 test-frametest: frametest
512 ./frametest -v $(FUZZER_TIME)
514 test-frametest32: CFLAGS += -m32
515 test-frametest32: test-frametest
517 test-mem: lz4 datagen fuzzer frametest fullbench
518 @echo "\n ---- valgrind tests : memory analyzer ----"
519 valgrind --leak-check=yes --error-exitcode=1 $(DATAGEN) -g50M > $(VOID)
520 $(DATAGEN) -g16KB > ftmdg16K
521 valgrind --leak-check=yes --error-exitcode=1 $(LZ4) -9 -BD -f ftmdg16K $(VOID)
522 $(DATAGEN) -g16KB -s2 > ftmdg16K2
523 $(DATAGEN) -g16KB -s3 > ftmdg16K3
524 valgrind --leak-check=yes --error-exitcode=1 $(LZ4) --force --multiple ftmdg16K ftmdg16K2 ftmdg16K3
525 $(DATAGEN) -g7MB > ftmdg7M
526 valgrind --leak-check=yes --error-exitcode=1 $(LZ4) -9 -B5D -f ftmdg7M ftmdg16K2
527 valgrind --leak-check=yes --error-exitcode=1 $(LZ4) -t ftmdg16K2
528 valgrind --leak-check=yes --error-exitcode=1 $(LZ4) -bi1 ftmdg7M
529 valgrind --leak-check=yes --error-exitcode=1 ./fullbench -i1 ftmdg7M ftmdg16K2
530 valgrind --leak-check=yes --error-exitcode=1 $(LZ4) -B4D -f -vq ftmdg7M $(VOID)
531 valgrind --leak-check=yes --error-exitcode=1 $(LZ4) --list -m ftm*.lz4
532 valgrind --leak-check=yes --error-exitcode=1 $(LZ4) --list -m -v ftm*.lz4
534 valgrind --leak-check=yes --error-exitcode=1 ./fuzzer -i64 -t1
535 valgrind --leak-check=yes --error-exitcode=1 ./frametest -i256
537 test-mem32: lz4c32 datagen
538 # unfortunately, valgrind doesn't seem to work with non-native binary...
540 test-decompress-partial : decompress-partial
541 @echo "\n ---- test decompress-partial ----"
542 ./decompress-partial$(EXT)