testsuite: temporary drop cross compilation test, remove binaries

The idea behind the test is that modinfo should work with foreign
modules - be that CPU architecture, endianess, bit width or otherwise.

On the other hand, having binary modules baked into the repo isn't great
since they can may be outdated wrt their in-tree source code, may
trigger warnings by various tools (the Debian linter flags them as
"source-not-available") and in general it's better if they're actually
generated via the in-tree Makefile.arch file.

Remove the binaries and temporarily drop the tests. We'll add proper
cross-compilation and re-enable them at a later stage.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/86
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
This commit is contained in:
Emil Velikov 2024-09-02 18:58:35 +01:00 committed by Lucas De Marchi
parent b27aa3fb5a
commit b558d4279f
12 changed files with 7 additions and 24 deletions

View File

@ -223,9 +223,6 @@ EXTRA_DIST += \
testsuite/module-playground/mod-loop-k.c \
testsuite/module-playground/mod-loop.h \
testsuite/module-playground/mod-simple.c \
testsuite/module-playground/mod-simple-i386.ko \
testsuite/module-playground/mod-simple-sparc64.ko \
testsuite/module-playground/mod-simple-x86_64.ko \
testsuite/module-playground/mod-weakdep.c \
testsuite/module-playground/README

View File

@ -1,5 +1,4 @@
*.ko
!mod-simple-*.ko
.cache.mk
*.mod.c
.tmp_versions
@ -10,6 +9,3 @@
modules.order
Module.symvers
mod-simple-x86_64.c
mod-simple-i386.c
mod-simple-sparc64.c

View File

@ -54,7 +54,7 @@ KDIR ?= $(module_prefix)/lib/modules/`uname -r`/build
ARCH_SPECIFIC_MODULES := mod-simple-x86_64.ko mod-simple-i386.ko mod-simple-sparc64.ko
MY_MODULES := $(filter-out $(ARCH_SPECIFIC_MODULES),$(wildcard *.ko))
default: modules arch-modules
default: modules
mod-simple-%.ko: mod-simple-%.c Makefile.arch
$(eval arch=$(patsubst mod-simple-%.ko,%,$@))

View File

@ -1,3 +1 @@
Lucas De Marchi <lucas.demarchi@intel.com>
Lucas De Marchi <lucas.demarchi@intel.com>
Lucas De Marchi <lucas.demarchi@intel.com>

View File

@ -1,3 +1 @@
/mod-simple-i386.ko
/mod-simple-x86_64.ko
/mod-simple-sparc64.ko
/mod-simple.ko

View File

@ -1,4 +1,2 @@
LGPL
LGPL
LGPL
GPL

View File

@ -102,9 +102,8 @@ map=(
["test-depmod/modules-outdir$MODULE_DIRECTORY/4.4.4/kernel/drivers/block/cciss.ko"]="mod-fake-cciss.ko"
["test-depmod/modules-outdir$MODULE_DIRECTORY/4.4.4/kernel/drivers/scsi/hpsa.ko"]="mod-fake-hpsa.ko"
["test-depmod/modules-outdir$MODULE_DIRECTORY/4.4.4/kernel/drivers/scsi/scsi_mod.ko"]="mod-fake-scsi-mod.ko"
["test-modinfo/mod-simple-i386.ko"]="mod-simple-i386.ko"
["test-modinfo/mod-simple-x86_64.ko"]="mod-simple-x86_64.ko"
["test-modinfo/mod-simple-sparc64.ko"]="mod-simple-sparc64.ko"
# TODO: add cross-compiled modules to the test
["test-modinfo/mod-simple.ko"]="mod-simple.ko"
["test-modinfo/mod-simple-sha1.ko"]="mod-simple.ko"
["test-modinfo/mod-simple-sha256.ko"]="mod-simple.ko"
["test-modinfo/mod-simple-pkcs7.ko"]="mod-simple.ko"

View File

@ -35,11 +35,10 @@ DEFINE_TEST(test_modinfo_##_field, \
.out = TESTSUITE_ROOTFS "test-modinfo/correct-" #_field #_flavor ".txt", \
})
/* TODO: add cross-compiled modules to the test */
#define DEFINE_MODINFO_GENERIC_TEST(_field) \
DEFINE_MODINFO_TEST(_field, , \
"/mod-simple-i386.ko", \
"/mod-simple-x86_64.ko", \
"/mod-simple-sparc64.ko")
"/mod-simple.ko")
#ifdef ENABLE_OPENSSL
#define DEFINE_MODINFO_SIGN_TEST(_field) \