powerpc/selftests: Add test for papr-sysparm
authorNathan Lynch <nathanl@linux.ibm.com>
Tue, 12 Dec 2023 17:02:00 +0000 (11:02 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Dec 2023 10:38:21 +0000 (21:38 +1100)
commit76b2ec3faeaa0c8d84705acd64ac0e5a307ce9c2
tree103aa22227d881da1f47859194922c3ec2ea8509
parent9118c5d32bddb5f75bc4f9f31218e70317702502
powerpc/selftests: Add test for papr-sysparm

Consistently testing system parameter access is a bit difficult by
nature -- the set of parameters available depends on the model and
system configuration, and updating a parameter should be considered a
destructive operation reserved for the admin.

So we validate some of the error paths and retrieve the SPLPAR
characteristics string, but not much else.

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231212-papr-sys_rtas-vs-lockdown-v6-13-e9eafd0c8c6c@linux.ibm.com
tools/testing/selftests/powerpc/Makefile
tools/testing/selftests/powerpc/papr_sysparm/.gitignore [new file with mode: 0644]
tools/testing/selftests/powerpc/papr_sysparm/Makefile [new file with mode: 0644]
tools/testing/selftests/powerpc/papr_sysparm/papr_sysparm.c [new file with mode: 0644]