summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* fullbench: added test scenario LZ4F_decompress_followHintYann Collet2019-05-311-13/+51
| | | | | | | | | This emulates a streaming scenario, where the caller follows rigorously the srcSize hints provided as return value of LZ4F_decompress(). This is useful to show the issue in #714, where data is uselessly copied in a tmp buffer first.
* Handle file not existing case #704gabrielstedman2019-05-261-0/+1
|
* updated testsYann Collet2019-05-161-2/+2
| | | | | - only play listTest with `make test`, not `make all` which is limited to build - update `clangtest`, so that it's possible to disable O3 optimization, for faster processing
* List mode improvements.gstedman2019-05-162-2/+4
| | | | | | | | | Improve formatting Include static assert Use UTIL_fseek to handle potential fseek limitation Be explicit when refusing to read from stdin Properly free dctx after use Include valgrind tests
* Add multiframe report to --list commandgstedman2019-05-152-2/+287
|
* test-amalgamation: split the ruleDmitry V. Levin2019-04-231-6/+8
| | | | | | Change test-amalgamation to follow each-rule-makes-a-single-target idiom. Fixes: a7e8d394 ("[amalgamation] add test")
* test-amalgamation: fix compilation optionsDmitry V. Levin2019-04-231-1/+1
| | | | | | Use the same compilation options to compile lz4_all.c and other object files. Fixes: a7e8d394 ("[amalgamation] add test")
* test-amalgamation: use a single cat commandDmitry V. Levin2019-04-231-3/+1
| | | | | | | | | | Use the list of prerequisites instead of listing those files manually, this way they will never fall out of sync. Also update the amalgamation example to use a single cat command. Fixes: a7e8d394 ("[amalgamation] add test") Fixes: b192c86b ("[amalgamation] lz4frame.c")
* test-amalgamation: fix the list of prerequisitesDmitry V. Levin2019-04-231-1/+1
| | | | | | | Add $(LZ4DIR)/lz4frame.c to the list of prerequisites as the rule uses that file. Fixes: b192c86b ("[amalgamation] lz4frame.c")
* More build imrpvementsJPeterMugaas2019-04-231-1/+1
| | | | | | Moved a few other tests to Makefiles.inc. Other things might need to go there. Made a test for symlink appropriateness. Windows can NOT handle them the same way Unix-like operating systems do (if at all). This is mostly the same as the Visual C projects. embed version info into .dll and .exes that are redistributed.
* Merge pull request #691 from lz4/listYann Collet2019-04-231-0/+1
|\ | | | | --list
| * refactored --list functionYann Collet2019-04-221-0/+1
| | | | | | | | | | | | | | better handling of special conditions, better scoping of variables. Also : updated man page
* | Merge pull request #689 from JPeterMugaas/jpm-makefileYann Collet2019-04-221-11/+3
|\ \ | |/ |/| Jpm makefile - as described in https://github.com/lz4/lz4/issues/688
| * Fix a test for mingwJPeterMugaas2019-04-221-1/+1
| |
| * Try to put some tests I made in ONE place. I also moved a test for ↵JPeterMugaas2019-04-221-67/+2
| | | | | | | | "install" in one place to try to isolate it.
| * Initial commits from diff I submitted earlierJPeterMugaas2019-04-221-7/+64
| |
* | ensure tests work when `stdout` is not the consoleYann Collet2019-04-221-1/+1
| | | | | | | | | | | | | | ensure this case is continuously tested on travis. Update documentation on implicit output, invite to not rely on implicit output in scripts.
* | tests/Makefile : created CMP variableYann Collet2019-04-211-6/+8
| | | | | | | | | | | | for potential redirection, if need be. note : should probably converge all comparison operations onto CMP
* | cli: display a warning whenever default output is stdout while input != stdinYann Collet2019-04-201-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | This behavior has been preserved for compatibility with existing ecosystem. But it's problematic, as some environment start `lz4` without identifying stdout as console by default, leading to a change of behavior for a same line of script. A more sensible policy would be to default to stdout only when input is stdin. Soft change for the time being : keep the behavior, just print a warning message. User should prefer `-c` to explicitly select `stdout`. Also : updated tests in Makefile to explicitly select `stdout` with `-c`.
* | fixed read-after input in LZ4_decompress_safe()Yann Collet2019-04-191-74/+82
| |
* | fuzzer : reduced stack usageYann Collet2019-04-191-18/+18
| |
* | fuzzer: reduce stack usage to please Visual static analyzerYann Collet2019-04-191-58/+66
| |
* | address a few minor Visual warningsYann Collet2019-04-183-7/+8
| | | | | | | | and created target cxx17build
* | fix several minor static analyzer warningsYann Collet2019-04-183-34/+46
| |
* | fuzzer: fixed scan-build leak warningYann Collet2019-04-181-19/+10
| | | | | | | | | | the program exit(), so there is no need to track and dealloc every buffer.
* | fuzzer: fix explicit cast for C++Yann Collet2019-04-171-1/+1
| |
* | fuzzer: added tests to detect LZ4_decompress_fast() out of bound readYann Collet2019-04-171-19/+27
| |
* | Fix AIX errors/warningsNorm Green2019-04-171-0/+4
|/
* Merge branch 'dev' into fixframeYann Collet2019-04-151-1/+1
|\
| * added a fake initialization to please an analyzerYann Collet2019-04-151-1/+1
| | | | | | | | | | which is unable to understand that the variable is necessarily initialized in spite of an assert just before.
* | fix fuzzer tests on dirty contextYann Collet2019-04-151-3/+3
|/ | | | | | context is no longer dirty after a failed compressed block. Actually, all indexes are fine. It remains compatible with continued streaming, and reset*_fast().
* added more margin for canary in frametestYann Collet2019-04-151-5/+4
|
* frametest: removed uninitialized warningYann Collet2019-04-151-17/+26
| | | | was a false positive, but better remove it anyway
* assert() the failed testYann Collet2019-04-151-0/+1
| | | | ensure canary remains within buffer limits
* fixed frametestYann Collet2019-04-151-10/+14
| | | | | | One test could write a canary value out of bound in exceptional conditions involving multiple flushes triggered by -s3421 -t462948.
* and even more visual conversion warningsYann Collet2019-04-131-9/+11
|
* fixed minor Visual conversion warningsYann Collet2019-04-131-1/+1
|
* added tests for -d -m -cYann Collet2019-04-121-10/+24
| | | | seems to work properly
* fixed lz4 -m -cYann Collet2019-04-121-3/+12
| | | | can compress multiple files into stdout
* added command -BI for "Independent Blocks"Yann Collet2019-04-121-1/+1
| | | | | | | | This is the reverse of `-BD`, and the current default. This command can be useful to reverse a previous `-BD` command. It may in the future be more important if `lz4` switches to generating dependent blocks by default.
* made LZ4F_getHeaderSize() publicYann Collet2019-04-101-3/+8
|
* fixed loadDictHCYann Collet2019-04-091-4/+4
| | | | | by making a full initialization instead of a fast reset.
* modified LZ4_initStreamHC() to look like LZ4_initStream()Yann Collet2019-04-092-20/+21
| | | | | it is now a pure initializer, for statically allocated states. It can initialize any memory area, and because of this, requires size.
* checkFrame: removed %zuYann Collet2019-04-081-7/+12
| | | | not liked by mingw
* fullbench: assert lz4_stream_t initializationYann Collet2019-04-081-2/+4
|
* fixed cleaning tmp directoryYann Collet2019-04-081-3/+3
|
* slightly faster huge file testYann Collet2019-04-081-1/+1
| | | | | level down 5->4 size down 6G->5G
* added make list target to testsYann Collet2019-04-081-0/+6
|
* created LZ4_initStream()Yann Collet2019-04-052-5/+5
| | | | | | | | | | - promoted LZ4_resetStream_fast() to stable - moved LZ4_resetStream() into deprecate, but without triggering a compiler warning - update all sources to no longer rely on LZ4_resetStream() note : LZ4_initStream() proposal is slightly different : it's able to initialize any buffer, provided that it's large enough. To this end, it accepts a void*, and returns an LZ4_stream_t*.
* fixed _GNU_SOURCE duplicateYann Collet2019-04-051-0/+1
|