git.annexia.org
/
qemu-sanity-check.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
spec: Set the qemu-list to a suitable value for recent Fedora.
[qemu-sanity-check.git]
/
qemu-sanity-check.spec.in
diff --git
a/qemu-sanity-check.spec.in
b/qemu-sanity-check.spec.in
index
f2d3ad0
..
cc6ca3a
100644
(file)
--- a/
qemu-sanity-check.spec.in
+++ b/
qemu-sanity-check.spec.in
@@
-19,13
+19,13
@@
BuildRequires: glibc-static
# BuildRequire these in order to let 'make check' run. These are
# not required unless you want to run the tests. Note don't run the
# tests on ARM since qemu isn't likely to work.
# BuildRequire these in order to let 'make check' run. These are
# not required unless you want to run the tests. Note don't run the
# tests on ARM since qemu isn't likely to work.
-%ifarch %{ix86} x86
-
64
+%ifarch %{ix86} x86
_
64
BuildRequires: qemu-system-x86
%endif
BuildRequires: kernel
BuildRequires: qemu-system-x86
%endif
BuildRequires: kernel
-%ifarch %{ix86} x86
-
64
+%ifarch %{ix86} x86
_
64
Requires: qemu-system-x86
%endif
%ifarch armv7hl
Requires: qemu-system-x86
%endif
%ifarch armv7hl
@@
-45,12
+45,14
@@
to test the Linux kernel and/or qemu to make sure they are working.
%build
%build
-%configure
+# NB: canonical_arch is a variable in the final script, so it
+# has to be escaped here.
+%configure --with-qemu-list="qemu-system-\$canonical_arch"
make %{?_smp_mflags}
%check
make %{?_smp_mflags}
%check
-%ifarch %{ix86} x86
-
64
+%ifarch %{ix86} x86
_
64
make check || {
cat test-suite.log
exit 1
make check || {
cat test-suite.log
exit 1