git subrepo pull (merge) --force deps/libchdr
[pcsx_rearmed.git] / deps / libchdr / deps / zstd-1.5.5 / tests / cli-tests / compression / gzip-compat.sh
1 #!/bin/sh
2
3 set -e
4
5 # Uncomment the set -v line for debugging
6 # set -v
7
8 # Test gzip specific compression option
9 if $(command -v $ZSTD_SYMLINK_DIR/gzip); then
10     $ZSTD_SYMLINK_DIR/gzip --fast file ; $ZSTD_SYMLINK_DIR/gzip -d file.gz
11     $ZSTD_SYMLINK_DIR/gzip --best file ; $ZSTD_SYMLINK_DIR/gzip -d file.gz
12
13     # Test -n / --no-name: do not embed original filename in archive
14     $ZSTD_SYMLINK_DIR/gzip -n file           ; grep -qv file file.gz  ; $ZSTD_SYMLINK_DIR/gzip -d file.gz
15     $ZSTD_SYMLINK_DIR/gzip --no-name file    ; grep -qv file file.gz  ; $ZSTD_SYMLINK_DIR/gzip -d file.gz
16     $ZSTD_SYMLINK_DIR/gzip -c --no-name file | grep -qv file
17 fi