summaryrefslogtreecommitdiff
path: root/testsuite/test-modprobe.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/test-modprobe.c')
-rw-r--r--testsuite/test-modprobe.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/test-modprobe.c b/testsuite/test-modprobe.c
index e0dd199..ee9d82d 100644
--- a/testsuite/test-modprobe.c
+++ b/testsuite/test-modprobe.c
@@ -371,4 +371,26 @@ DEFINE_TEST(modprobe_oldkernel_force,
.modules_loaded = "mod-simple",
);
+static noreturn int modprobe_external(const struct test *t)
+{
+ const char *progname = ABS_TOP_BUILDDIR "/tools/modprobe";
+ const char *const args[] = {
+ progname,
+ "mod-simple",
+ NULL,
+ };
+
+ test_spawn_prog(progname, args);
+ exit(EXIT_FAILURE);
+}
+DEFINE_TEST(modprobe_external,
+ .description = "check modprobe able to load external module",
+ .config = {
+ [TC_UNAME_R] = "4.4.4",
+ [TC_ROOTFS] = TESTSUITE_ROOTFS "test-modprobe/external",
+ [TC_INIT_MODULE_RETCODES] = "",
+ },
+ .modules_loaded = "mod-simple",
+ );
+
TESTSUITE_MAIN();