Home | History | Annotate | Download | only in tests

Lines Matching refs:LZ4

2 # LZ4 programs - Makefile
22 # - LZ4 homepage : http://www.lz4.org
23 # - LZ4 source repository : https://github.com/lz4/lz4
25 # fuzzer : Test tool, to check lz4 integrity on target platform
27 # fullbench : Precisely measure speed for each LZ4 function variant
56 LZ4 := $(PRGDIR)/lz4$(EXT)
72 lz4:
80 cp $(LZ4) $(LZ4)c32
82 fullbench : $(LIBDIR)/lz4.o $(LIBDIR)/lz4hc.o $(LIBDIR)/lz4frame.o $(LIBDIR)/xxhash.o fullbench.c
93 fuzzer : $(LIBDIR)/lz4.o $(LIBDIR)/lz4hc.o $(LIBDIR)/xxhash.o fuzzer.c
96 frametest: $(LIBDIR)/lz4frame.o $(LIBDIR)/lz4.o $(LIBDIR)/lz4hc.o $(LIBDIR)/xxhash.o frametest.c
99 fasttest: $(LIBDIR)/lz4.o fasttest.c
119 $(PYTHON) test-lz4-versions.py
138 test: test-lz4 test-lz4c test-fasttest test-frametest test-fullbench test-fuzzer
143 test-lz4-sparse: lz4 datagen
146 $(LZ4) -B4D tmpSrc | $(LZ4) -dv --sparse > tmpB4
148 $(LZ4) -B5D tmpSrc | $(LZ4) -dv --sparse > tmpB5
150 $(LZ4) -B6D tmpSrc | $(LZ4) -dv --sparse > tmpB6
152 $(LZ4) -B7D tmpSrc | $(LZ4) -dv --sparse > tmpB7
154 $(LZ4) tmpSrc | $(LZ4) -dv --no-sparse > tmpNoSparse
157 ./datagen -s1 -g1200007 -P100 | $(LZ4) | $(LZ4) -dv --sparse > tmpOdd # Odd size file (to generate non-full last block)
162 echo "Hello World 1 !" | $(LZ4) | $(LZ4) -d -c
163 echo "Hello World 2 !" | $(LZ4) | $(LZ4) -d | cat
164 echo "Hello World 3 !" | $(LZ4) --no-frame-crc | $(LZ4) -d -c
168 $(LZ4) -B5 -v tmp1M tmpC
169 $(LZ4) -d -v tmpC tmpR
170 $(LZ4) -d -v tmpC >> tmpR
175 test-lz4-contentSize: lz4 datagen
178 $(LZ4) -v tmp | $(LZ4) -t
179 $(LZ4) -v --content-size tmp | $(LZ4) -d > tmp2
182 @./datagen -g3G -P100 | $(LZ4) -vv | $(LZ4) --decompress --force --sparse - tmp
184 @./datagen -g3G -P100 | $(LZ4) --quiet --content-size | $(LZ4) --verbose --decompress --force --sparse - tmp2
189 test-lz4-frame-concatenation: lz4 datagen
194 @$(LZ4) -zq empty.test > empty.lz4.test
195 @$(LZ4) -zq nonempty.test > nonempty.lz4.test
196 cat nonempty.lz4.test empty.lz4.test nonempty.lz4.test > concat.lz4.test
197 $(LZ4) -d concat.lz4.test > result.test
202 test-lz4-multiple: lz4 datagen
207 $(LZ4) -f -m tmp*
210 $(LZ4) -df -m *.lz4
212 $(LZ4) -f -m tmp1 notHere tmp2; echo $$?
221 test-lz4-basic: lz4 datagen unlz4 lz4cat
222 @echo "\n ---- test lz4 basic compression/decompression ----"
223 ./datagen -g0 | $(LZ4) -v | $(LZ4) -t
224 ./datagen -g16KB | $(LZ4) -9 | $(LZ4) -t
226 $(LZ4) < tmpSrc | $(LZ4) -d > tmpRes
228 $(LZ4) --no-frame-crc < tmpSrc | $(LZ4) -d > tmpRes
230 ./datagen | $(LZ4) | $(LZ4) -t
231 ./datagen -g6M -P99 | $(LZ4) -9BD | $(LZ4) -t
232 ./datagen -g17M | $(LZ4) -9v | $(LZ4) -qt
233 ./datagen -g33M | $(LZ4) --no-frame-crc | $(LZ4) -t
234 ./datagen -g256MB | $(LZ4) -vqB4D | $(LZ4) -t
236 $(LZ4) --rm -f tmp
238 ls -ls tmp.lz4
239 $(PRGDIR)/lz4cat tmp.lz4 # must display hello world
240 ls -ls tmp.lz4
241 $(PRGDIR)/unlz4 --rm tmp.lz4
243 ls -ls tmp.lz4 && false || true # must fail (--rm)
244 ls -ls tmp.lz4.lz4 && false || true # must fail (unlz4)
247 ls -ls tmp.lz4 && false || true # must fail (lz4cat)
248 $(LZ4) tmp # creates tmp.lz4
249 $(PRGDIR)/lz4cat < tmp.lz4 > tmp3 # checks lz4cat works with stdin (#285)
255 test-lz4-hugefile: lz4 datagen
257 ./datagen -g6GB | $(LZ4) -vB5D | $(LZ4) -qt
258 ./datagen -g6GB | $(LZ4) -v5BD | $(LZ4) -qt
261 test-lz4-testmode: lz4 datagen
263 $(LZ4) -bi1
265 ./datagen | $(LZ4) -t && false || true
266 ./datagen | $(LZ4) -tf && false || true
268 ./datagen | $(LZ4) -d > $(VOID) && false || true
269 ./datagen | $(LZ4) -df > $(VOID)
271 $(LZ4) -dcf tmp1
273 $(LZ4) -dcfm tmp1 tmp2
275 $(LZ4) file-does-not-exist && false || true
276 $(LZ4) -f file-does-not-exist && false || true
277 $(LZ4) -fm file1-dne file2-dne && false || true
278 $(LZ4) -fm file1-dne file2-dne && false || true
280 test-lz4-opt-parser: lz4 datagen
282 ./datagen -g16KB | $(LZ4) -12 | $(LZ4) -t
283 ./datagen -P10 | $(LZ4) -12B4 | $(LZ4) -t
284 ./datagen -g256K | $(LZ4) -12B4D | $(LZ4) -t
285 ./datagen -g512K -P25 | $(LZ4) -12BD | $(LZ4) -t
286 ./datagen -g1M | $(LZ4) -12B5 | $(LZ4) -t
287 ./datagen -g2M -P99 | $(LZ4) -11B4D | $(LZ4) -t
288 ./datagen -g4M | $(LZ4) -11vq | $(LZ4) -qt
289 ./datagen -g8M | $(LZ4) -11B4 | $(LZ4) -t
290 ./datagen -g16M -P90 | $(LZ4) -11B5 | $(LZ4) -t
291 ./datagen -g32M -P10 | $(LZ4) -11B5D | $(LZ4) -t
293 test-lz4: lz4 datagen test-lz4-opt-parser test-lz4-basic test-lz4-multiple test-lz4-sparse \
294 test-lz4-frame-concatenation test-lz4-testmode test-lz4-contentSize \
295 test-lz4-hugefile
299 ./datagen -g256MB | $(LZ4)c -l -v | $(LZ4)c -t
302 test-lz4c32: test-lz4
304 test-interop-32-64: lz4 lz4c32 datagen
306 ./datagen -g16KB | $(LZ4)c32 -9 | $(LZ4) -t
307 ./datagen -P10 | $(LZ4) -9B4 | $(LZ4)c32 -t
308 ./datagen | $(LZ4)c32 | $(LZ4) -t
309 ./datagen -g1M | $(LZ4) -3B5 | $(LZ4)c32 -t
310 ./datagen -g256MB | $(LZ4)c32 -vqB4D | $(LZ4) -qt
311 ./datagen -g1G -P90 | $(LZ4) | $(LZ4)c32 -t
312 ./datagen -g6GB | $(LZ4)c32 -vq9BD | $(LZ4) -qt
316 ./datagen -g16KB | $(LZ4)c32 -9 | $(LZ4)c32 -t
317 ./datagen | $(LZ4)c32 | $(LZ4)c32 -t
318 ./datagen -g256MB | $(LZ4)c32 -vqB4D | $(LZ4)c32 -qt
319 ./datagen -g6GB | $(LZ4)c32 -vqB5D | $(LZ4)c32 -qt
322 @echo "\n ---- test lz4 $(QEMU_SYS) platform ----"
323 $(QEMU_SYS) ./datagen -g16KB | $(QEMU_SYS) $(LZ4) -9 | $(QEMU_SYS) $(LZ4) -t
324 $(QEMU_SYS) ./datagen | $(QEMU_SYS) $(LZ4) | $(QEMU_SYS) $(LZ4) -t
325 $(QEMU_SYS) ./datagen -g256MB | $(QEMU_SYS) $(LZ4) -vqB4D | $(QEMU_SYS) $(LZ4) -qt
327 $(QEMU_SYS) ./datagen -g3GB | $(QEMU_SYS) $(LZ4) -vqB5D | $(QEMU_SYS) $(LZ4) -qt
351 test-mem: lz4 datagen fuzzer frametest fullbench
355 valgrind --leak-check=yes --error-exitcode=1 $(LZ4) -9 -BD -f tmp $(VOID)
358 valgrind --leak-check=yes --error-exitcode=1 $(LZ4) --force --multiple tmp tmp2 tmp3
360 valgrind --leak-check=yes --error-exitcode=1 $(LZ4) -9 -B5D -f tmp tmp2
361 valgrind --leak-check=yes --error-exitcode=1 $(LZ4) -t tmp2
362 valgrind --leak-check=yes --error-exitcode=1 $(LZ4) -bi1 tmp
365 valgrind --leak-check=yes --error-exitcode=1 $(LZ4) -B4D -f -vq tmp $(VOID)