X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=qemu-sanity-check.spec.in;h=f2d3ad037257a7121d3b1380a0429386d7667f26;hb=e8d7a7e5416392babb4f2e68c995dc8555e3d6c1;hp=94dfa0cad17123738d179c994f5b2d8c4b90dab2;hpb=e708f5e03cfaead43719782d475641f643bd7b6c;p=qemu-sanity-check.git diff --git a/qemu-sanity-check.spec.in b/qemu-sanity-check.spec.in index 94dfa0c..f2d3ad0 100644 --- a/qemu-sanity-check.spec.in +++ b/qemu-sanity-check.spec.in @@ -16,6 +16,15 @@ BuildRequires: /usr/bin/perldoc BuildRequires: cpio 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. +%ifarch %{ix86} x86-64 +BuildRequires: qemu-system-x86 +%endif + +BuildRequires: kernel + %ifarch %{ix86} x86-64 Requires: qemu-system-x86 %endif @@ -41,7 +50,12 @@ make %{?_smp_mflags} %check -make check +%ifarch %{ix86} x86-64 +make check || { + cat test-suite.log + exit 1 +} +%endif %install