2 ms·
> This makes me wonder why aren't there any unit tests in the kernel (and the different drivers in it; especially file system related). Others have already com
by cesarb 4y ago
> This makes me wonder why aren't there any unit tests in the kernel (and the different drivers in it; especially file system related).
Others have already commented on the testing situation for the kernel in general (historically, the tests were all in separate projects outside the kernel, and more recently, the kernel itself has a testing framework), but for filesystems in particular, there's an external project called "xfstests". The name might imply they're only for xfs (and they were originally made to test xfs in particular), but they're used for all filesystems (and also for the common filesystem-related code in the kernel).