Thread (33 messages) 33 messages, 6 authors, 2026-02-13

Re: [PATCH v3 3/3] selftests: pidfd: add tests for PIDFD_SELF_*

From: John Hubbard <jhubbard@nvidia.com>
Date: 2025-05-06 21:34:49
Also in: linux-fsdevel, linux-kselftest, linux-mm, lkml

On 5/6/25 2:18 PM, Shuah Khan wrote:
On 5/1/25 05:42, Peter Zijlstra wrote:
quoted
On Wed, Oct 16, 2024 at 07:14:34PM -0700, John Hubbard wrote:
quoted
On 10/16/24 3:06 PM, Lorenzo Stoakes wrote:
quoted
On Wed, Oct 16, 2024 at 02:00:27PM -0600, Shuah Khan wrote:
quoted
On 10/16/24 04:20, Lorenzo Stoakes wrote:
...
Please fix this fucking selftests shit to just build. This is unusable
garbage.
I don't recall all the reasons why kselftests needed "make headers"
One reason I could think of was that when a new test depends on a
header change, the test won't build unless headers are installed.
...or until an updated copy of that updated header file is copied
somewhere, and then included in the kselftests. That's the approach
that I ultimately settled upon, after some discussion and negotion.

Details below.
If this requirement is causing problems for tests that don't fall
into the category and we probably have more of them mow, we can
clean that up.

John, you mentioned you got mm tests working without headers?
Can you share the commit here.
Yes. This one sets up the general approach, which is available to
all kselftests: TOOLS_INCLUDES. It also changes selftests/mm to
set TOOLS_INCLUDES in that build:

    e076eaca5906 ("selftests: break the dependency upon local header files")

And here is a representative application of the above, to selftests/mm. In
other words, taking advantage of the new file location pointed to by
TOOLS_INCLUDES:

    580ea358af0a ("selftests/mm: fix additional build errors for selftests")


thanks,
-- 
John Hubbard
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help