projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcdbf5d
)
selftests/nolibc: add run-libc-test target
author
Zhangjin Wu
<falcon@tinylab.org>
Fri, 7 Jul 2023 18:22:39 +0000
(
02:22
+0800)
committer
Willy 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
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/nolibc/Makefile
b/tools/testing/selftests/nolibc/Makefile
index
000621f
..
d408b68
100644
(file)
--- a/
tools/testing/selftests/nolibc/Makefile
+++ b/
tools/testing/selftests/nolibc/Makefile
@@
-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" || :