]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Tests: Skip .lz files in test_files.sh if not configured.
authorJia Tan <jiat0218@gmail.com>
Fri, 21 Jul 2023 10:05:44 +0000 (18:05 +0800)
committerJia Tan <jiat0218@gmail.com>
Fri, 21 Jul 2023 10:05:44 +0000 (18:05 +0800)
Previously if the lzip decoder was not configured then test_files.sh
would pass the lzip tests instead of skipping them.

tests/test_files.sh

index e42af9185bd33fa8cd31966109f64a717310ecc9..60402e73a344a34b26efdc9f50cfd15ec5e0dca9 100755 (executable)
@@ -174,7 +174,7 @@ done
 # .lz #
 #######
 
-if grep 'define HAVE_LZIP_DECODER' ../config.h > /dev/null ; then
+if have_feature LZIP_DECODER ".lz files" ; then
        for I in "$srcdir"/files/good-*.lz
        do
                if test -z "$XZ" || "$XZ" -dc "$I" > /dev/null; then