diff options
author | Zoltan Szabadka <szabadka@google.com> | 2014-11-17 15:31:00 +0100 |
---|---|---|
committer | Zoltan Szabadka <szabadka@google.com> | 2014-11-17 15:31:00 +0100 |
commit | ac455c50f4c56f8695ad250a3c6a5968ac3eb5f6 (patch) | |
tree | 33a6c96c64c1d21fce8e91df26d5e7625d5316b7 /tests | |
parent | e1739826c04a9944672b99b98249dda021bdeb36 (diff) | |
download | brotli-ac455c50f4c56f8695ad250a3c6a5968ac3eb5f6.zip brotli-ac455c50f4c56f8695ad250a3c6a5968ac3eb5f6.tar.gz brotli-ac455c50f4c56f8695ad250a3c6a5968ac3eb5f6.tar.bz2 |
Improvements to the command-line tool.
- Don't read the whole input to memory.
- Support reading from stdin and writing to stdout.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/compatibility_test.sh | 3 | ||||
-rwxr-xr-x | tests/roundtrip_test.sh | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/compatibility_test.sh b/tests/compatibility_test.sh index 5040bd4..a3135aa 100755 --- a/tests/compatibility_test.sh +++ b/tests/compatibility_test.sh @@ -19,5 +19,8 @@ for file in $INPUTS; do expected=${file%.compressed} $BRO -f -d -i $file -o $uncompressed diff -q $uncompressed $expected + # Test the streaming version + cat $file | $BRO -d > $uncompressed + diff -q $uncompressed $expected done diff --git a/tests/roundtrip_test.sh b/tests/roundtrip_test.sh index 3edb054..3dd284b 100755 --- a/tests/roundtrip_test.sh +++ b/tests/roundtrip_test.sh @@ -23,4 +23,7 @@ for file in $INPUTS; do $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 done |