]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/nolibc: run-tests.sh: detect missing toolchain
authorWilly Tarreau <w@1wt.eu>
Sun, 8 Sep 2024 10:00:12 +0000 (12:00 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Wed, 8 Jan 2025 21:02:54 +0000 (22:02 +0100)
commit4b92b79c5645b21e529caa65100e4797d3d4c87c
treefb0f09373d091982d1620b120e8c828e55ce0044
parent40384c840ea1944d7c5a392e8975ed088ecf0b37
selftests/nolibc: run-tests.sh: detect missing toolchain

The script tries to resolve the path to the current toolchain using
realpath, which fails in case it's not installed, and since it's run
under -e, it doesn't have the opportunity to display a help message.
Let's detect the absence of the required toolchain before running that
command and provide a friendlier message when this happens.

Link: https://lore.kernel.org/all/ZtlQbpgpn9OQOPyI@1wt.eu/
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/testing/selftests/nolibc/run-tests.sh