summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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-2013-283/+425
| | | | | | | | | | | | | | | 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.
* added LZ4F_compressUpdate() in fullbenchYann Collet2022-09-081-0/+30
|
* Fix: replace strtoull with _strtoui64 for MSVC2010Takayuki Matsuoka2022-08-121-0/+8
| | | | https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/strtoui64-wcstoui64-strtoui64-l-wcstoui64-l
* Fix: remove unused valueTakayuki Matsuoka2022-08-121-1/+0
| | | | | | | | This patch fixes the following error from "make staticAnalyze" datagencli.c:106:21: warning: Value stored to 'size' is never read size=0; ^ ~
* Suppress false positive warning from MSVC (fuzzer.c)Takayuki Matsuoka2022-08-121-2/+10
| | | | | | | Suppress the following false positive warnings from MSVC: - Disable all arithmetic overflow (C26451) - Suppress C6385: Reading invalid data from 'compressedBuffer'. - Add ULL suffix to unsigned 64-bits constants.
* Suppress false positive warning from MSVC (datagencli.c)Takayuki Matsuoka2022-08-121-28/+4
| | | | | | | | | | | MSVC 2022 reports the follwing false positve warnings: lz4\tests\datagencli.c(110): warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). lz4\tests\datagencli.c(134): warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). lz4\tests\datagencli.c(146): warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). Although they're absolutely compiler's and static analyzer's bug, it'd always be nice to use the standard library.
* 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
|
* Fix: implement empty _start and main for non-Linux or x86-64 platformsTakayuki Matsuoka2022-08-071-4/+6
|
* Fix: Add extern "C" to all standard C replacement functionsTakayuki Matsuoka2022-08-071-13/+16
|
* Fix for ctocpptestTakayuki Matsuoka2022-08-071-13/+16
|
* Add LZ4_FREESTANDING test on Linux x86-64 platformTakayuki Matsuoka2022-08-073-3/+244
| | | | Also added tests/Makefile entry "test-freestanding".
* fix: various typosDominique Pelle2022-07-311-1/+1
|
* 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.
* added options.skipChecksums to local fuzzer testYann Collet2022-07-291-0/+1
|
* introduced new `--no-crc` commandYann Collet2022-07-291-0/+2
| | | | which disables both frame and block checksums.
* implement decoder-only benchmark modeYann Collet2022-07-292-1/+5
| | | | 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.
* Merge pull request #1115 from lz4/lz4f_customMemYann Collet2022-07-161-4/+63
|\ | | | | Support for Custom Memory managers
| * implemented LZ4F_createCDict_advanced()Yann Collet2022-07-131-2/+9
| |
| * Merge branch 'dev' into lz4f_customMemYann Collet2022-07-131-3/+3
| |\
| * | implemented first custom memory manager interfaceYann Collet2022-07-131-4/+56
| | | | | | | | | | | | | | | | | | | | | for compression context only for the time being, using LZ4F_createCompressionContext_advanced(). Added basic test in frametest.c
* | | Merge pull request #1119 from lz4/skipFramesYann Collet2022-07-153-3/+13
|\ \ \ | | | | | | | | support skippable frames within pipe
| * | | support skippable frames within pipeYann Collet2022-07-153-3/+13
| | |/ | |/| | | | | | | | | | | | | | | | fix #977 fseek() doesn't work for pipe, switch to "read and forget" mode in such case.
* | | fix decompress-partial-usingDict.cYann Collet2022-07-151-11/+26
|/ / | | | | | | | | | | | | | | | | The recently added test decompress-partial-usingDict tends to fail for unknown reasons, more frequently under the combination for clang-9 + `-mx32`. There is a suspicion that the test is using too much stack. Fixing that, + adding traces, to get more information if it fails again.
* | fix stricter enum type requirements for C++Yann Collet2022-07-131-3/+3
|/
* minor : specify min versions for library version identifiersYann Collet2022-07-121-0/+1
|
* generalize across all 3 ABI architecturesYann Collet2022-07-122-70/+85
|
* write liblz4 dynamic library versionYann Collet2022-07-123-13/+28
| | | | requires liblz4 >= v1.7.5
* first ABI compat testsYann Collet2022-07-124-1/+377
| | | | only use current march & default compiler
* Merge pull request #1099 from lz4/pr1094_frametestYann Collet2022-07-051-12/+26
|\ | | | | Add a fuzzer test for LZ4F_uncompressedUpdate() within frametest
| * update frametest for new condition for uncompressedUpdateYann Collet2022-07-051-13/+10
| |
| * added fuzzer test for LZ4F_uncompressedUpdate in frametestYann Collet2022-07-011-12/+29
| |
* | clarify yet another time what dual-license meansYann Collet2022-07-041-2/+2
| |
* | 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-075-8/+168
|/ | | | 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
* Introduce MIN and MAX bounds to LZ4_MEMORY_USAGEYann Collet2022-01-311-9/+10
| | | | | | | ensure that `frametest` works fine with these values, notably with low LZ4_MEMORY_USAGE (dict test notably) following suggestions from @t-mat at #1016
* Merge pull request #1060 from gabrielstedman/list_test_fixYann Collet2022-01-291-42/+49
|\ | | | | Fix list test
| * Correctly use temp folder variableGabriel2022-01-291-1/+1
| |
| * Convert all strings to fstrings && avoid usage of shell for PopenGabriel2022-01-291-40/+45
| |
| * Ensure list test exits with appropiate exit code on failureGabriel2022-01-291-1/+3
| |
* | --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.