From ac455c50f4c56f8695ad250a3c6a5968ac3eb5f6 Mon Sep 17 00:00:00 2001 From: Zoltan Szabadka Date: Mon, 17 Nov 2014 15:31:00 +0100 Subject: Improvements to the command-line tool. - Don't read the whole input to memory. - Support reading from stdin and writing to stdout. --- tests/compatibility_test.sh | 3 +++ tests/roundtrip_test.sh | 3 +++ 2 files changed, 6 insertions(+) (limited to 'tests') 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 -- cgit v1.1