]> git.ipfire.org Git - thirdparty/kmod.git/commit
testsuite: Test that modprobe --show-depends doesn't load module
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Thu, 21 Nov 2024 14:19:08 +0000 (08:19 -0600)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 29 Nov 2024 13:59:06 +0000 (07:59 -0600)
commit9badf04e213a8a37e8e444390f15edb6cfe0e5eb
treeb1d5e8ca587ae0cd78dd9654fb7afa3e31fb016d
parent58d67284a219b40b82d2b363a0d261d48f2f79f0
testsuite: Test that modprobe --show-depends doesn't load module

Remove /proc/modules and /sys/module/* from the show-depends rootfs
since they shouldn't be there and add a test to make sure no module is
loaded.

Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/254
testsuite/rootfs-pristine/test-modprobe/show-depends/proc/modules
testsuite/rootfs-pristine/test-modprobe/show-depends/sys/module/mod_loop_a/initstate [deleted file]
testsuite/rootfs-pristine/test-modprobe/show-depends/sys/module/mod_loop_b/initstate [deleted file]
testsuite/test-modprobe.c