aboutsummaryrefslogtreecommitdiff
path: root/tests/test_files.sh
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2023-07-21 18:05:44 +0800
committerLasse Collin <lasse.collin@tukaani.org>2023-08-01 18:41:42 +0300
commitef7fbe83937abd7f55f1637c1d08b559f1d3d6cc (patch)
tree0e92ccd29f2f757149928c3fce16668c3d135c95 /tests/test_files.sh
parentTests: Add ARM64 filter test to test_compress.sh. (diff)
downloadxz-ef7fbe83937abd7f55f1637c1d08b559f1d3d6cc.tar.xz
Tests: Skip .lz files in test_files.sh if not configured.
Previously if the lzip decoder was not configured then test_files.sh would pass the lzip tests instead of skipping them.
Diffstat (limited to '')
-rwxr-xr-xtests/test_files.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_files.sh b/tests/test_files.sh
index e42af918..60402e73 100755
--- a/tests/test_files.sh
+++ b/tests/test_files.sh
@@ -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