aboutsummaryrefslogtreecommitdiff
path: root/tests/test_compress.sh (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-08-01Tests: Add ARM64 filter test to test_compress.sh.Jia Tan1-0/+1
2023-07-18Tests: Improve feature testing for skipping.Jia Tan1-2/+2
Fixed a bug where test_compress_* would all fail if arm64 or armthumb filters were enabled for compression but arm was disabled. Since the grep tests only checked for "define HAVE_ENCODER_ARM", this would match on HAVE_ENCODER_ARM64 or HAVE_ENCODER_ARMTHUMB. Now the config.h feature test requires " 1" at the end to prevent the prefix problem. have_feature() was also updated for this even though there were known current bugs affecting it. This is just in case future features have a similar prefix problem.
2023-01-04Tests: Adjust style in test_compress.sh.Lasse Collin1-5/+7
2023-01-05Tests: Replace non portable shell parameter expansionJia Tan1-7/+13
The shell parameter expansion using # and ## is not supported in Solaris 10 Bourne shell (/bin/sh). Even though this is POSIX, it is not fully portable, so we should avoid it.
2022-10-27Tests: Keep test_compress_* working when some filters are unavailable.Lasse Collin1-14/+20
2022-10-19Tests: Skip tests in test_*.sh if encoders and/or decoders are disabled.Lasse Collin1-0/+12
This isn't perfect as the scripts can still fail if only certain filters are disabled. This is still an improvement as now "make check" has better behavior when all encoders or decoders are disabled. Grepping ../config.h is simple and fairly clean but it only works if config.h was created. CMake builds don't create config.h but they don't use these test scripts either. Thanks to Sebastian Andrzej Siewior for reporting the problem. Thanks to Jia Tan for the original patch which grepped xz error messages instead of config.h.
2022-10-19Test: Remove the (exit 1) lines.Lasse Collin1-10/+0
I suspect that I used these in the original version because Autoconf's manual describes that such a trick is needed in some specific situations for portability reasons. None of those situations listed on Autoconf 2.71 manual apply to these test scripts though so this cleans them up.
2022-05-23Tests: Split test_compress.sh into separate test unit for each file.Lasse Collin1-39/+52
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.
2022-05-23Tests: Remove unneeded commented lines from test_compress.sh.Lasse Collin1-13/+0
2022-05-23Tests: Remove progress indicator from test_compress.sh.Lasse Collin1-9/+0
It will be useless with Automake's parallel tests.
2010-10-08Make tests accommodate missing xz or xzdec.Lasse Collin1-17/+30
2010-09-04Adjust memory limits in test_compress.shJonathan Nieder1-1/+1
Testing compression at level -4 now requires 48 MiB of free store at compression time and 5 MiB at decompression time. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
2010-08-10Fix test_compress.sh.Lasse Collin1-3/+3
It broke when --memory option was removed from xzdec. Thanks to Jonathan Nieder.
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.
2009-01-26remove trailing blanks from all but .xz filesJim Meyering1-2/+2
2008-12-31Disable Subblock filter from test_compress.sh since it islarhzu/v4.999.7betaLasse Collin1-9/+13
disabled by default in configure.ac.
2008-12-27Use 28 MiB as memory usage limit for encoding in test_compress.sh.Lasse Collin1-1/+1
2008-11-19Renamed lzma to xz and lzmadec to xzdec. We create symlinksLasse Collin1-15/+14
lzma, unlzma, and lzcat in "make install" for backwards compatibility with LZMA Utils 4.32.x; I'm not sure if this should be the default though.
2008-10-02Initial changes to change the suffix of the new format to .xz.Lasse Collin1-1/+2
This also fixes a bug related to --suffix option. Some issues with suffixes with --format=raw were not fixed.
2008-09-27Fix also test_compress.sh.Lasse Collin1-3/+3
2008-09-27Some API changes, bug fixes, cleanups etc.Lasse Collin1-2/+2
2008-08-28Sort of garbage collection commit. :-| Many things are stillLasse Collin1-2/+2
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-58/+7
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-18Added test_compress.sh and bunch of files needed by it.Lasse Collin1-0/+183
This new set of tests compress and decompress several test files with many different compression options. This set of tests will be extended later.