From 44ff2fa5c94dc345c4dd69195a19fc5238df60b3 Mon Sep 17 00:00:00 2001 From: Jia Tan Date: Tue, 23 Jan 2024 23:50:57 +0800 Subject: [PATCH] Tests: Skip RISC-V test files if decoder was not built. --- tests/test_files.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_files.sh b/tests/test_files.sh index b1505f7b..12f71f3a 100755 --- a/tests/test_files.sh +++ b/tests/test_files.sh @@ -80,6 +80,11 @@ do have_feature DECODER_ARM64 "$I" || continue ;; esac + case $I in + */good-1-riscv-lzma2-*.xz) + have_feature DECODER_RISCV "$I" || continue + ;; + esac if test -z "$XZ" || "$XZ" $NO_WARN -dc "$I" > /dev/null; then :