[PATCH v2 0/3] selftests/nolibc: improve test report support

From: Zhangjin Wu
Date: Mon Jun 19 2023 - 02:52:55 EST


Hi, Willy

Here is the v2 of our old patchset about test report [1].

The trailing '\r' fixup has been merged, so, here only resend the left
parts with an additional patch to restore the failed tests print.

This patchset is rebased on the dev.2023.06.14a branch of linux-rcu [2].

Tests have passed for 'x86 run':

138 test(s) passed, 0 skipped, 0 failed.
See all results in /labs/linux-lab/src/linux-stable/tools/testing/selftests/nolibc/run.out

Also did 'run-user' for x86, mips and arm64.

Changes from v1 -> v2:

1. selftests/nolibc: add a standalone test report macro

As Willy pointed out, the old method with additional test-report
target not work in 'make -j'.

A new macro is added to share the same report logic among the
run-user, run and rerun targets, the path to test log file is

2. selftests/nolibc: always print the path to test log file

Always print the path to test log file, but move it to a new line to
avoid annoying people when the test pass without any failures.

3. selftests/nolibc: restore the failed tests print

Restore printing of the failed tests to avoid manually opening
the test log file when there are really failues.

Best regards,
Zhangjin
---
[1]: https://lore.kernel.org/lkml/cover.1685936428.git.falcon@xxxxxxxxxxx/
[2]: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git/

Zhangjin Wu (3):
selftests/nolibc: add a standalone test report macro
selftests/nolibc: always print the path to test log file
selftests/nolibc: restore the failed tests print

tools/testing/selftests/nolibc/Makefile | 19 +++++++------------
1 file changed, 7 insertions(+), 12 deletions(-)

--
2.25.1