]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
testsuite: temporary drop cross compilation test, remove binaries
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 2 Sep 2024 17:58:35 +0000 (18:58 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 3 Sep 2024 01:12:33 +0000 (20:12 -0500)
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>
12 files changed:
Makefile.am
testsuite/module-playground/.gitignore
testsuite/module-playground/Makefile
testsuite/module-playground/mod-simple-i386.ko [deleted file]
testsuite/module-playground/mod-simple-sparc64.ko [deleted file]
testsuite/module-playground/mod-simple-x86_64.ko [deleted file]
testsuite/rootfs-pristine/test-modinfo/correct-author.txt
testsuite/rootfs-pristine/test-modinfo/correct-depends.txt
testsuite/rootfs-pristine/test-modinfo/correct-filename.txt
testsuite/rootfs-pristine/test-modinfo/correct-license.txt
testsuite/setup-rootfs.sh
testsuite/test-modinfo.c

index 5cd2f7fd88b1b2b0d6f3a912d7175c0c75adce39..0508f6ea9f129ad2fdf46dde351a090af700a566 100644 (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
 
index 98d47843cc9de63d60d4aefa4737785fb4c2d065..e4d99cf7e28f27424a6d3bb007371853f546fe6b 100644 (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
index c0454fd2f791a56c7e9c228d24c89a7396b28c56..160307cbca5a5496b72f12d4858f5e6a80791fbe 100644 (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,%,$@))
diff --git a/testsuite/module-playground/mod-simple-i386.ko b/testsuite/module-playground/mod-simple-i386.ko
deleted file mode 100644 (file)
index 9bce6e0..0000000
Binary files a/testsuite/module-playground/mod-simple-i386.ko and /dev/null differ
diff --git a/testsuite/module-playground/mod-simple-sparc64.ko b/testsuite/module-playground/mod-simple-sparc64.ko
deleted file mode 100644 (file)
index 17242c8..0000000
Binary files a/testsuite/module-playground/mod-simple-sparc64.ko and /dev/null differ
diff --git a/testsuite/module-playground/mod-simple-x86_64.ko b/testsuite/module-playground/mod-simple-x86_64.ko
deleted file mode 100644 (file)
index 0159b99..0000000
Binary files a/testsuite/module-playground/mod-simple-x86_64.ko and /dev/null differ
index b74c9bf529a969f319e53a7a8bb5aac473f4b198..24f14143244706f5c6eff694a6ef0dccec784d6e 100644 (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>
index bcd47c0406aabcefb6b34ccdf835f3e50a89759b..fe68a0cc60cd19db9a32471067e1705800563d8a 100644 (file)
@@ -1,3 +1 @@
-/mod-simple-i386.ko
-/mod-simple-x86_64.ko
-/mod-simple-sparc64.ko
+/mod-simple.ko
index f79931d67e875066245486325f7bf2b47fffddc0..3faea228bfef9745bc6cccaaf526e7e67f1be311 100644 (file)
@@ -1,4 +1,2 @@
-LGPL
-LGPL
-LGPL
+GPL
 
index f9c2bbe7989a5ed5864cf0333018682f3359a9ce..bd36d9ca9987888fc3b4b837f5504a745be10ee2 100755 (executable)
@@ -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"
index ab161ec4916b0ed1800442c3a0b95bc28ed6ce14..8b7c050ec9a0c4f4845969865cf16734132463b2 100644 (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) \