]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
testsuite: also test xz compression
authorLucas De Marchi <lucas.demarchi@intel.com>
Sat, 30 Jan 2021 02:34:30 +0000 (18:34 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Sat, 6 Feb 2021 03:54:31 +0000 (19:54 -0800)
Reviewed-by: Petr Vorel <pvorel@suse.cz>
testsuite/populate-modules.sh

index ae43884984b842759fa5d9b0873957b52f12be61..099f02669156d339ceb6f3c7b63ec794e6e7aa15 100755 (executable)
@@ -72,6 +72,9 @@ map=(
 
 gzip_array=(
     "test-depmod/modules-order-compressed/lib/modules/4.4.4/kernel/drivers/block/cciss.ko"
+    )
+
+xz_array=(
     "test-depmod/modules-order-compressed/lib/modules/4.4.4/kernel/drivers/scsi/scsi_mod.ko"
     )
 
@@ -112,6 +115,12 @@ if feature_enabled ZLIB; then
        done
 fi
 
+if feature_enabled XZ; then
+       for m in "${xz_array[@]}"; do
+           xz "$ROOTFS/$m"
+       done
+fi
+
 if feature_enabled ZSTD; then
        for m in "${zstd_array[@]}"; do
            zstd --rm $ROOTFS/$m