diff options
author | Liam Beguin <[email protected]> | 2022-02-12 21:57:35 -0500 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2022-02-28 10:22:24 +0000 |
commit | 8e74a48d17d509bf605e64252f38550b1a9cc376 (patch) | |
tree | 41887ee5f66880d78433b49f881d02e92270e103 /tools/perf/scripts/python/libxed.py | |
parent | 2eb30577f2533463afed3456141d4becc4f79e91 (diff) |
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 <[email protected]>
Reviewed-by: Peter Rosin <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions