summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorge Matthies <openglfreak@googlemail.com>2020-09-08 21:59:21 +0200
committerLucas De Marchi <lucas.demarchi@intel.com>2020-09-10 21:55:01 -0700
commit2e4ef3da550a63f9bdef30acbafa9cb2e98b9259 (patch)
treed4d8afdaa1984eedc14d0caa34bc3c0b06e1c02c
parent3821e1971ec53fabbbb9f2679ea988ee12db61c8 (diff)
downloadkmod-2e4ef3da550a63f9bdef30acbafa9cb2e98b9259.tar.gz
kmod-2e4ef3da550a63f9bdef30acbafa9cb2e98b9259.tar.bz2
kmod-2e4ef3da550a63f9bdef30acbafa9cb2e98b9259.zip
testsuite: add test for zstd-compressed module
I took away one module from the gzip-compressed modules for this purpose. Signed-off-by: Torge Matthies <openglfreak@googlemail.com>
-rwxr-xr-xtestsuite/populate-modules.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/testsuite/populate-modules.sh b/testsuite/populate-modules.sh
index 5140f7a..358e740 100755
--- a/testsuite/populate-modules.sh
+++ b/testsuite/populate-modules.sh
@@ -66,10 +66,13 @@ map=(
gzip_array=(
"test-depmod/modules-order-compressed/lib/modules/4.4.4/kernel/drivers/block/cciss.ko"
- "test-depmod/modules-order-compressed/lib/modules/4.4.4/kernel/drivers/scsi/hpsa.ko"
"test-depmod/modules-order-compressed/lib/modules/4.4.4/kernel/drivers/scsi/scsi_mod.ko"
)
+zstd_array=(
+ "test-depmod/modules-order-compressed/lib/modules/4.4.4/kernel/drivers/scsi/hpsa.ko"
+ )
+
attach_sha256_array=(
"test-modinfo/mod-simple-sha256.ko"
)
@@ -101,6 +104,11 @@ for m in "${gzip_array[@]}"; do
gzip $ROOTFS/$m
done
+# zstd-compress these modules
+for m in "${zstd_array[@]}"; do
+ zstd --rm $ROOTFS/$m
+done
+
for m in "${attach_sha1_array[@]}"; do
cat ${MODULE_PLAYGROUND}/dummy.sha1 >> ${ROOTFS}/$m
done