]> git.ipfire.org Git - thirdparty/xz.git/commit
Tests: Improve feature testing for skipping.
authorJia Tan <jiat0218@gmail.com>
Fri, 14 Jul 2023 13:30:25 +0000 (21:30 +0800)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 18 Jul 2023 10:26:48 +0000 (13:26 +0300)
commit6e21f1b4e2c580b64d258e3b81ac9e44d53b9283
tree79333516076630567af8785ce983b167d0085e65
parent26c37d290c0884a4518a26b949575420a77fb938
Tests: Improve feature testing for skipping.

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.
tests/test_compress.sh
tests/test_files.sh