aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2024-02-13 22:38:58 +0800
committerJia Tan <jiat0218@gmail.com>2024-02-13 23:33:27 +0800
commit89ea1a22f4ed3685b053b7260bc5acf6c75d1664 (patch)
tree9c225592399dc4ba6335a2a7cc1bdd76b6bcefea
parentliblzma: Fix build error if only RISC-V BCJ filter is enabled. (diff)
downloadxz-89ea1a22f4ed3685b053b7260bc5acf6c75d1664.tar.xz
Tests: Add RISC-V filter support in a few places.
Diffstat (limited to '')
-rw-r--r--tests/test_filter_flags.c6
-rw-r--r--tests/test_filter_str.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_filter_flags.c b/tests/test_filter_flags.c
index 6d9f0b93..a8893239 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 15aee55a..c57473ae 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