Skip to content

KUnit tests for the IIO GTS helpers

Matti Vaittinen linux-iio lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v12 of 3 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- Drop already applied division loop fix patch
- Remove unnecessary empty lines

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iio: test: test gain-time-scale helpersdrivers/iio/test/Kconfig drivers/iio/test/Makefile drivers/iio/test/iio-test-gts.c+528 -00 replies
2/2MAINTAINERS: add IIO GTS testsMAINTAINERS+1 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] KUnit tests for the IIO GTS helpers

Add some KUnit tests for the IIO GTS helpers.

These tests were originally part of the BU27034 ALS sensor driver series.
https://lore.kernel.org/all/[email protected]/

Merging the tests was postponed because we lacked of a good generic way of creating tests devices for testing the devm managed interfaces. Now we have kunit_device APIs being merged (seems like they'll be part of the v6.8-rc1) so precondition for merging these tests are (being) met.

The series is based on
commit ab27740f7665 ("Merge tag 'linux_kselftest-next-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest")
in Linus' tree.

I can rebase and resend when v6.8-rc1 is out if needed.

Revision history:

v2:
- Drop already applied division loop fix patch
- Remove unnecessary empty lines

---

Matti Vaittinen (2):
iio: test: test gain-time-scale helpers
MAINTAINERS: add IIO GTS tests

 MAINTAINERS                     |   1 +
 drivers/iio/test/Kconfig        |  14 +
 drivers/iio/test/Makefile       |   1 +
 drivers/iio/test/iio-test-gts.c | 513 ++++++++++++++++++++++++++++++++
 4 files changed, 529 insertions(+)
 create mode 100644 drivers/iio/test/iio-test-gts.c

base-commit: ab27740f76654ed58dd32ac0ba0031c18a6dea3b

Signature · 14 lines
2.43.0


-- 
Matti Vaittinen, Linux device drivers
ROHM Semiconductors, Finland SWDC
Kiviharjunlenkki 1E
90220 OULU
FINLAND

~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~
Simon says - in Latin please.
~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~
Thanks to Simon Glass for the translation =]