Skip to content

Commit

Permalink
testsuite: Check cmdline for multiple blacklist
Browse files Browse the repository at this point in the history
Make sure this (undocumented) behavior doesn't change in future.
Multiple blacklist append to the config.

Signed-off-by: Lucas De Marchi <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Link: #254
  • Loading branch information
lucasdemarchi committed Nov 29, 2024
1 parent 7cbefe7 commit 2e18d72
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blacklist foo
blacklist bar
blacklist foo2
blacklist bar2
blacklist foobar

# End of configuration files. Dumping indexes now:

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
modprobe.blacklist=foo,bar modprobe.blacklist=foo2 quiet modprobe.blacklist=bar2 rw modprobe.blacklist=foobar
10 changes: 10 additions & 0 deletions testsuite/test-modprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,16 @@ DEFINE_TEST_WITH_FUNC(modprobe_param_kcmdline8, modprobe_param_kcmdline,
},
.output = {
.out = TESTSUITE_ROOTFS "test-modprobe/module-param-kcmdline8/correct.txt",
});

DEFINE_TEST_WITH_FUNC(modprobe_param_kcmdline9, modprobe_param_kcmdline,
.description = "check if multiple blacklists are parsed correctly",
.config = {
[TC_UNAME_R] = "4.4.4",
[TC_ROOTFS] = TESTSUITE_ROOTFS "test-modprobe/module-param-kcmdline9",
},
.output = {
.out = TESTSUITE_ROOTFS "test-modprobe/module-param-kcmdline9/correct.txt",
},
.modules_loaded = "",
);
Expand Down

0 comments on commit 2e18d72

Please sign in to comment.