PK APOCALYPSE V1

APOCALYPSE V1

Current Path : /opt/alt/tests/alt-php84-brotli_0.5.0-3.el8/brotli/tests/
Upload File :
Current File : //opt/alt/tests/alt-php84-brotli_0.5.0-3.el8/brotli/tests/compatibility_test.sh

#!/usr/bin/bash
#
# Test that the brotli command-line tool can decompress old brotli-compressed
# files.

set -o errexit

BROTLI=bin/brotli
TMP_DIR=bin/tmp

for file in tests/testdata/*.compressed*; do
  echo "Testing decompression of file $file"
  expected=${file%.compressed*}
  uncompressed=${TMP_DIR}/${expected##*/}.uncompressed
  echo $uncompressed
  $BROTLI $file -fdo $uncompressed
  diff -q $uncompressed $expected
  # Test the streaming version
  cat $file | $BROTLI -dc > $uncompressed
  diff -q $uncompressed $expected
  rm -f $uncompressed
done

if you don't want to be vaporized in a nuclear explosion, i simply have to become nuclear myself… i am atomic