Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests/nolibc: also test libc-test through regular selftest framework

Hook up libc-test to the regular selftest build to make sure
nolibc-test.c stays compatible with a normal libc.

As the pattern rule from lib.mk does not handle compiling a target from
a differently named source file, add an explicit rule definition.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://patch.msgid.link/20260106-nolibc-selftests-v1-3-f82101c2c505@weissschuh.net

+5 -1
+5 -1
tools/testing/selftests/nolibc/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 - TEST_GEN_PROGS := nolibc-test 3 + TEST_GEN_PROGS := nolibc-test libc-test 4 4 5 5 include ../lib.mk 6 6 include $(top_srcdir)/scripts/Makefile.compiler ··· 14 14 $(CFLAGS_NOLIBC_TEST) 15 15 $(OUTPUT)/nolibc-test: LDLIBS = $(if $(LLVM),,-lgcc) 16 16 $(OUTPUT)/nolibc-test: nolibc-test.c nolibc-test-linkage.c | headers 17 + 18 + $(OUTPUT)/libc-test: nolibc-test.c nolibc-test-linkage.c 19 + $(call msg,CC,,$@) 20 + $(Q)$(LINK.c) $^ -o $@ 17 21 18 22 help: 19 23 @echo "For the custom nolibc testsuite use '$(MAKE) -f Makefile.nolibc'; available targets:"