[igt-dev] [PATCH i-g-t 0/2] Add support for KUnit tests
Isabella Basso
isabbasso at riseup.net
Fri Jun 17 15:47:51 UTC 2022
This patch series was first developed as part of the LKCamp hackathon
that happened last year[1], mainly focusing on refactoring DRM tests to
use KUnit.
KUnit[2][3] is a unified test framework that provides helper tools,
simplifying their development and execution. Using an x86-64 machine
it's possible to run tests in the host's kernel natively using user-mode
Linux[4] (aka UML), which simplifies usage in a wide variety of
scenarios, including integration to CI.
As the tool's adoption widens into graphics testing territory, I and
LKCamp members figured it would be important to support it in IGT, as
it's a core tool for GPU drivers maintainers.
I have then added KUnit support into IGT mainly following the KTAP
specs, and it can be tested using patch 2/2 in this series together with
an AMDGPU patch series[5] available at [6].
[1]: https://groups.google.com/g/kunit-dev/c/YqFR1q2uZvk/m/IbvItSfHBAAJ
[2]: https://kunit.dev
[3]: https://docs.kernel.org/dev-tools/kunit/index.html
[4]: http://user-mode-linux.sourceforge.net
[5]: https://lore.kernel.org/dri-devel/20220608010709.272962-1-maira.canal@usp.br/
[6]: https://gitlab.freedesktop.org/isinyaaa/linux/-/tree/kunit-prototype2
Isabella Basso (2):
igt_kmod: add compatibility for KUnit
tests/amdgpu/amd_kunit: add KUnit AMDGPU tests
lib/igt_kmod.c | 269 +++++++++++++++++++++++++++++++++++++++
lib/igt_kmod.h | 3 +
tests/amdgpu/amd_kunit.c | 34 +++++
tests/amdgpu/meson.build | 1 +
4 files changed, 307 insertions(+)
create mode 100644 tests/amdgpu/amd_kunit.c
--
2.36.1
More information about the igt-dev
mailing list