Re: [PATCH] ext4: add .kunitconfig fragment to enable ext4-specific tests

From: Theodore Ts'o
Date: Thu Feb 11 2021 - 23:24:09 EST


On Tue, Feb 09, 2021 at 05:32:06PM -0800, Daniel Latypov wrote:
> As of [1], we no longer want EXT4_KUNIT_TESTS and others to `select`
> their deps. This means it can get harder to get all the right things
> selected as we gain more tests w/ more deps over time.
>
> This patch (and [2]) proposes we store kunitconfig fragments in-tree to
> represent sets of tests. (N.B. right now we only have one ext4 test).
>
> There's still a discussion to be had about how to have a hierarchy of
> these files (e.g. if one wanted to test all of fs/, not just fs/ext4).
>
> But this fragment would likely be a leaf node and isn't blocked on
> deciding if we want `import` statements and the like.
>
> Usage
> =====
>
> Before [2] (on its way to being merged):
> $ cp fs/ext4/.kunitconfig .kunit/
> $ ./tools/testing/kunit.py run
>
> After [2]:
> $ ./tools/testing/kunit.py run --kunitconfig=fs/ext4/.kunitconfig

Thanks, applied, with one minor fixup. The path to kunit.py is

./tools/testing/kunit/kunit.py

- Ted