[PATCH 0/3] KUnit tests for the IIO GTS helpers

Matti Vaittinen posted 3 patches 1 year, 11 months ago
Only 2 patches received!
There is a newer version of this series
MAINTAINERS                           |   1 +
drivers/iio/industrialio-gts-helper.c |   5 +-
drivers/iio/test/Kconfig              |  14 +
drivers/iio/test/Makefile             |   1 +
drivers/iio/test/iio-test-gts.c       | 517 ++++++++++++++++++++++++++
5 files changed, 535 insertions(+), 3 deletions(-)
create mode 100644 drivers/iio/test/iio-test-gts.c
[PATCH 0/3] KUnit tests for the IIO GTS helpers
Posted by Matti Vaittinen 1 year, 11 months ago
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/cover.1679915278.git.mazziesaccount@gmail.com/

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.

Matti Vaittinen (3):
  iio: gts-helper: Fix division loop
  iio: test: test gain-time-scale helpers
  MAINTAINERS: add IIO GTS tests

 MAINTAINERS                           |   1 +
 drivers/iio/industrialio-gts-helper.c |   5 +-
 drivers/iio/test/Kconfig              |  14 +
 drivers/iio/test/Makefile             |   1 +
 drivers/iio/test/iio-test-gts.c       | 517 ++++++++++++++++++++++++++
 5 files changed, 535 insertions(+), 3 deletions(-)
 create mode 100644 drivers/iio/test/iio-test-gts.c


base-commit: ab27740f76654ed58dd32ac0ba0031c18a6dea3b
-- 
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 =] 
Re: [PATCH 0/3] KUnit tests for the IIO GTS helpers
Posted by Matti Vaittinen 1 year, 11 months ago
On 1/10/24 12:07, Matti Vaittinen wrote:
> Add some KUnit tests for the IIO GTS helpers.

...

> Matti Vaittinen (3):
>    iio: gts-helper: Fix division loop

Please ignore the patch 1/3 above. It has been already merged. 
Unfortunately I noticed this commit being in the series only after 
sending the cover-letter. In order to not consumer reviewer's time, I 
omitted sending the 1/3 - so it's missing the series on purpose. 
Subsequent versions won't include this patch anymore.

>    iio: test: test gain-time-scale helper >    MAINTAINERS: add IIO GTS tests
> 
>   MAINTAINERS                           |   1 +
>   drivers/iio/industrialio-gts-helper.c |   5 +-

Also, this file is not changed by patches 2/3 and 3/3.

Sorry!

Yours,
	-- Matti

-- 
Matti Vaittinen
Linux kernel developer at ROHM Semiconductors
Oulu Finland

~~ When things go utterly wrong vim users can always type :help! ~~