]> git.ipfire.org Git - thirdparty/xz.git/commit
Tests: Make test_compress.sh more flexible
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 20 May 2024 13:55:00 +0000 (16:55 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 20 May 2024 13:55:00 +0000 (16:55 +0300)
commitac3222d2cb1ff3a15eb6d58f9ea9bc78e8bc3bb2
treebb97a28073c9b623f0527e92ab9300d31b061dba
parent006040b29c83104403621e950ada0c8956c56b3d
Tests: Make test_compress.sh more flexible

Add a new optional second argument: directory of the xz and xzdec
executables. This is need with the CMake build where the binaries
end up in the top-level build directory.

If ../config.h doesn't exist, assume that all encoders and decoders
are available. This will make this script usable from CMake in the
most common build configuration.

NOTE: Since the existence of ../config.h is checked, the working
directory of the test script must be a subdir in the build tree!
Otherwise ../config.h would look outside the build tree.

Use the default check type instead of forcing CRC32 or CRC64.
Now the script doesn't need to check if CRC64 is available.
tests/test_compress.sh