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