From aa40b96c1add88b26be2056322b6ef31b143b02a Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 31 Oct 2020 17:28:13 +0100 Subject: 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 --- tests/cantrbry.sh.in | 5 +++-- 1 file 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 -- cgit v1.2.3