KVM: s390: selftests: Use TAP interface in the sync_regs test
authorThomas Huth <thuth@redhat.com>
Tue, 31 May 2022 10:15:52 +0000 (12:15 +0200)
committerChristian Borntraeger <borntraeger@linux.ibm.com>
Wed, 1 Jun 2022 14:57:14 +0000 (16:57 +0200)
commit17e48d8a1ef0ab070b11e7368e14ac45c335de57
tree0b23be0596a0ccd00337d0f9cc0fc907ab608c1f
parent97da92c0ff92f33a7c33533e5fdd3e870f01cc6a
KVM: s390: selftests: Use TAP interface in the sync_regs test

The sync_regs test currently does not have any output (unless one
of the TEST_ASSERT statement fails), so it's hard to say for a user
whether a certain new sub-test has been included in the binary or
not. Let's make this a little bit more user-friendly and include
some TAP output via the kselftests.h interface.
To be able to distinguish the different sub-tests more easily, we
also break up the huge main() function here in more fine grained
parts.

Acked-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Link: https://lore.kernel.org/r/20220531101554.36844-3-thuth@redhat.com
Signed-off-by: Christian Borntraeger <borntraeger@linux.ibm.com>
tools/testing/selftests/kvm/s390x/sync_regs_test.c