1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

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.
This commit is contained in:
Jia Tan 2023-07-21 18:05:44 +08:00
parent 194d12724b
commit 39a32d36fc

View file

@ -174,7 +174,7 @@ done
# .lz # # .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 for I in "$srcdir"/files/good-*.lz
do do
if test -z "$XZ" || "$XZ" -dc "$I" > /dev/null; then if test -z "$XZ" || "$XZ" -dc "$I" > /dev/null; then