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

From: Lorenzo Stoakes
Date: Mon Jul 08 2024 - 09:14:59 EST


On Fri, Jul 05, 2024 at 11:28:01AM GMT, SeongJae Park wrote:
> Hi Lorenzo,
>
> On Thu, 4 Jul 2024 20:28:02 +0100 Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx> 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>
>
> I haven't had a time to review this, and I don't think I will get the time soon
> (don't wait for me). But, I was able to build and run it as below, thanks to
> the fast runtime of the test ;)
>
> $ cd tools/testing/vma
> $ make
> [...]
> $ ./vma
> 4 tests run, 4 passed, 0 failed.
>
> So, FWIW,
>
> Tested-by: SeongJae Park <sj@xxxxxxxxxx>
>

Thanks! :)

>
> Thanks,
> SJ
>
> [...]