Discussion:
[PATCH 1/3] testsuite: Do not run tests with *.ko.gz if zlib is not enabled
Michal Marek
2014-04-04 09:32:14 UTC
Permalink
Unfortunately, all the depmod tests depend on zlib.
---
testsuite/test-depmod.c | 2 ++
testsuite/test-modprobe.c | 2 ++
2 files changed, 4 insertions(+)

diff --git a/testsuite/test-depmod.c b/testsuite/test-depmod.c
index b6023f1..86e89a4 100644
--- a/testsuite/test-depmod.c
+++ b/testsuite/test-depmod.c
@@ -135,10 +135,12 @@ static DEFINE_TEST(depmod_search_order_same_prefix2,


static const struct test *tests[] = {
+#ifdef ENABLE_ZLIB
&sdepmod_modules_order_for_compressed,
&sdepmod_search_order_simple,
&sdepmod_search_order_same_prefix,
&sdepmod_search_order_same_prefix2,
+#endif
NULL,
};

diff --git a/testsuite/test-modprobe.c b/testsuite/test-modprobe.c
index d7663e6..c49e75b 100644
--- a/testsuite/test-modprobe.c
+++ b/testsuite/test-modprobe.c
@@ -332,7 +332,9 @@ static const struct test *tests[] = {
&smodprobe_show_alias_to_none,
&smodprobe_builtin,
&smodprobe_softdep_loop,
+#ifdef ENABLE_ZLIB
&smodprobe_install_cmd_loop,
+#endif
&smodprobe_param_kcmdline,
&smodprobe_param_kcmdline2,
&smodprobe_param_kcmdline3,
--
1.8.4.5
Loading...