~registry/kmod/master

« back to all changes in this revision

Viewing changes to testsuite/test-depmod.c

  • Committer: Lucas De Marchi
  • Date: 2021-02-06 03:52:00 UTC
  • Revision ID: git-v1:1921c370c25cb4735105397c285ffa38a04b286b
testsuite: compress modules if feature is enabled

Since the output needs to be the same, regardless if the module is
compressed, change populate-modules.sh to conditionally compress the
module if that feature is enabled.

This way we can execute the tests with any build-time configuration and
it should still pass.

Suggested-by: Michal Suchánek <msuchanek@suse.de>
Reviewed-by: Michal Suchánek <msuchanek@suse.de>
Tested-by: Michal Suchánek <msuchanek@suse.de>
Reviewed-by: Petr Vorel <pvorel@suse.cz>

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
#include "testsuite.h"
27
27
 
28
 
#ifdef ENABLE_ZLIB
29
28
#define MODULES_ORDER_UNAME "4.4.4"
30
29
#define MODULES_ORDER_ROOTFS TESTSUITE_ROOTFS "test-depmod/modules-order-compressed"
31
30
#define MODULES_ORDER_LIB_MODULES MODULES_ORDER_ROOTFS "/lib/modules/" MODULES_ORDER_UNAME
57
56
                        { }
58
57
                },
59
58
        });
60
 
#endif
61
59
 
62
60
#define SEARCH_ORDER_SIMPLE_ROOTFS TESTSUITE_ROOTFS "test-depmod/search-order-simple"
63
61
static noreturn int depmod_search_order_simple(const struct test *t)