testsuite: add test for empty modules.builtin.aliases.bin

This commit is contained in:
Lucas De Marchi 2020-12-18 08:02:09 -08:00
parent e4a72e4754
commit 30c9c4d90f
12 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1 @@
# Aliases extracted from modules themselves.

View File

@ -0,0 +1 @@
# Device nodes to trigger on-demand module loading.

View File

@ -0,0 +1 @@
# Soft dependencies extracted from modules themselves.

View File

@ -0,0 +1 @@
# Aliases for symbols, used by symbol_request().

View File

@ -52,13 +52,20 @@ static noreturn int test_load_resources(const struct test *t)
exit(EXIT_SUCCESS);
}
DEFINE_TEST(test_load_resources,
.description = "test if kmod_load_resources works",
.description = "test if kmod_load_resources works (recent modprobe on kernel without modules.builtin.modinfo)",
.config = {
[TC_ROOTFS] = TESTSUITE_ROOTFS "test-init-load-resources/",
[TC_UNAME_R] = "5.6.0",
},
.need_spawn = true);
DEFINE_TEST(test_load_resources,
.description = "test if kmod_load_resources works with empty modules.builtin.aliases.bin (recent depmod on kernel without modules.builtin.modinfo)",
.config = {
[TC_ROOTFS] = TESTSUITE_ROOTFS "test-init-load-resources-empty-builtin-aliases-bin/",
[TC_UNAME_R] = "5.6.0",
},
.need_spawn = true);
static noreturn int test_initlib(const struct test *t)
{