summaryrefslogtreecommitdiff
path: root/tests/cantrbry.sh.in
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-10-31 17:28:13 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-10-31 17:28:13 +0100
commitaa40b96c1add88b26be2056322b6ef31b143b02a (patch)
tree48c4e0f7008697e5cf8d318352c2dfba2cfc4b74 /tests/cantrbry.sh.in
parentf4348c0153a743044167cf738792634bf060c63a (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/cantrbry.sh.in')
-rwxr-xr-xtests/cantrbry.sh.in5
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