From: "Radim Krčmář" <rkrcmar@redhat.com>
To: kvm@vger.kernel.org
Cc: Paolo Bonzini <pbonzini@redhat.com>, Andrew Jones <drjones@redhat.com>
Subject: [PATCH kvm-unit-tests 5/6] x86/hyperv_synic: check for support before testing
Date: Mon, 14 Dec 2015 22:24:20 +0100 [thread overview]
Message-ID: <1450128261-21170-6-git-send-email-rkrcmar@redhat.com> (raw)
In-Reply-To: <1450128261-21170-1-git-send-email-rkrcmar@redhat.com>
It's not easy to distinguish successful unit-test from failed QEMU, so
we check for presence of the needed feature before hand.
x86/hyperv_synic is "skip" instead of "PASS", without KVM/QEMU support.
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
---
Probably not the nicest solution around ...
"dry_run_qemu_and_skip_if_it_fails=true" parameter in unittest.cfg
might be better.
x86/unittests.cfg | 1 +
1 file changed, 1 insertion(+)
diff --git a/x86/unittests.cfg b/x86/unittests.cfg
index 6b94ad93dcf0..32fc5f7037e1 100644
--- a/x86/unittests.cfg
+++ b/x86/unittests.cfg
@@ -182,3 +182,4 @@ arch = x86_64
file = hyperv_synic.flat
smp = 2
extra_params = -cpu kvm64,hv_synic -device hyperv-testdev
+check = echo quit | $qemu -enable-kvm -cpu kvm64,hv_synic -device hyperv-testdev -monitor stdio > /dev/null
--
2.6.4
next prev parent reply other threads:[~2015-12-14 21:24 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-14 21:24 [PATCH kvm-unit-tests 0/6] Improve the output of test runners Radim Krčmář
2015-12-14 21:24 ` [PATCH kvm-unit-tests 1/6] lib/report: allow test skipping Radim Krčmář
2015-12-14 22:00 ` Andrew Jones
2015-12-14 22:12 ` Andrew Jones
2015-12-15 12:54 ` Radim Krčmář
2015-12-14 21:24 ` [PATCH kvm-unit-tests 2/6] x86/*: report skipped tests Radim Krčmář
2015-12-14 22:07 ` Andrew Jones
2015-12-15 12:58 ` Radim Krčmář
2015-12-14 21:24 ` [PATCH kvm-unit-tests 3/6] x86/pmu: expect failure with nmi_watchdog Radim Krčmář
2015-12-14 22:05 ` Andrew Jones
2015-12-15 13:01 ` Radim Krčmář
2015-12-15 15:33 ` Andrew Jones
2015-12-14 21:24 ` [PATCH kvm-unit-tests 4/6] run_tests: generalize check Radim Krčmář
2015-12-14 22:11 ` Andrew Jones
2015-12-15 13:05 ` Radim Krčmář
2015-12-14 21:24 ` Radim Krčmář [this message]
2015-12-14 21:24 ` [PATCH kvm-unit-tests 6/6] run_tests: print summary Radim Krčmář
2015-12-14 22:20 ` [PATCH kvm-unit-tests 0/6] Improve the output of test runners Andrew Jones
2015-12-15 13:10 ` Radim Krčmář
2015-12-15 10:19 ` Paolo Bonzini
2015-12-15 13:13 ` Radim Krčmář
2015-12-15 15:37 ` Andrew Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1450128261-21170-6-git-send-email-rkrcmar@redhat.com \
--to=rkrcmar@redhat.com \
--cc=drjones@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.