testsuite: add test for '.' correctly parsed in param's value
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 6 Mar 2014 04:36:02 +0000 (01:36 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 6 Mar 2014 04:36:02 +0000 (01:36 -0300)
commit49776627e60f2718c9511569e73e4d671065dd61
treed8f6c05ad045fef7866b022fb39ef1968535caf0
parent42149024828509d93dd7d93464ac96b040160ba1
testsuite: add test for '.' correctly parsed in param's value

In kcmdline it's possible to have a dot in the param's value. The
support for this was added in 66f3228 ("libkmod: Add support for '.' in
module parameter on kcmdline") and is needed to correctly support some
modules that depend on it.

This test was added in order to make sure the commit  aa87854
("libkmod-config: Only match dot before '=' in /proc/cmdline") didn't
break it. Although that commit  message says it's allowing to match a
dot before '=' it's actually enforcing the first part of the string to
be always in the format "<module-name>.param". Dots after '=' are still
correctly allowed.
testsuite/rootfs-pristine/test-modprobe/module-param-kcmdline4/correct.txt [new file with mode: 0644]
testsuite/rootfs-pristine/test-modprobe/module-param-kcmdline4/proc/cmdline [new file with mode: 0644]
testsuite/test-modprobe.c