[PATCH 0/5] selftests/nolibc: various build improvements

From: Thomas Weißschuh
Date: Tue Oct 10 2023 - 08:34:23 EST


With the out-of-tree builds it's possible do incremental tests fairly fast:

$ time ./run-tests.sh
i386: 160 test(s): 160 passed, 0 skipped, 0 failed => status: success
x86_64: 160 test(s): 160 passed, 0 skipped, 0 failed => status: success
arm64: 160 test(s): 160 passed, 0 skipped, 0 failed => status: success
arm: 160 test(s): 160 passed, 0 skipped, 0 failed => status: success
mips: 160 test(s): 159 passed, 1 skipped, 0 failed => status: warning
ppc: 160 test(s): 160 passed, 0 skipped, 0 failed => status: success
ppc64: 160 test(s): 160 passed, 0 skipped, 0 failed => status: success
ppc64le: 160 test(s): 160 passed, 0 skipped, 0 failed => status: success
riscv: 160 test(s): 160 passed, 0 skipped, 0 failed => status: success
s390: 160 test(s): 159 passed, 1 skipped, 0 failed => status: warning
loongarch: 160 test(s): 159 passed, 1 skipped, 0 failed => status: warning

real 3m11.735s
user 4m20.354s
sys 1m11.880s

This is with an incremental kernel rebuild and testrun inside qemu.

Note:

"selftests/nolibc: use qemu-system-ppc64 also for ppc64le" was already
submitted standalone but I included it here again for easier testing and
review.

Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
---
Thomas Weißschuh (5):
selftests/nolibc: use qemu-system-ppc64 also for ppc64le
selftests/nolibc: use EFI -bios for LoongArch qemu
selftests/nolibc: anchor paths in $(srcdir) if possible
selftests/nolibc: support out-of-tree builds
selftests/nolibc: generate config automatically

tools/testing/selftests/nolibc/Makefile | 36 +++++++++++++++++++++------------
1 file changed, 23 insertions(+), 13 deletions(-)
---
base-commit: d423dcd4ac21041618ab83455c09440d76dbc099
change-id: 20231010-nolibc-out-of-tree-b6684c6cf0e3

Best regards,
--
Thomas Weißschuh <linux@xxxxxxxxxxxxxx>