mirror of
https://github.com/AuxXxilium/kmod.git
synced 2025-02-24 03:11:31 +07:00
testsuite: port alias-to-none test to module-playground
This commit is contained in:
parent
33c1185239
commit
bf0b87f4e6
@ -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
|
||||
|
@ -1 +1 @@
|
||||
alias psmouse deaddood
|
||||
alias mod-simple deaddood
|
||||
|
Binary file not shown.
@ -1,3 +1 @@
|
||||
# Aliases extracted from modules themselves.
|
||||
alias serio:ty05pr*id*ex* psmouse
|
||||
alias serio:ty01pr*id*ex* psmouse
|
||||
|
Binary file not shown.
@ -1 +1 @@
|
||||
kernel/drivers/input/mouse/psmouse.ko:
|
||||
kernel/mod-simple.ko:
|
||||
|
Binary file not shown.
@ -1,2 +1 @@
|
||||
# Soft dependencies extracted from modules themselves.
|
||||
# Copy, with a .conf extension, to /etc/modprobe.d to use it with modprobe.
|
||||
|
@ -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 = "",
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user