mirror of
https://github.com/google/brotli.git
synced 2024-11-22 11:40:06 +00:00
378485b097
There are currently 3 ways to build: * Easy: `./configure; make` * Simple: use Bazel * Portable: use premake5 to generate XCode / MSVS projects
22 lines
494 B
Bash
Executable File
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
|
|
|