]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Tests: Use new --filters option in test_compress.sh
authorJia Tan <jiat0218@gmail.com>
Thu, 5 Jan 2023 16:03:35 +0000 (00:03 +0800)
committerJia Tan <jiat0218@gmail.com>
Mon, 17 Jul 2023 15:34:55 +0000 (23:34 +0800)
tests/test_compress.sh

index 0aa81001862ed971e745b036c5490ce4865f1257..46244cc6cdf652a1f60105862b3f0f2397c4a08e 100755 (executable)
@@ -133,17 +133,17 @@ test_filter()
        grep "define HAVE_ENCODER_$1 1" ../config.h > /dev/null || return
        grep "define HAVE_DECODER_$1 1" ../config.h > /dev/null || return
        shift
-       test_xz "$@" --lzma2=dict=64KiB,nice=32,mode=fast
+       test_xz --filters="$* lzma2:dict=64KiB,nice=32,mode=fast"
 }
 
-test_filter DELTA --delta=dist=1
-test_filter DELTA --delta=dist=4
-test_filter DELTA --delta=dist=256
-test_filter X86 --x86
-test_filter POWERPC --power
-test_filter IA64 --ia64
-test_filter ARM --arm
-test_filter ARMTHUMB --armthumb
-test_filter SPARC --sparc
+test_filter DELTA delta:dist=1
+test_filter DELTA delta:dist=4
+test_filter DELTA delta:dist=256
+test_filter X86 x86
+test_filter POWERPC powerpc
+test_filter IA64 ia64
+test_filter ARM arm
+test_filter ARMTHUMB armthumb
+test_filter SPARC sparc
 
 exit 0