selftests/nolibc: add run-libc-test target
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>
This commit is contained in:
parent
fcdbf5dda4
commit
cfb672f94f
1 changed files with 4 additions and 0 deletions
|
@ -132,6 +132,10 @@ nolibc-test: nolibc-test.c sysroot/$(ARCH)/include
|
||||||
libc-test: nolibc-test.c
|
libc-test: nolibc-test.c
|
||||||
$(QUIET_CC)$(CC) -o $@ $<
|
$(QUIET_CC)$(CC) -o $@ $<
|
||||||
|
|
||||||
|
run-libc-test: libc-test
|
||||||
|
$(Q)./libc-test > "$(CURDIR)/run.out" || :
|
||||||
|
$(Q)$(REPORT) $(CURDIR)/run.out
|
||||||
|
|
||||||
# qemu user-land test
|
# qemu user-land test
|
||||||
run-user: nolibc-test
|
run-user: nolibc-test
|
||||||
$(Q)qemu-$(QEMU_ARCH) ./nolibc-test > "$(CURDIR)/run.out" || :
|
$(Q)qemu-$(QEMU_ARCH) ./nolibc-test > "$(CURDIR)/run.out" || :
|
||||||
|
|
Loading…
Add table
Reference in a new issue