selftests/nolibc: allow report with existing test log
authorZhangjin Wu <falcon@tinylab.org>
Sat, 5 Aug 2023 06:11:02 +0000 (14:11 +0800)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Aug 2023 03:17:07 +0000 (05:17 +0200)
After the tests finish, it is valuable to report and summarize with
existing test log.

This avoid rerun or run the tests again when not necessary.

Reviewed-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Zhangjin Wu <falcon@tinylab.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
tools/testing/selftests/nolibc/Makefile

index f7eff08..56abe04 100644 (file)
@@ -216,6 +216,10 @@ rerun:
        $(Q)qemu-system-$(QEMU_ARCH) -display none -no-reboot -kernel "$(srctree)/$(IMAGE)" -serial stdio $(QEMU_ARGS) > "$(CURDIR)/run.out"
        $(Q)$(REPORT) $(CURDIR)/run.out
 
+# report with existing test log
+report:
+       $(Q)$(REPORT) $(CURDIR)/run.out
+
 clean:
        $(call QUIET_CLEAN, sysroot)
        $(Q)rm -rf sysroot