aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile.am (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-06-14Created tests for all functions exported in vli.hJia Tan1-1/+3
Achieved 100% code coverage vli_encoder.c, vli_decoder.c, and vli_size.c
2022-06-10Tests: Created tests for hardware functions.Jia Tan1-0/+2
Created tests for all API functions exported in src/liblzma/api/lzma/hardware.h. The tests are fairly trivial but are helpful because they will inform users if their machines cannot support these functions. They also improve the code coverage metrics.
2022-06-02Tests: Add tuktest.h mini-test-framework.Lasse Collin1-0/+1
2022-05-23Tests: Split test_compress.sh into separate test unit for each file.Lasse Collin1-1/+10
test_compress.sh now takes one command line argument: a filename to be tested. If it begins with "compress_generated_" the file will be created with create_compress_files. This will allow parallel execution of the slow tests.
2018-11-02Tests: Add a fuzz test program and a config file for OSS-Fuzz.Lasse Collin1-0/+1
Thanks to Bhargava Shastry and Github user pdknsk.
2014-06-13xzgrep: List xzgrep_expected_output in tests/Makefile.am.Lasse Collin1-1/+2
2014-06-13xzgrep: Improve the test script.Lasse Collin1-1/+2
Now it should be close to the functionality of the original version by Pavel Raiskup.
2012-05-28liblzma: Fix possibility of incorrect LZMA_BUF_ERROR.Lasse Collin1-1/+3
lzma_code() could incorrectly return LZMA_BUF_ERROR if all of the following was true: - The caller knows how many bytes of output to expect and only provides that much output space. - When the last output bytes are decoded, the caller-provided input buffer ends right before the LZMA2 end of payload marker. So LZMA2 won't provide more output anymore, but it won't know it yet and thus won't return LZMA_STREAM_END yet. - A BCJ filter is in use and it hasn't left any unfiltered bytes in the temp buffer. This can happen with any BCJ filter, but in practice it's more likely with filters other than the x86 BCJ. Another situation where the bug can be triggered happens if the uncompressed size is zero bytes and no output space is provided. In this case the decompression can fail even if the whole input file is given to lzma_code(). A similar bug was fixed in XZ Embedded on 2011-09-19.
2011-09-06Build: Fix "make check" on Windows.Lasse Collin1-2/+5
2011-07-31Fix exit status of "xzdiff foo.xz bar.xz".Lasse Collin1-1/+3
xzdiff was clobbering the exit status from diff in a case statement used to analyze the exit statuses from "xz" when its operands were two compressed files. Save and restore diff's exit status to fix this. The bug is inherited from zdiff in GNU gzip and was fixed there on 2009-10-09. Thanks to Jonathan Nieder for the patch and to Peter Pallinger for reporting the bug.
2010-10-05Build: Remove the static/dynamic tricks.Lasse Collin1-4/+1
Most distros want xz linked against shared liblzma, so it doesn't help much to require --enable-dynamic for that. Those who want to avoid PIC on x86-32 to get better performance, can still do it e.g. by using --disable-shared to compile xz and then another pass to compile shared liblzma. Part of these static/dynamic tricks were needed for Windows in the past. Nowadays we rely on GCC and binutils to do the right thing with auto-import. If the Autotooled build system needs to support some other toolchain on Windows in the future, this may need some rethinking.
2009-06-30Use static liblzma by default also for tests.Lasse Collin1-1/+4
2009-06-26Fix @variables@ to $(variables) in Makefile.am files.Lasse Collin1-5/+7
Fix the ordering of libgnu.a and LTLIBINTL on the linker command line and added missing LTLIBINTL to tests/Makefile.am.
2009-04-13Put the interesting parts of XZ Utils into the public domain.Lasse Collin1-10/+3
Some minor documentation cleanups were made at the same time.
2008-11-25Remove the nowadays unneeded memory limitting malloc() wrapper.Lasse Collin1-2/+0
2008-08-28Sort of garbage collection commit. :-| Many things are stillLasse Collin1-0/+1
broken. API has changed a lot and it will still change a little more here and there. The command line tool doesn't have all the required changes to reflect the API changes, so it's easy to get "internal error" or trigger assertions.
2008-06-18Update the code to mostly match the new simpler file formatLasse Collin1-4/+1
specification. Simplify things by removing most of the support for known uncompressed size in most places. There are some miscellaneous changes here and there too. The API of liblzma has got many changes and still some more will be done soon. While most of the code has been updated, some things are not fixed (the command line tool will choke with invalid filter chain, if nothing else). Subblock filter is somewhat broken for now. It will be updated once the encoded format of the Subblock filter has been decided.
2008-01-25Added test_memlimit.c.Lasse Collin1-0/+2
2008-01-18Added test_compress.sh and bunch of files needed by it.Lasse Collin1-10/+20
This new set of tests compress and decompress several test files with many different compression options. This set of tests will be extended later.
2008-01-07Added test_files.sh to tests/Makefile.am so it getsLasse Collin1-1/+1
included in the tarball with "make dist".
2008-01-07Added test_files.sh to test decoding of the files inLasse Collin1-1/+3
the tests/files directory. It doesn't test the malicious files yet.
2007-12-11Fixed a typo in tests/Makefile.am which preventedLasse Collin1-1/+1
building the tests if gnulib was needed.
2007-12-09Imported to git.Lasse Collin1-0/+43