]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0676362470bd2d0eab3e11f681652d716bc4ae05
tree0b23be0596a0ccd00337d0f9cc0fc907ab608c1f
parent8cf15235f6e5ee253efd8fb62e484b59306f03ab
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