selftests/powerpc: Add automatically allocating read_file
authorBenjamin Gray <bgray@linux.ibm.com>
Fri, 3 Feb 2023 00:39:47 +0000 (11:39 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 9 Feb 2023 12:56:45 +0000 (23:56 +1100)
commit8d7253dc447473dfcf3f09fb0fa2bd6f7d05b43b
treecbf5ab6fd7a01894b5482ba47c5d6d95dfded4e4
parent5c20de57888f0962e25a0eeec1a59c98056fc42e
selftests/powerpc: Add automatically allocating read_file

A couple of tests roll their own auto-allocating file read logic.

Add a generic implementation and convert them to use it.

Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230203003947.38033-6-bgray@linux.ibm.com
tools/testing/selftests/powerpc/include/utils.h
tools/testing/selftests/powerpc/nx-gzip/gzfht_test.c
tools/testing/selftests/powerpc/syscalls/Makefile
tools/testing/selftests/powerpc/syscalls/rtas_filter.c
tools/testing/selftests/powerpc/utils.c