Hash :
378485b0
Author :
Date :
2016-06-16T10:52:57
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
#!/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