aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorZoltan Szabadka <szabadka@google.com>2015-05-11 14:14:05 +0200
committerZoltan Szabadka <szabadka@google.com>2015-05-11 14:14:05 +0200
commit8d83839ac265fedbac288b8f9c6e263d05282234 (patch)
tree5cbfbb03e64a4d4a0a3dc670950d79993f1e6e91 /tests
parent463ceda563f3524deae2884c2270d4be3b5dc2a5 (diff)
downloadbrotli-8d83839ac265fedbac288b8f9c6e263d05282234.zip
brotli-8d83839ac265fedbac288b8f9c6e263d05282234.tar.gz
brotli-8d83839ac265fedbac288b8f9c6e263d05282234.tar.bz2
Expose the quality parameter to the bro.cc tool.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/roundtrip_test.sh20
1 files changed, 11 insertions, 9 deletions
diff --git a/tests/roundtrip_test.sh b/tests/roundtrip_test.sh
index 3dd284b..9b05fce 100755
--- a/tests/roundtrip_test.sh
+++ b/tests/roundtrip_test.sh
@@ -17,13 +17,15 @@ $BRO
"""
for file in $INPUTS; do
- echo "Roundtrip testing $file"
- compressed=${file}.bro
- uncompressed=${file}.unbro
- $BRO -f -i $file -o $compressed
- $BRO -f -d -i $compressed -o $uncompressed
- diff -q $file $uncompressed
- # Test the streaming version
- cat $file | $BRO | $BRO -d >$uncompressed
- diff -q $file $uncompressed
+ for quality in 1 6 9 11; do
+ echo "Roundtrip testing $file at quality $quality"
+ compressed=${file}.bro
+ uncompressed=${file}.unbro
+ $BRO -f -q $quality -i $file -o $compressed
+ $BRO -f -d -i $compressed -o $uncompressed
+ diff -q $file $uncompressed
+ # Test the streaming version
+ cat $file | $BRO -q $quality | $BRO -d >$uncompressed
+ diff -q $file $uncompressed
+ done
done