public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] Reorganize string-stream and assert tests
@ 2024-06-04 12:31 Ivan Orlov
  2024-06-04 12:32 ` [PATCH 1/5] kunit: string-stream: export non-static functions Ivan Orlov
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Ivan Orlov @ 2024-06-04 12:31 UTC (permalink / raw)
  To: brendan.higgins, davidgow, rmoar
  Cc: Ivan Orlov, linux-kselftest, kunit-dev, linux-kernel

Currently, we can run string-stream and assertion tests only when they
are built into the kernel (with config options = y), since some of the
symbols (string-stream functions and functions from assert.c) are not
exported into any of the namespaces, therefore they are not accessible
for the modules.

This patch series exports the required symbols into the KUnit namespace.
Also, it makes the string-stream test a separate module and removes the
log test stub from kunit-test since now we can access the string-stream
symbols even if the test which uses it is built as a module.

Additionally, this patch series merges the assertion test suite into the
kunit-test, since assert.c (and all of the assertion formatting
functions in it) is a part of the KUnit core.

Ivan Orlov (5):
  kunit: string-stream: export non-static functions
  kunit: kunit-test: Remove stub for log tests
  kunit: string-stream-test: Make it a separate module
  kunit: assert: export non-static functions
  kunit: Merge assertion test into kunit-test.c

 lib/kunit/Kconfig              |   8 +
 lib/kunit/Makefile             |   7 +-
 lib/kunit/assert.c             |   4 +
 lib/kunit/assert_test.c        | 388 --------------------------------
 lib/kunit/kunit-test.c         | 397 +++++++++++++++++++++++++++++++--
 lib/kunit/string-stream-test.c |   2 +
 lib/kunit/string-stream.c      |  12 +-
 7 files changed, 405 insertions(+), 413 deletions(-)
 delete mode 100644 lib/kunit/assert_test.c

-- 
2.34.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-06-11 13:10 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-04 12:31 [PATCH 0/5] Reorganize string-stream and assert tests Ivan Orlov
2024-06-04 12:32 ` [PATCH 1/5] kunit: string-stream: export non-static functions Ivan Orlov
2024-06-08  9:20   ` David Gow
2024-06-09 19:01     ` Ivan Orlov
2024-06-04 12:32 ` [PATCH 2/5] kunit: kunit-test: Remove stub for log tests Ivan Orlov
2024-06-08  9:20   ` David Gow
2024-06-04 12:32 ` [PATCH 3/5] kunit: string-stream-test: Make it a separate module Ivan Orlov
2024-06-08  9:20   ` David Gow
2024-06-04 12:32 ` [PATCH 4/5] kunit: assert: export non-static functions Ivan Orlov
2024-06-08  9:20   ` David Gow
2024-06-09 19:05     ` Ivan Orlov
2024-06-04 12:32 ` [PATCH 5/5] kunit: Merge assertion test into kunit-test.c Ivan Orlov
2024-06-08  9:20   ` David Gow
2024-06-11 13:10     ` Ivan Orlov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox