Linux IIO development
 help / color / mirror / Atom feed
* [PATCH v1 0/5] Add module build support for KUnit IIO tests
@ 2022-07-10  1:31 Liam Beguin
  2022-07-10  1:31 ` [PATCH v1 1/5] iio: test: rescale: add MODULE_* information Liam Beguin
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Liam Beguin @ 2022-07-10  1:31 UTC (permalink / raw)
  To: liambeguin, jic23, geert; +Cc: peda, linux-iio, linux-kernel

KUnit tests can be built as modules allowing to execute them at runtime
by simply loading the modules.

Module build support is added with the following steps:
 - add MODULE_* in the KUnit test drivers,
 - export namespace symbols from the iio-rescale, and
 - drop Kconfig built-in only constraints,

Along with the module build changes, this series also addresses
minor touch ups such as:
 - rename IIO_TEST_FORMAT Kconfig to match naming conventions,
 - use tabs to indent the IIO_FORMAT_KUNIT_TEST Kconfig,
 - drop ARCH=um mention from the IIO_RESCALE_KUNIT_TEST Kconfig help
   section,
 - add IIO_FORMAT_KUNIT_TEST Kconfig help section,
 - update dependency on KUNIT_ALL_TESTS to match the documentation.

All these are done in commit 05/05. I could rework the commit, but given
that these changes are pretty minor, it seemed okay to do it all at
once.

Cheers,
Liam

Liam Beguin (5):
  iio: test: rescale: add MODULE_* information
  iio: test: format: add MODULE_* information
  iio: test: format: follow CONFIG_ naming convention
  iio: afe: rescale: export symbols used during testing
  iio: test: rework Kconfig to support modules

 drivers/iio/afe/iio-rescale.c       |  2 ++
 drivers/iio/test/Kconfig            | 26 ++++++++++++++++++--------
 drivers/iio/test/Makefile           |  2 +-
 drivers/iio/test/iio-test-format.c  |  4 ++++
 drivers/iio/test/iio-test-rescale.c |  5 +++++
 5 files changed, 30 insertions(+), 9 deletions(-)


base-commit: b1c428b6c3684ee8ddf4137d68b3e8d51d2a700f
-- 
2.35.1.4.g5d01301f2b86


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

end of thread, other threads:[~2022-07-16 17:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-10  1:31 [PATCH v1 0/5] Add module build support for KUnit IIO tests Liam Beguin
2022-07-10  1:31 ` [PATCH v1 1/5] iio: test: rescale: add MODULE_* information Liam Beguin
2022-07-10  1:31 ` [PATCH v1 2/5] iio: test: format: " Liam Beguin
2022-07-10  1:31 ` [PATCH v1 3/5] iio: test: format: follow CONFIG_ naming convention Liam Beguin
2022-07-10  1:31 ` [PATCH v1 4/5] iio: afe: rescale: export symbols used during testing Liam Beguin
2022-07-10  1:31 ` [PATCH v1 5/5] iio: test: rework Kconfig to support modules Liam Beguin
2022-07-16 18:03   ` Jonathan Cameron

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