Re: [PATCH v5 9/9] drm: selftest: convert drm_mm selftest to KUnit

2022-08-21 Thread Isabella Basso
Hi Michał, While I totally understand your point, we have talked about this in our GSoC meetings with mentors, and have found a few reasons as to why a KUnit runner integrated to IGT might be really useful. > Am 22/07/2022 um 1:25 PM schrieb Michał Winiarski : > > On Fri, Jul 22, 2022 at 08:04:

[PATCH i-g-t v2 0/4] Add support for KUnit tests

2022-08-28 Thread Isabella Basso
1q2uZvk/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/all/20220708203052.236290-1-maira.ca...@usp.br/ Isabella Basso (4): lib/igt_kmod: rename kselftest functions to ktest lib/ig

[PATCH i-g-t v2 2/4] lib/igt_kmod.c: check if module is builtin before attempting to unload it

2022-08-28 Thread Isabella Basso
This change makes `igt_module_unload_r` safer as it checks whether the module can be unloaded before attempting it. Signed-off-by: Isabella Basso --- lib/igt_kmod.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/igt_kmod.c b/lib/igt_kmod.c index bb6cb7bb..97cac7f5 100644 --- a/lib

[PATCH i-g-t v2 1/4] lib/igt_kmod: rename kselftest functions to ktest

2022-08-28 Thread Isabella Basso
This aims at making IGT's structure more general to different kernel testing frameworks such as KUnit, as they use a lot of the same functionality. Signed-off-by: Isabella Basso --- lib/igt_kmod.c | 22 +++--- lib/igt_kmod.h | 12 ++-- 2 files changed, 17 inser

[PATCH i-g-t v2 3/4] lib/igt_kmod: add compatibility for KUnit

2022-08-28 Thread Isabella Basso
This adds functions for both executing the tests as well as parsing (K)TAP kmsg output, as per the KTAP spec [1]. [1] https://www.kernel.org/doc/html/latest/dev-tools/ktap.html Signed-off-by: Isabella Basso --- lib/igt_kmod.c | 290 + lib

[PATCH i-g-t v2 4/4] tests: DRM selftests: switch to KUnit

2022-08-28 Thread Isabella Basso
As the DRM selftests are now using KUnit [1], update IGT tests as well. [1] - https://lore.kernel.org/all/20220708203052.236290-1-maira.ca...@usp.br/ Signed-off-by: Isabella Basso --- tests/drm_buddy.c| 7 --- tests/drm_mm.c | 7 --- tests/kms_selftest.c | 12

Re: [PATCH i-g-t v2 3/4] lib/igt_kmod: add compatibility for KUnit

2022-09-19 Thread Isabella Basso
Hi, David > Am 01/09/2022 um 3:37 AM schrieb 'David Gow' via KUnit Development > : > > On Mon, Aug 29, 2022 at 8:10 AM Isabella Basso wrote: >> >> This adds functions for both executing the tests as well as parsing (K)TAP >> kmsg output, as

Re: [igt-dev] [PATCH i-g-t v2 3/4] lib/igt_kmod: add compatibility for KUnit

2022-09-19 Thread Isabella Basso
Hi, Janusz, > Am 09/09/2022 um 12:18 PM schrieb Janusz Krzysztofik > : > > Hi Isabella, > > On Monday, 29 August 2022 02:09:19 CEST Isabella Basso wrote: >> This adds functions for both executing the tests as well as parsing (K)TAP >> kmsg output, as per the K

Re: [igt-dev] [PATCH i-g-t v2 3/4] lib/igt_kmod: add compatibility for KUnit

2023-02-11 Thread Isabella Basso
Hi, Janusz, > Am 2023-02-10 um 11:56 AM schrieb Janusz Krzysztofik > : > > Hi Isabella, > > On Monday, 19 September 2022 22:55:44 CET Isabella Basso wrote: >> Hi, Janusz, >> >>> Am 09/09/2022 um 12:18 PM schrieb Janusz Krzysztofik >>> : >

Re: [igt-dev] [PATCH i-g-t v2 3/4] lib/igt_kmod: add compatibility for KUnit

2022-11-01 Thread Isabella Basso
Hi, Mauro, > Am 01/11/2022 um 9:33 AM schrieb Mauro Carvalho Chehab > : > > Hi Isabella, > > On Mon, 19 Sep 2022 17:43:19 -0300 > Isabella Basso wrote: > >>> Do you want to _require_ KUnit be built as a module, rather than built-in >>> here? >