diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-10-31 17:28:13 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-10-31 17:28:13 +0100 |
commit | aa40b96c1add88b26be2056322b6ef31b143b02a (patch) | |
tree | 48c4e0f7008697e5cf8d318352c2dfba2cfc4b74 /tests | |
parent | f4348c0153a743044167cf738792634bf060c63a (diff) |
Fix the canterbury corpus test
The message listing the compressors has changed. We need a new pattern
to extract the supported compressors.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/cantrbry.sh.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/cantrbry.sh.in b/tests/cantrbry.sh.in index d3ab459..2466959 100755 --- a/tests/cantrbry.sh.in +++ b/tests/cantrbry.sh.in @@ -10,8 +10,9 @@ if [ ! -f "$TAR2SQFS" -a -f "${TAR2SQFS}.exe" ]; then TAR2SQFS="${TAR2SQFS}.exe" fi -COMPRESSORS=$("$TAR2SQFS" --help | tr -d '\015' |\ - awk '/Available compressors:/,EOF' | sed -n '/\t/p') +COMPRESSORS=$("$TAR2SQFS" --help | grep $'\t' | sed 's/ (default)//' | \ + tr -d '\011' | sort | uniq | sed '/uncompressed/d' | \ + sed '/bzip2/d') for size in 4k 8k 16k 32k 64k 128k 256k 512k 1M; do for cmp in $COMPRESSORS; do |