selftests/nolibc: add run-libc-test target
authorZhangjin Wu <falcon@tinylab.org>
Fri, 7 Jul 2023 18:22:39 +0000 (02:22 +0800)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Aug 2023 02:38:02 +0000 (04:38 +0200)
allow run and report glibc or musl based libc-test.

Signed-off-by: Zhangjin Wu <falcon@tinylab.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
tools/testing/selftests/nolibc/Makefile

index 000621f..d408b68 100644 (file)
@@ -132,6 +132,10 @@ nolibc-test: nolibc-test.c sysroot/$(ARCH)/include
 libc-test: nolibc-test.c
        $(QUIET_CC)$(CC) -o $@ $<
 
+run-libc-test: libc-test
+       $(Q)./libc-test > "$(CURDIR)/run.out" || :
+       $(Q)$(REPORT) $(CURDIR)/run.out
+
 # qemu user-land test
 run-user: nolibc-test
        $(Q)qemu-$(QEMU_ARCH) ./nolibc-test > "$(CURDIR)/run.out" || :