Skip to content

selftests: target selection fixes for cross and LLVM builds

Sasha Levin kexec linux-kselftest linux-pm lkml stable 1 version Applied

Status from this message: Applied as 7.4-rc material, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5selftests/prctl: build generated tests for the target architecturetools/testing/selftests/prctl/Makefile+8 -100 replies
2/5selftests/prctl: skip the anonymous VMA naming test when unsupportedtools/testing/selftests/prctl/set-anon-vma-name-test.c+3 -00 replies
3/5selftests/thermal: allow cross builds of the Intel teststools/testing/selftests/thermal/intel/power_floor/Makefile tools/testing/selftests/thermal/intel/workload_hint/Makefile+10 -141 reply
4/5selftests/kexec: select tests using the target compilertools/testing/selftests/kexec/Makefile+14 -120 replies
5/5selftests/size: use nolibc startup and syscall wrapperstools/testing/selftests/size/Makefile tools/testing/selftests/size/get_size.c+17 -251 reply

Reviews trailers per patch

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

PatchThomas Weißschuh
1/5
2/5
3/5
4/5
5/5R-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 0/5] 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. This series fixes the ones found while building the selftests for several architectures:

- prctl and the Intel thermal suites build nothing when CROSS_COMPILE is set, even for x86, and prctl restricts two generic tests to x86.

- 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.

Sasha Levin (5):
selftests/prctl: build generated tests for the target architecture selftests/prctl: skip the anonymous VMA naming test when unsupported selftests/thermal: allow cross builds of the Intel tests selftests/kexec: select tests using the target compiler selftests/size: use nolibc startup and syscall wrappers

 tools/testing/selftests/kexec/Makefile        | 26 ++++++++-------
 tools/testing/selftests/prctl/Makefile        | 18 +++++-----
 .../selftests/prctl/set-anon-vma-name-test.c  |  3 ++
 tools/testing/selftests/size/Makefile         |  9 ++++-
 tools/testing/selftests/size/get_size.c       | 33 +++++--------------
 .../thermal/intel/power_floor/Makefile        | 12 +++----
 .../thermal/intel/workload_hint/Makefile      | 12 +++----
 7 files changed, 52 insertions(+), 61 deletions(-)

base-commit: 4eb2586bd40db27d77cc5b724ca9386ed0c71d53

Signature · 1 line
2.53.0