summaryrefslogtreecommitdiffstats
path: root/tests/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1187 from t-mat/pr-issue-1186Yann Collet2022-12-021-3/+34
|\ | | | | Add environment check for freestanding test : resolves #1186
| * Add environment check for freestanding testTakayuki Matsuoka2022-11-091-3/+34
| | | | | | | | | | | | | | | | | | | | Freestanding test is intended to run on only Linux x86_64 platform. Because it uses Linux x86_64 syscall directly to avoid any dependency to the standard library. This changeset adds platform checking code to tests/Makefile to avoid unintended error in non-Linux x86_64 platforms. This changeset resolves issue #1186
* | Remove PATH=$(PATH) prefix from all shell script invocationTakayuki Matsuoka2022-11-291-12/+12
|/ | | | | | | When $(PATH) contains ' ' (space, 0x20), this prefix causes error. Also we don't need reconfiguring PATH for each shell script, we don't need them. This changeset fixes issue #1195
* Update Meson build to 1.9.4Tristan Partin2022-10-201-283/+20
| | | | | | | | | | | | | | | Specifically this adds support for the following options: - LZ4_ALIGN_TEST - LZ4_STATIC_LINKING_ONLY_DISABLE_MEMORY_ALLOCATION - LZ4_DISTANCE_MAX - LZ4_FAST_DEC_LOOP - LZ4_FORCE_SW_BITCOUNT - LZ4_FREESTANDING - LZ4_USER_MEMORY_FUNCTIONS - compiling ossfuzz targets - compiling more test targets - registering some tests
* added test able to catch bug #1167Yann Collet2022-09-151-0/+1
| | | | also : errors during benchmark mode return an error code.
* add a test to catch issue #1164Yann Collet2022-09-141-0/+6
| | | | | | | | | | where `--test -m files*.lz4` would create a bunch of `files*` files. `--test` should not create any file. It turns out the bug was already fixed when #1164 was filled, but it also shows that the CI system was blind to such issues when it happened. The new test was run with `v1.9.3` and triggered an error, as expected.
* Remove test-freestanding from tests/Makefile "all" and "test"Takayuki Matsuoka2022-08-081-2/+2
| | | | | Since test-freestanding is able to be compiled and executed in specific environment, we should not run it in our standard test.
* Fix: Ignore exitcode of strace and ltraceTakayuki Matsuoka2022-08-071-2/+2
|
* Add LZ4_FREESTANDING test on Linux x86-64 platformTakayuki Matsuoka2022-08-071-3/+12
| | | | Also added tests/Makefile entry "test-freestanding".
* extend disabling checksum validation to normal lz4 CLI decompressionYann Collet2022-07-291-1/+1
| | | | | note : it's unlikely to improve speed, as in most cases I/O is slower than lz4 decompression, but maybe in extreme scenarios, it might show a difference.
* introduced new `--no-crc` commandYann Collet2022-07-291-0/+2
| | | | which disables both frame and block checksums.
* implement decoder-only benchmark modeYann Collet2022-07-291-0/+3
| | | | requires an LZ4 Frame as input
* test independence for parallel runYann Collet2022-07-171-206/+228
| | | | | | | for `make -j test`. note : test-install is no longer part of `make test` It will have to be run on its own.
* support skippable frames within pipeYann Collet2022-07-151-1/+13
| | | | | | | fix #977 fseek() doesn't work for pipe, switch to "read and forget" mode in such case.
* first ABI compat testsYann Collet2022-07-121-1/+8
| | | | only use current march & default compiler
* fixed minor leakYann Collet2022-07-011-1/+1
|
* fixed -tmYann Collet2022-07-011-0/+5
| | | | which was broken up to now.
* fail on requesting to process 3+ file names in legacy modeYann Collet2022-07-011-5/+4
| | | | warning only if -f is selected.
* tests: add tests for `LZ4_decompress_safe_partial_usingDict`Qi Wang2022-06-071-1/+6
| | | | Signed-off-by: Qi Wang <wangqi@linux.alibaba.com>
* added target test-compile-with-lz4-memory-usageYann Collet2022-01-311-0/+8
| | | | and run it in GA CI
* --test and --list return an error when parsing invalid fileYann Collet2022-01-291-1/+1
| | | | fix #1045
* Merge pull request #1056 from lz4/fix_opt12Yann Collet2022-01-291-0/+1
|\ | | | | fixed bug in optimal parser
| * fixed bug in optimal parserYann Collet2022-01-291-0/+1
| | | | | | | | discovered by @yoniko.
* | added testYann Collet2022-01-291-0/+1
|/ | | | for --list from stdin
* make UNAME externally definableYann Collet2021-08-161-2/+2
| | | | | | | on top of providing a central definition place, which eases maintenance, it might also help for #1021. Also : updated doc
* fix CFLAGS unexport issueYann Collet2020-12-011-1/+1
|
* LZ4IO_createDict() doesn't need prefsYann Collet2020-11-141-1/+1
|
* first proposal for LZ4_USER_MEMORY_FUNCTIONSYann Collet2020-11-091-3/+6
| | | | | | | | | makes it possible to replace at link time malloc, calloc and free by user-provided functions which must be named LZ4_malloc(), LZ4_calloc() and LZ4_free(). answer #937
* fix ubsan testYann Collet2020-09-171-1/+1
| | | | | | which now fails with a clear error as intended (not just print a status and move on). should be reproduced on travisCI
* Merge branch 'dev' into extraInputYann Collet2020-08-271-81/+92
|\
| * fix test under non-interactive environmentYann Collet2020-08-251-1/+1
| |
| * added more tests around --content-sizeYann Collet2020-08-251-1/+10
| | | | | | | | notably in association with `stdin`
| * use variables for program invocationYann Collet2020-08-251-80/+82
| |
* | fix issue #783 (#862)BellaXlp2020-08-121-3/+11
| | | | | | * fix issue #783
* | added test decompress-partial with extraneous input bytesYann Collet2020-08-121-1/+1
|/ | | | | fails currently, for investigation of #783
* add test that breaks --fastYann Collet2020-08-101-0/+5
| | | | | | with huge values, as expected from #876 Also : added target `check`
* Add test scenario test-lz4-multiple-legacyFilipe Calasans2020-02-081-1/+39
|
* ensure conformance with custom LZ4_DISTANCE_MAXYann Collet2019-07-151-1/+1
| | | | | | | | | | | | | | It's now possible to select a custom LZ4_DISTANCE_MAX at compile time, provided it's <= 65535. However, in some cases (when compressing in byU16 mode), the new distance wasn't respected, as it used to implied that it was necessarily within range. Added a distance check for this case. Also : added a new TravisCI test which ensures that custom LZ4_DISTANCE_MAX compiles correctly and compresses correctly (relying on `assert()` to find outsized offsets).
* 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-161-0/+2
| | | | | | | | | 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-151-2/+5
|
* 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