testsuite: port alias-to-none test to module-playground

This commit is contained in:
Lucas De Marchi 2015-02-10 22:19:53 -02:00
parent 33c1185239
commit bf0b87f4e6
10 changed files with 5 additions and 7 deletions

View File

@ -30,6 +30,7 @@ map=(
["test-modprobe/force/lib/modules/4.4.4/kernel/"]="mod-simple.ko"
["test-modprobe/oldkernel/lib/modules/3.3.3/kernel/"]="mod-simple.ko"
["test-modprobe/oldkernel-force/lib/modules/3.3.3/kernel/"]="mod-simple.ko"
["test-modprobe/alias-to-none/lib/modules/4.4.4/kernel/"]="mod-simple.ko"
)
for k in ${!map[@]}; do

View File

@ -1 +1 @@
alias psmouse deaddood
alias mod-simple deaddood

View File

@ -1,3 +1 @@
# Aliases extracted from modules themselves.
alias serio:ty05pr*id*ex* psmouse
alias serio:ty01pr*id*ex* psmouse

View File

@ -1 +1 @@
kernel/drivers/input/mouse/psmouse.ko:
kernel/mod-simple.ko:

View File

@ -1,2 +1 @@
# Soft dependencies extracted from modules themselves.
# Copy, with a .conf extension, to /etc/modprobe.d to use it with modprobe.

View File

@ -75,7 +75,7 @@ static noreturn int modprobe_show_alias_to_none(const struct test *t)
const char *progname = ABS_TOP_BUILDDIR "/tools/modprobe";
const char *const args[] = {
progname,
"--show-depends", "--ignore-install", "--quiet", "psmouse",
"--show-depends", "--ignore-install", "--quiet", "mod-simple",
NULL,
};
@ -89,7 +89,7 @@ DEFINE_TEST(modprobe_show_alias_to_none,
[TC_ROOTFS] = TESTSUITE_ROOTFS "test-modprobe/alias-to-none",
},
.output = {
.out = TESTSUITE_ROOTFS "test-modprobe/alias-to-none/correct-psmouse.txt",
.out = TESTSUITE_ROOTFS "test-modprobe/alias-to-none/correct.txt",
},
.modules_loaded = "",
);