Re: [PATCH v2 7/7] tools: add skeleton code for userland testing of VMA logic

From: Vlastimil Babka
Date: Tue Jul 09 2024 - 07:29:29 EST


On 7/4/24 9:28 PM, Lorenzo Stoakes wrote:
> Establish a new userland VMA unit testing implementation under
> tools/testing which utilises existing logic providing maple tree support in
> userland utilising the now-shared code previously exclusive to radix tree
> testing.
>
> This provides fundamental VMA operations whose API is defined in mm/vma.h,
> while stubbing out superfluous functionality.
>
> This exists as a proof-of-concept, with the test implementation functional
> and sufficient to allow userland compilation of vma.c, but containing only
> cursory tests to demonstrate basic functionality.
>
> Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx>

Wonder how fragile will this turn out to be wrt changes to the kernel side.
But if we can get the bots to run it regularly, should be feasible. And we
need to add tests for everything that broke rpm in the past :)

Acked-by: Vlastimil Babka <vbabka@xxxxxxx>