Add test for simple search order in depmod
diff --git a/testsuite/test-depmod.c b/testsuite/test-depmod.c
index e21b4f0..fe1d502 100644
--- a/testsuite/test-depmod.c
+++ b/testsuite/test-depmod.c
@@ -54,9 +54,36 @@
 		},
 	});
 
+#define SEARCH_ORDER_SIMPLE_ROOTFS TESTSUITE_ROOTFS "test-depmod/search-order-simple"
+static noreturn int depmod_search_order_simple(const struct test *t)
+{
+	const char *progname = ABS_TOP_BUILDDIR "/tools/depmod";
+	const char *const args[] = {
+		progname,
+		NULL,
+	};
+
+	test_spawn_prog(progname, args);
+	exit(EXIT_FAILURE);
+}
+static DEFINE_TEST(depmod_search_order_simple,
+	.description = "check if depmod honor search order in config",
+	.config = {
+		[TC_UNAME_R] = "4.4.4",
+		[TC_ROOTFS] = SEARCH_ORDER_SIMPLE_ROOTFS,
+	},
+	.output = {
+		.files = (const struct keyval[]) {
+			{ SEARCH_ORDER_SIMPLE_ROOTFS "/lib/modules/4.4.4/correct-modules.dep",
+			  SEARCH_ORDER_SIMPLE_ROOTFS "/lib/modules/4.4.4/modules.dep" },
+			{ }
+		},
+	});
+
 
 static const struct test *tests[] = {
 	&sdepmod_modules_order_for_compressed,
+	&sdepmod_search_order_simple,
 	NULL,
 };