Skip to content

selftests: target selection fixes for cross and LLVM builds

Sasha Levin kexec linux-kselftest lkml mm-commits stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3selftests/prctl: skip the anonymous VMA naming test when unsupportedtools/testing/selftests/prctl/set-anon-vma-name-test.c+3 -00 replies
2/3selftests/kexec: select tests using the target compilertools/testing/selftests/kexec/Makefile+14 -120 replies
3/3selftests/size: use nolibc startup and syscall wrapperstools/testing/selftests/size/Makefile tools/testing/selftests/size/get_size.c+17 -250 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchThomas Weißschuh
1/3
2/3
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH RESEND 0/3] selftests: target selection fixes for cross and LLVM builds

A few suites select their tests from the build host instead of the target, or depend on the host C library in ways that break cross builds:

- set-anon-vma-name-test fails instead of skipping on kernels built without CONFIG_ANON_VMA_NAME.

- kexec only recognizes the ppc64le spelling of PowerPC and decides about the x86-64 jump test from the build host.

- size links a custom _start against the static C library, which fails on ARM with clang and on LoongArch; it now uses nolibc.

The patches are independent of each other and apply on mm-nonmm-unstable.

Since the original posting:

- "selftests/prctl: build generated tests for the target architecture" is dropped. "selftests/prctl: select the tests by ARCH alone" in mm-nonmm-unstable replaces it.

- "selftests/thermal: allow cross builds of the Intel tests" is dropped, it went in through the thermal tree as ff4194e54f84.

- The size patch has Thomas's Reviewed-by.

Original posting:
https://lore.kernel.org/r/[email protected]

Sasha Levin (3):
selftests/prctl: skip the anonymous VMA naming test when unsupported selftests/kexec: select tests using the target compiler selftests/size: use nolibc startup and syscall wrappers

 tools/testing/selftests/kexec/Makefile        | 26 ++++++++-------
 .../selftests/prctl/set-anon-vma-name-test.c  |  3 ++
 tools/testing/selftests/size/Makefile         |  9 ++++-
 tools/testing/selftests/size/get_size.c       | 33 +++++--------------
 4 files changed, 34 insertions(+), 37 deletions(-)

base-commit: 72afe7762a29508ae89831540347c1be3b7ba621

Signature · 1 line
2.53.0