From 89ea1a22f4ed3685b053b7260bc5acf6c75d1664 Mon Sep 17 00:00:00 2001 From: Jia Tan Date: Tue, 13 Feb 2024 22:38:58 +0800 Subject: [PATCH] Tests: Add RISC-V filter support in a few places. --- tests/test_filter_flags.c | 6 ++++++ tests/test_filter_str.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/tests/test_filter_flags.c b/tests/test_filter_flags.c index 6d9f0b932..a88932396 100644 --- a/tests/test_filter_flags.c +++ b/tests/test_filter_flags.c @@ -48,6 +48,9 @@ static lzma_filter bcj_filters_encoders[] = { #ifdef HAVE_ENCODER_SPARC { LZMA_FILTER_SPARC, NULL }, #endif +#ifdef HAVE_ENCODER_RISCV + { LZMA_FILTER_RISCV, NULL }, +#endif }; // HAVE_ENCODERS ifdef not terminated here because decoders are @@ -77,6 +80,9 @@ static lzma_filter bcj_filters_decoders[] = { #ifdef HAVE_DECODER_SPARC { LZMA_FILTER_SPARC, NULL }, #endif +#ifdef HAVE_DECODER_RISCV + { LZMA_FILTER_RISCV, NULL }, +#endif }; #endif #endif diff --git a/tests/test_filter_str.c b/tests/test_filter_str.c index 15aee55ab..c57473aea 100644 --- a/tests/test_filter_str.c +++ b/tests/test_filter_str.c @@ -466,6 +466,9 @@ static const char supported_decoders[][9] = { #ifdef HAVE_DECODER_ARM64 "arm64", #endif +#ifdef HAVE_DECODER_RISCV + "riscv", +#endif #ifdef HAVE_DECODER_DELTA "delta", #endif @@ -494,6 +497,9 @@ static const char supported_filters[][9] = { #if defined(HAVE_ENCODER_ARM64) || defined(HAVE_DECODER_ARM64) "arm64", #endif +#if defined(HAVE_ENCODER_RISCV) || defined(HAVE_DECODER_RISCV) + "riscv", +#endif #if defined(HAVE_ENCODER_DELTA) || defined(HAVE_DECODER_DELTA) "delta", #endif