diff options
author | Dimitri John Ledkov <dimitri.ledkov@canonical.com> | 2021-06-24 14:53:56 +0100 |
---|---|---|
committer | Lucas De Marchi <lucas.de.marchi@gmail.com> | 2022-06-30 09:55:55 -0700 |
commit | 09ad8605520c87e799cb89e2bcdf2f36e21f77ba (patch) | |
tree | 81bd54bed756f9e2faaa520822b42cf870e0c32a | |
parent | 16c086f48c2270ad6412ad7226df53079f825270 (diff) | |
download | kmod-09ad8605520c87e799cb89e2bcdf2f36e21f77ba.tar.gz |
build: enable building & running tests from a subdir
During dpkg build, in a subdir, it is currently not possible to run
tests. Building testsuite/modules due to non-existance of the
testsuite directory under the build dir. Thus create it, when it is
not there.
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
-rw-r--r-- | Makefile.am | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 0e48770..b0a654c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -255,6 +255,7 @@ CREATE_ROOTFS = $(AM_V_GEN) ( $(RM) -rf $(ROOTFS) && mkdir -p $(dir $(ROOTFS)) & build-module-playground: $(AM_V_GEN)if test "$(top_srcdir)" != "$(top_builddir)"; then \ $(RM) -rf testsuite/module-playground && \ + mkdir -p testsuite/ && \ cp -r $(top_srcdir)/$(MODULE_PLAYGROUND) $(top_builddir)/$(MODULE_PLAYGROUND) && \ find $(top_builddir)/$(MODULE_PLAYGROUND) -type d -exec chmod +w {} \; ; \ fi |