Re: [PATCH v2 05/31] selftests/mm: Use TEST_GEN_PROGS where proper

From: Peter Xu
Date: Sun Apr 16 2023 - 17:44:20 EST


On Sat, Apr 15, 2023 at 04:44:47PM +0100, Lorenzo Stoakes wrote:
> > TEST_GEN_PROGS = madv_populate
>
> This now results in TEST_GEN_PROGS being set to "cow compaction_test
> gup_test..." then here that is discarded and we start again from
> madv_populate meaning none of the prior tests get built.
>
> I notice this today when trying to build the gup_test :)
>
> I think this should be a += not an = (which made sense before as there were
> two different variables being assigned then).

Right, thanks for reporting.

This patch will need a fixup. After we start to build all tests for real I
found that the other patch "selftests/mm: uffd_[un]register()" actually
broke build for testcase hugepage-mremap.c on missing headers.

I've attached two fixups and attached, one for this patch, one for the
other one. I hope we can just queue these two fixups in Andrew's tree, or
I'll see what I should do.

Thanks,

--
Peter Xu