[qemu] Enable qemu-sanity-check, however do not fail the build if it fails.

Richard W.M. Jones rjones at fedoraproject.org
Wed Aug 28 14:23:08 UTC 2013


commit 54891983e0f260aef09015aadbc3a8d3497f4ecc
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Wed Aug 21 14:10:09 2013 +0100

    Enable qemu-sanity-check, however do not fail the build if it fails.

 qemu.spec |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/qemu.spec b/qemu.spec
index 375a813..77348e6 100644
--- a/qemu.spec
+++ b/qemu.spec
@@ -140,7 +140,7 @@
 Summary: QEMU is a FAST! processor emulator
 Name: qemu
 Version: 1.6.0
-Release: 4%{?dist}
+Release: 5%{?dist}
 Epoch: 2
 License: GPLv2+ and LGPLv2+ and BSD
 Group: Development/Tools
@@ -266,6 +266,9 @@ BuildRequires: vte3-devel
 BuildRequires: gettext
 # RDMA migration
 BuildRequires: librdmacm-devel
+# For sanity test
+BuildRequires: qemu-sanity-check-nodeps
+BuildRequires: kernel
 
 %if 0%{?user:1}
 Requires: %{name}-%{user} = %{epoch}:%{version}-%{release}
@@ -985,6 +988,12 @@ rm -rf $RPM_BUILD_ROOT%{_includedir}/cacard
 %check
 make check
 
+# Sanity-check current kernel can boot on this qemu.
+# The results are advisory only.
+%ifarch x86_64
+qemu-sanity-check --qemu=x86_64-softmmu/qemu-system-x86_64 || :
+%endif
+
 %ifarch %{kvm_archs}
 %post %{kvm_package}
 # load kvm modules now, so we can make sure no reboot is needed.
@@ -1386,6 +1395,9 @@ getent passwd qemu >/dev/null || \
 %endif
 
 %changelog
+* Wed Aug 28 2013 Richard W.M. Jones <rjones at redhat.com> - 2:1.6.0-5
+- Enable qemu-sanity-check, however do not fail the build if it fails.
+
 * Wed Aug 21 2013 Richard W.M. Jones <rjones at redhat.com> - 2:1.6.0-4
 - Require newer libssh2 to fix missing libssh2_sftp_fsync (bz #999161)
 


More information about the scm-commits mailing list