summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorTorge Matthies <openglfreak@googlemail.com>2020-09-08 21:59:20 +0200
committerLucas De Marchi <lucas.demarchi@intel.com>2020-09-10 21:55:01 -0700
commit3821e1971ec53fabbbb9f2679ea988ee12db61c8 (patch)
tree0af3bd902300467b35af96f38e8c135e6a7dd122 /testsuite
parentf5434cf5fc5b567359e1b9207bbab24c6782cfbd (diff)
downloadkmod-3821e1971ec53fabbbb9f2679ea988ee12db61c8.tar.gz
kmod-3821e1971ec53fabbbb9f2679ea988ee12db61c8.tar.bz2
kmod-3821e1971ec53fabbbb9f2679ea988ee12db61c8.zip
add Zstandard compression support
I changed the style of the hackargs variable in autogen.sh to multiline because said line was becoming a bit long with the new --with-zstd arg added. A previous version of this patch has been running on my two Arch Linux installations (with an accompanying mkinitcpio patch) for several months over many kernel updates without any issues. Any additional testing and/or patch review would of course be appreciated. Signed-off-by: Torge Matthies <openglfreak@googlemail.com>
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/mkosi/mkosi.fedora1
-rw-r--r--testsuite/test-util.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/mkosi/mkosi.fedora b/testsuite/mkosi/mkosi.fedora
index 5252f87..7a2ee5e 100644
--- a/testsuite/mkosi/mkosi.fedora
+++ b/testsuite/mkosi/mkosi.fedora
@@ -19,6 +19,7 @@ BuildPackages =
make
pkgconf-pkg-config
xml-common
+ libzstd-devel
xz-devel
zlib-devel
openssl-devel
diff --git a/testsuite/test-util.c b/testsuite/test-util.c
index 5e25e58..621446b 100644
--- a/testsuite/test-util.c
+++ b/testsuite/test-util.c
@@ -157,6 +157,9 @@ static int test_path_ends_with_kmod_ext(const struct test *t)
#ifdef ENABLE_XZ
{ "/bla.ko.xz", true },
#endif
+#ifdef ENABLE_ZSTD
+ { "/bla.ko.zst", true },
+#endif
{ "/bla.ko.x", false },
{ "/bla.ko.", false },
{ "/bla.koz", false },