]> git.ipfire.org Git - thirdparty/kmod.git/commit - testsuite/test-modprobe.c
testsuite: add test for kcmdline params with no value
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 6 Mar 2014 04:09:30 +0000 (01:09 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 6 Mar 2014 04:29:41 +0000 (01:29 -0300)
commit55bcc4a5bdb8cf9317de4420584f676515c1f763
tree9eeea880fc973ccf88da390f7d7244de50e075cb
parentaa878540e6f3825cd5cc86d0771e203a6da6231a
testsuite: add test for kcmdline params with no value

Use "modprobe -c" to dump the configuration. Since we configure our
rootfs to have only a /proc/cmdline file, this should dump the knowledge
we have from its parsed content.

Test if <module>.option, without any value is correctly parsed, as fixed
in commit 493dc65 ("libkmod: Fix getting param with no value from kcmdline")
testsuite/rootfs-pristine/test-modprobe/module-param-kcmdline2/correct.txt [new file with mode: 0644]
testsuite/rootfs-pristine/test-modprobe/module-param-kcmdline2/proc/cmdline [new file with mode: 0644]
testsuite/test-modprobe.c