mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
libvirt.spec: Build & run tests in parallel
So far, the main code is built in parallel, which makes it pretty fast. But with a lots of tests we have now I've noticed this part takes too much time to build. The problem was that tests were build and run in a single job. Also, 'make' in the first hunk is useless. The test suite is not built due to 'make all' because there's no .git in the sources unpacked from a tar.xz archive. It's 'make check' which triggers tests build. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
478ddedc12
commit
e8861f6971
@ -1290,7 +1290,6 @@ rm -fr %{buildroot}
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
cd tests
|
cd tests
|
||||||
make
|
|
||||||
# These tests don't current work in a mock build root
|
# These tests don't current work in a mock build root
|
||||||
for i in nodeinfotest seclabeltest
|
for i in nodeinfotest seclabeltest
|
||||||
do
|
do
|
||||||
@ -1299,7 +1298,7 @@ do
|
|||||||
printf '#!/bin/sh\nexit 0\n' > $i
|
printf '#!/bin/sh\nexit 0\n' > $i
|
||||||
chmod +x $i
|
chmod +x $i
|
||||||
done
|
done
|
||||||
if ! make check VIR_TEST_DEBUG=1
|
if ! make %{?_smp_mflags} check VIR_TEST_DEBUG=1
|
||||||
then
|
then
|
||||||
cat test-suite.log || true
|
cat test-suite.log || true
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user