testsuite: port kcmdline test to module-playground

This commit is contained in:
Lucas De Marchi 2015-02-11 02:59:08 -02:00
parent 621ac887e7
commit 246d67d493
10 changed files with 5 additions and 7 deletions

View File

@ -33,6 +33,7 @@ map=(
["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"
["test-modprobe/module-param-kcmdline/lib/modules/4.4.4/kernel/"]="mod-simple.ko"
)
for k in ${!map[@]}; do

View File

@ -1 +1 @@
insmod /lib/modules/4.4.4/kernel/drivers/input/mouse/psmouse.ko foo bar=1
insmod /lib/modules/4.4.4/kernel/mod-simple.ko foo bar=1

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

@ -1 +1 @@
initrd=\initramfs-linux.img psmouse.foo psmouse.bar=1 root=/dev/sda2 rootfstype=ext4 add_efi_memmap quiet rw
initrd=\initramfs-linux.img mod_simple.foo mod_simple.bar=1 root=/dev/sda2 rootfstype=ext4 add_efi_memmap quiet rw

View File

@ -167,7 +167,7 @@ static noreturn int modprobe_param_kcmdline(const struct test *t)
const char *progname = ABS_TOP_BUILDDIR "/tools/modprobe";
const char *const args[] = {
progname,
"--show-depends", "psmouse",
"--show-depends", "mod-simple",
NULL,
};