[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGi-RUKv-8zyku-3pjXdjxbyMP_X_YV5rd6y2wyaCOJJ9UOQAw@mail.gmail.com>
Date: Mon, 15 Aug 2022 12:16:16 +0300
From: Ramon Fried <rfried.dev@...il.com>
To: brendanhiggins@...gle.com, linux-kselftest@...r.kernel.org,
kunit-dev@...glegroups.com, LKML <linux-kernel@...r.kernel.org>
Subject: Running kunit tests on platform devices
Hi.
I implemented a test suite that checks a platform driver, that's the
only way I can test interrupts behavior in the code.
Because it's a platform, I can't use kunit_test_suite(), so I call
__kunit_test_suites_init() as part of the platform driver probe
function.
This works fine but has the following problems.
"TAP version 14" string is not printed and it's impossible to parse
the results using the script.
In addition, the suite is not displayed in /sys/kernel/debug/kunit.
It would be my pleasure to provide a patch that fixes this, I just
wanted to make sure that my testing strategy makes sense.
Thanks,
Ramon
Powered by blists - more mailing lists