[PATCH 0/5] Expand selftest utils

Michael Ellerman patch-notifications at ellerman.id.au
Wed Feb 15 23:40:32 AEDT 2023


On Fri, 3 Feb 2023 11:39:42 +1100, Benjamin Gray wrote:
> Started this when writing tests for a feature I'm working on, needing a way to
> read/write numbers to system files. After writing some utils to safely handle
> file IO and parsing, I realised I'd made the ~6th file read/write implementation
> and only(?) number parser that checks all the failure modes when expecting to
> parse a single number from a file.
> 
> So these utils ended up becoming this series. I also modified some other test
> utils I came across while doing so. My understanding is selftests are not expected
> to be backported, so I wasn't concerned about only introducing new utils and leaving
> the existing implementations be.
> 
> [...]

Applied to powerpc/next.

[1/5] selftests/powerpc: Add generic read/write file util
      https://git.kernel.org/powerpc/c/a974f0c131891027fe8490e654a220151b4caa82
[2/5] selftests/powerpc: Add read/write debugfs file, int
      https://git.kernel.org/powerpc/c/121d340be9a17ed89d523c56203908c01e09a306
[3/5] selftests/powerpc: Parse long/unsigned long value safely
      https://git.kernel.org/powerpc/c/d1bc05b7bf02f8635fe6c445f67d78f85234cbb7
[4/5] selftests/powerpc: Add {read,write}_{long,ulong}
      https://git.kernel.org/powerpc/c/5c20de57888f0962e25a0eeec1a59c98056fc42e
[5/5] selftests/powerpc: Add automatically allocating read_file
      https://git.kernel.org/powerpc/c/8d7253dc447473dfcf3f09fb0fa2bd6f7d05b43b

cheers


More information about the Linuxppc-dev mailing list