summaryrefslogtreecommitdiffstats
path: root/drivers/iio/test/Makefile
diff options
context:
space:
mode:
authorLiam Beguin <liambeguin@gmail.com>2022-02-12 21:57:35 -0500
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-02-28 10:22:24 +0000
commit8e74a48d17d509bf605e64252f38550b1a9cc376 (patch)
tree41887ee5f66880d78433b49f881d02e92270e103 /drivers/iio/test/Makefile
parent2eb30577f2533463afed3456141d4becc4f79e91 (diff)
downloadlinux-stable-8e74a48d17d509bf605e64252f38550b1a9cc376.tar.gz
linux-stable-8e74a48d17d509bf605e64252f38550b1a9cc376.tar.bz2
linux-stable-8e74a48d17d509bf605e64252f38550b1a9cc376.zip
iio: test: add basic tests for the iio-rescale driver
The iio-rescale driver supports various combinations of scale types and offsets. These can often result in large integer multiplications. Make sure these calculations are done right by adding a set of kunit test cases that build on top of iio-test-format. To run these tests, add the following to .kunitconfig $ cat .kunitconfig CONFIG_IIO=y CONFIG_IIO_RESCALE_KUNIT_TEST=y CONFIG_KUNIT=y Then run: $ ./tools/testing/kunit/kunit.py run --kunitconfig .kunitconfig Signed-off-by: Liam Beguin <liambeguin@gmail.com> Reviewed-by: Peter Rosin <peda@axentia.se> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20220213025739.2561834-7-liambeguin@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/test/Makefile')
-rw-r--r--drivers/iio/test/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/test/Makefile b/drivers/iio/test/Makefile
index 467519a2027e..f15ae0a6394f 100644
--- a/drivers/iio/test/Makefile
+++ b/drivers/iio/test/Makefile
@@ -4,5 +4,6 @@
#
# Keep in alphabetical order
+obj-$(CONFIG_IIO_RESCALE_KUNIT_TEST) += iio-test-rescale.o ../afe/iio-rescale.o
obj-$(CONFIG_IIO_TEST_FORMAT) += iio-test-format.o
CFLAGS_iio-test-format.o += $(DISABLE_STRUCTLEAK_PLUGIN)