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>
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
*.ko
-!mod-simple-*.ko
.cache.mk
*.mod.c
.tmp_versions
modules.order
Module.symvers
-mod-simple-x86_64.c
-mod-simple-i386.c
-mod-simple-sparc64.c
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,%,$@))
Lucas De Marchi <lucas.demarchi@intel.com>
-Lucas De Marchi <lucas.demarchi@intel.com>
-Lucas De Marchi <lucas.demarchi@intel.com>
-/mod-simple-i386.ko
-/mod-simple-x86_64.ko
-/mod-simple-sparc64.ko
+/mod-simple.ko
["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"
.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) \