diff options
author | Thomas Huth <[email protected]> | 2024-02-08 21:48:41 +0100 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2024-02-28 20:58:12 +0000 |
commit | ba97ed0af6fe22dd718535ce663297ccd0ff52c5 (patch) | |
tree | fdd036a3fca3560d2030e950e72f6b23b0e436ad /tools/perf/scripts | |
parent | 55f2cf88486cdc504176d4c5ebccdb65ea4be161 (diff) |
KVM: selftests: x86: 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 kselftest_harness.h / kvm_test_harness.h
interface.
To be able to use the interface, we have to break up the huge main()
function here in more fine grained parts - then we can use the new
KVM_ONE_VCPU_TEST() macro to define the individual tests. Since these
are run with a separate VM now, we have also to make sure to create
the expected state at the beginning of each test, so some parts grow
a little bit - which should be OK considering that the individual
tests are more self-contained now.
Suggested-by: David Matlack <[email protected]>
Suggested-by: Sean Christopherson <[email protected]>
Signed-off-by: Thomas Huth <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions