xref: /linux/drivers/iio/test/Kconfig (revision b9f9044be76f8494ff48bbf438ecc5b15e7bd3d4)
1# SPDX-License-Identifier: GPL-2.0-only
2#
3# Industrial I/O subsystem unit tests configuration
4#
5
6# Keep in alphabetical order
7config IIO_CHANNEL_PREFIX_KUNIT_TEST
8	tristate "Test IIO channel prefix" if !KUNIT_ALL_TESTS
9	depends on KUNIT && IIO
10	default KUNIT_ALL_TESTS
11	help
12	  Build unit tests for __iio_chan_prefix_emit(), the helper that
13	  builds IIO sysfs attribute name prefixes from an iio_chan_spec.
14
15	  For more information on KUnit and unit tests in general, please refer
16	  to the KUnit documentation in Documentation/dev-tools/kunit/.
17
18	  If unsure, say N.
19
20config IIO_GTS_KUNIT_TEST
21	tristate "Test IIO gain-time-scale helpers" if !KUNIT_ALL_TESTS
22	depends on KUNIT
23	select IIO_GTS_HELPER
24	default KUNIT_ALL_TESTS
25	help
26	  build unit tests for the IIO light sensor gain-time-scale helpers.
27
28	  For more information on KUnit and unit tests in general, please refer
29	  to the KUnit documentation in Documentation/dev-tools/kunit/.
30
31	  If unsure, say N. Keep in alphabetical order
32
33config IIO_RESCALE_KUNIT_TEST
34	tristate "Test IIO rescale conversion functions" if !KUNIT_ALL_TESTS
35	depends on KUNIT && IIO_RESCALE
36	default KUNIT_ALL_TESTS
37	help
38	  Build unit tests for the iio-rescale code.
39
40	  For more information on KUnit and unit tests in general, please refer
41	  to the KUnit documentation in Documentation/dev-tools/kunit/.
42
43	  If unsure, say N.
44
45config IIO_FORMAT_KUNIT_TEST
46	tristate "Test IIO formatting functions" if !KUNIT_ALL_TESTS
47	depends on KUNIT
48	default KUNIT_ALL_TESTS
49	help
50	  build unit tests for the IIO formatting functions.
51
52	  For more information on KUnit and unit tests in general, please refer
53	  to the KUnit documentation in Documentation/dev-tools/kunit/.
54
55	  If unsure, say N.
56
57config IIO_MULTIPLY_KUNIT_TEST
58	tristate "Test IIO multiply functions" if !KUNIT_ALL_TESTS
59	depends on KUNIT
60	default KUNIT_ALL_TESTS
61	help
62	  build unit tests for the IIO multiply functions.
63
64	  For more information on KUnit and unit tests in general, please refer
65	  to the KUnit documentation in Documentation/dev-tools/kunit/.
66
67	  If unsure, say N.
68