kmod/testsuite/rootfs-pristine/test-modprobe
Lucas De Marchi d3a1fe67b6 libkmod-config: re-quote option from kernel cmdline
It was reported that grub mangles the kernel cmdline. It turns

	acpi_cpufreq.dyndbg="file drivers/cpufreq/acpi-cpufreq.c +mpf"

	into

	"acpi_cpufreq.dyndbg=file drivers/cpufreq/acpi-cpufreq.c +mpf"

However, even though we could blame grub for doing that, the kernel
happily accepts and re-quotes it when the module is built-in.
So, it's better if kmod also understands it this way and does the same.

Here we basically add additional code to un-mangle it, moving the quote
in way that is acceptable to pass through init_module(). Note that the
interface [f]init_module() gives us mandates the quote to be part of the
value: the module name is not passed and the options are separated by
space.

Reported-by: Jiri Slaby <jirislaby@kernel.org>
Tested-by: Jessica Yu <jeyu@kernel.org>
Link: https://bugzilla.suse.com/show_bug.cgi?id=1181111#c10
2021-02-15 11:53:43 -08:00
..
alias-to-none testsuite: port alias-to-none test to module-playground 2015-02-10 22:19:53 -02:00
builtin testsuite: add test for modprobe -R <builtin-module> 2015-02-28 14:18:54 -03:00
external testsuite: add tests for external directory support 2017-06-01 20:31:37 -07:00
force testsuite: port modprobe --force test to module-playground 2015-02-10 22:01:42 -02:00
install-cmd-loop testsuite: port install-cmd-loop test to module-playground 2015-02-11 02:50:06 -02:00
module-param-kcmdline testsuite: port kcmdline test to module-playground 2015-02-11 02:59:08 -02:00
module-param-kcmdline2 testsuite: add test for kcmdline params with no value 2014-03-06 01:29:41 -03:00
module-param-kcmdline3 testsuite: add test to ignore unrelated strings in kcmdline 2014-03-06 01:30:56 -03:00
module-param-kcmdline4 testsuite: add test for '.' correctly parsed in param's value 2014-03-06 01:36:02 -03:00
module-param-kcmdline5 libkmod-config: fix parsing quoted kernel cmdline on params 2017-02-16 09:18:35 -08:00
module-param-kcmdline6 testsuite: check for ill-formed kcmdline 2020-03-13 09:23:58 -07:00
module-param-kcmdline7 libkmod-config: re-quote option from kernel cmdline 2021-02-15 11:53:43 -08:00
module-param-kcmdline8 libkmod-config: re-quote option from kernel cmdline 2021-02-15 11:53:43 -08:00
oldkernel testsuite: port tests without finit_module() to module-playground 2015-02-10 22:11:25 -02:00
oldkernel-force testsuite: port tests without finit_module() to module-playground 2015-02-10 22:11:25 -02:00
show-depends testsuite: port show-depends tests to module-playground 2015-02-10 09:30:49 -02:00
show-exports testsuite: move --show-exports test to use regex 2019-01-03 12:43:18 -08:00
softdep-loop testsuite: port softdep-loop test to module-playground 2015-02-10 21:45:09 -02:00