Skip to content

selftests/nolibc: improve test report support

Zhangjin Wu linux-kselftest lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesIn review
  2. v14 patches 11 repliesSuperseded

Changes in v2 from the cover letter

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

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3selftests/nolibc: add a standalone test report macrotools/testing/selftests/nolibc/Makefile+7 -120 replies
2/3selftests/nolibc: always print the path to test log filetools/testing/selftests/nolibc/Makefile+2 -20 replies
3/3selftests/nolibc: restore the failed tests printtools/testing/selftests/nolibc/Makefile+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

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

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/[email protected]/
[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(-)
Signature · 1 line
2.25.1