Re: Converting kselftest test modules to kunit

2024-07-30 Thread Shuah Khan
On 7/29/24 01:55, Muhammad Usama Anjum wrote: On 7/27/24 12:35 AM, Shuah Khan wrote: On 7/15/24 04:09, Muhammad Usama Anjum wrote: Hi Kees and All, There are several tests in kselftest subsystem which load modules to tests the internals of the kernel. Most of these test modules are just loaded

Re: Converting kselftest test modules to kunit

2024-07-30 Thread Shuah Khan
On 7/29/24 23:23, David Gow wrote: On Sat, 27 Jul 2024 at 03:35, Shuah Khan wrote: On 7/15/24 04:09, Muhammad Usama Anjum wrote: Hi Kees and All, There are several tests in kselftest subsystem which load modules to tests the internals of the kernel. Most of these test modules are just loaded

Re: Converting kselftest test modules to kunit

2024-07-29 Thread David Gow
On Sat, 27 Jul 2024 at 03:35, Shuah Khan wrote: > > On 7/15/24 04:09, Muhammad Usama Anjum wrote: > > Hi Kees and All, > > > > There are several tests in kselftest subsystem which load modules to tests > > the internals of the kernel. Most of these test modules are just loaded by > > the kselftest

Re: Converting kselftest test modules to kunit

2024-07-29 Thread Muhammad Usama Anjum
On 7/27/24 12:35 AM, Shuah Khan wrote: > On 7/15/24 04:09, Muhammad Usama Anjum wrote: >> Hi Kees and All, >> >> There are several tests in kselftest subsystem which load modules to tests >> the internals of the kernel. Most of these test modules are just loaded by >> the kselftest, their status is

Re: Converting kselftest test modules to kunit

2024-07-26 Thread Shuah Khan
On 7/15/24 04:09, Muhammad Usama Anjum wrote: Hi Kees and All, There are several tests in kselftest subsystem which load modules to tests the internals of the kernel. Most of these test modules are just loaded by the kselftest, their status isn't read and reported to the user logs. Hence they do

Re: Converting kselftest test modules to kunit

2024-07-17 Thread John Hubbard
On 7/17/24 3:47 AM, Muhammad Usama Anjum wrote: Hi David, On 7/16/24 12:33 PM, David Gow wrote: On Mon, 15 Jul 2024 at 18:09, Muhammad Usama Anjum wrote: Hi Kees and All, There are several tests in kselftest subsystem which load modules to tests the internals of the kernel. Most of these te

Re: Converting kselftest test modules to kunit

2024-07-17 Thread John Hubbard
On 7/16/24 11:26 AM, Kees Cook wrote: On Tue, Jul 16, 2024 at 11:04:06AM -0700, John Hubbard wrote: This is a classic case of testing a kernel API via ioctl into the kernel, so I think it meets your criteria for moving to KUnit. Having said that, I must now go try out KUnit in a bit more depth b

Re: Converting kselftest test modules to kunit

2024-07-17 Thread Muhammad Usama Anjum
On 7/16/24 10:59 PM, Kees Cook wrote: > On Tue, Jul 16, 2024 at 01:11:14PM +0500, Muhammad Usama Anjum wrote: >> On 7/15/24 9:40 PM, Kees Cook wrote: >>> On Mon, Jul 15, 2024 at 03:09:24PM +0500, Muhammad Usama Anjum wrote: Hi Kees and All, There are several tests in kselftest subsys

Re: Converting kselftest test modules to kunit

2024-07-17 Thread Muhammad Usama Anjum
Hi David, On 7/16/24 12:33 PM, David Gow wrote: > On Mon, 15 Jul 2024 at 18:09, Muhammad Usama Anjum > wrote: >> >> Hi Kees and All, >> >> There are several tests in kselftest subsystem which load modules to tests >> the internals of the kernel. Most of these test modules are just loaded by >> th

Re: Converting kselftest test modules to kunit

2024-07-16 Thread Kees Cook
On Tue, Jul 16, 2024 at 11:04:06AM -0700, John Hubbard wrote: > This is a classic case of testing a kernel API via ioctl into the > kernel, so I think it meets your criteria for moving to KUnit. > Having said that, I must now go try out KUnit in a bit more depth > before I'm sure that this will wor

Re: Converting kselftest test modules to kunit

2024-07-16 Thread John Hubbard
On 7/16/24 10:59 AM, Kees Cook wrote: On Tue, Jul 16, 2024 at 01:11:14PM +0500, Muhammad Usama Anjum wrote: On 7/15/24 9:40 PM, Kees Cook wrote: On Mon, Jul 15, 2024 at 03:09:24PM +0500, Muhammad Usama Anjum wrote: Hi Kees and All, There are several tests in kselftest subsystem which load mod

Re: Converting kselftest test modules to kunit

2024-07-16 Thread Kees Cook
On Tue, Jul 16, 2024 at 01:11:14PM +0500, Muhammad Usama Anjum wrote: > On 7/15/24 9:40 PM, Kees Cook wrote: > > On Mon, Jul 15, 2024 at 03:09:24PM +0500, Muhammad Usama Anjum wrote: > >> Hi Kees and All, > >> > >> There are several tests in kselftest subsystem which load modules to tests > >> the

Re: Converting kselftest test modules to kunit

2024-07-16 Thread Muhammad Usama Anjum
On 7/15/24 9:40 PM, Kees Cook wrote: > On Mon, Jul 15, 2024 at 03:09:24PM +0500, Muhammad Usama Anjum wrote: >> Hi Kees and All, >> >> There are several tests in kselftest subsystem which load modules to tests >> the internals of the kernel. Most of these test modules are just loaded by >> the ksel

Re: Converting kselftest test modules to kunit

2024-07-16 Thread David Gow
On Mon, 15 Jul 2024 at 18:09, Muhammad Usama Anjum wrote: > > Hi Kees and All, > > There are several tests in kselftest subsystem which load modules to tests > the internals of the kernel. Most of these test modules are just loaded by > the kselftest, their status isn't read and reported to the us

Re: Converting kselftest test modules to kunit

2024-07-15 Thread Kees Cook
On Mon, Jul 15, 2024 at 03:09:24PM +0500, Muhammad Usama Anjum wrote: > Hi Kees and All, > > There are several tests in kselftest subsystem which load modules to tests > the internals of the kernel. Most of these test modules are just loaded by > the kselftest, their status isn't read and reported

Converting kselftest test modules to kunit

2024-07-15 Thread Muhammad Usama Anjum
Hi Kees and All, There are several tests in kselftest subsystem which load modules to tests the internals of the kernel. Most of these test modules are just loaded by the kselftest, their status isn't read and reported to the user logs. Hence they don't provide benefit of executing those tests. I