brotli/tests/compatibility_test.sh
Eugene Kliuchnikov 378485b097 Update build system. Now libraries are produced as build artifacts.
There are currently 3 ways to build:
* Easy: `./configure; make`
* Simple: use Bazel
* Portable: use premake5 to generate XCode / MSVS projects
2016-06-16 10:52:57 +02:00

22 lines
494 B
Bash
Executable File

#!/bin/bash
#
# Test that the brotli command-line tool can decompress old brotli-compressed
# files.
set -o errexit
BRO=../bin/bro
for file in testdata/*.compressed*; do
echo "Testing decompression of file $file"
expected=${file%.compressed*}
uncompressed=${expected}.uncompressed
$BRO -f -d -i $file -o $uncompressed
diff -q $uncompressed $expected
# Test the streaming version
cat $file | $BRO -d > $uncompressed
diff -q $uncompressed $expected
rm -f $uncompressed
done