[PATCH 0/5] Update DSCR tests

Benjamin Gray bgray at linux.ibm.com
Tue Mar 7 11:55:10 AEDT 2023


The randomness based DSCR tests currently have a low probability of doing
any writes to the DSCR, making them inefficient in uncovering bugs.

This series adds lockstep variants to these RNG tests, to ensure the happy
path is always tested, and improves the randomness and size of the RNG
tests.

It also removes many iterations of the sysfs DSCR test, allowing the default
timeout to be re-enabled.

Benjamin Gray (5):
  selftests/powerpc/dscr: Correct typos
  selftests/powerpc/dscr: Add lockstep test cases to DSCR explicit tests
  selftests/powerpc/dscr: Improve DSCR explicit random test case
  selftests/powerpc/dscr: Speed up DSCR sysfs tests
  selftests/powerpc/dscr: Restore timeout to DSCR selftests

 tools/testing/selftests/powerpc/dscr/Makefile |   3 +-
 tools/testing/selftests/powerpc/dscr/dscr.h   |  22 +-
 .../powerpc/dscr/dscr_default_test.c          | 223 +++++++++++-------
 .../powerpc/dscr/dscr_explicit_test.c         | 173 +++++++++++---
 .../powerpc/dscr/dscr_inherit_test.c          |   4 +-
 .../selftests/powerpc/dscr/dscr_sysfs_test.c  |  11 +-
 .../selftests/powerpc/dscr/dscr_user_test.c   |   4 +-
 tools/testing/selftests/powerpc/dscr/settings |   1 -
 8 files changed, 300 insertions(+), 141 deletions(-)
 delete mode 100644 tools/testing/selftests/powerpc/dscr/settings


base-commit: 422fbcbf91303706823bc3babceb1df1a42112bf
--
2.39.2


More information about the Linuxppc-dev mailing list