Skip to content

The new "cli-tests" from 1.5.4 fail if zstd is built with HAVE_ZLIB=0. #3501

@ilyakurdyukov

Description

@ilyakurdyukov

Describe the bug

Please make proper tests that won't fail if something is built with non-default options:

FAIL: compression/basic.sh
FAIL: compression/gzip-compat.sh
FAILED 2 / 37 tests!

"basic.sh" stderr:

# Test keeping input file when compressing to stdout in gzip mode
$ZSTD_SYMLINK_DIR/gzip -c file       | zstd -t ; test -f file
zstd: error 20 : zstd: file: file cannot be compressed as gzip (zstd compiled without ZSTD_GZCOMPRESS) -- ignored 

"gzip-compat.sh" stderr:

# Test gzip specific compression option
$ZSTD_SYMLINK_DIR/gzip --fast file ; $ZSTD_SYMLINK_DIR/gzip -d file.gz
zstd: error 20 : zstd: file: file cannot be compressed as gzip (zstd compiled without ZSTD_GZCOMPRESS) -- ignored 

To Reproduce

make HAVE_ZLIB=0
make -C tests test-cli-tests HAVE_ZLIB=0

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions