Skip to content

RFC kunit: add support to use modules

Vitor Massaru Iha linux-kernel-mentees linux-kselftest lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kunit: tool: Add support root filesystem in kunit-tooltools/testing/kunit/kunit.py tools/testing/kunit/kunit_kernel.py+121 -212 replies
2/3lib: Allows to borrow mm in userspace on KUnitinclude/kunit/test.h lib/kunit/try-catch.c+15 -13 replies
3/3lib: Convert test_user_copy to KUnit testlib/Kconfig.debug lib/Makefile lib/user_copy_kunit.c+102 -1134 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchBrendan Higgins
1/3R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC 0/3] kunit: add support to use modules

Currently, KUnit does not allow the use of tests as a module. This prevents the implementation of tests that require userspace.

This patchset makes this possible by introducing the use of the root filesystem in KUnit. And it allows the use of tests that can be compiled as a module

Vitor Massaru Iha (3):
kunit: tool: Add support root filesystem in kunit-tool
lib: Allows to borrow mm in userspace on KUnit
lib: Convert test_user_copy to KUnit test

 include/kunit/test.h                        |   1 +
 lib/Kconfig.debug                           |  17 ++
 lib/Makefile                                |   2 +-
 lib/kunit/try-catch.c                       |  15 +-
 lib/{test_user_copy.c => user_copy_kunit.c} | 196 +++++++++-----------
 tools/testing/kunit/kunit.py                |  37 +++-
 tools/testing/kunit/kunit_kernel.py         | 105 +++++++++--
 7 files changed, 238 insertions(+), 135 deletions(-)
 rename lib/{test_user_copy.c => user_copy_kunit.c} (55%)

base-commit: 725aca9585956676687c4cb803e88f770b0df2b2
prerequisite-patch-id: 582b6d9d28ce4b71628890ec832df6522ca68de0

Signature · 1 line
2.26.2