mirror of
https://github.com/clearlinux/autospec.git
synced 2026-09-05 21:31:33 +00:00
test: Respect parallel build rules during make check
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
This commit is contained in:
@@ -25,6 +25,7 @@ import glob
|
||||
import os
|
||||
import tarball
|
||||
import subprocess
|
||||
import config
|
||||
|
||||
tests_config = ""
|
||||
skip_tests = False
|
||||
@@ -68,8 +69,9 @@ def scan_for_tests(dir):
|
||||
if len(tests_config) > 0:
|
||||
return
|
||||
|
||||
makeflags = "%{?_smp_mflags} " if config.parallel_build else ""
|
||||
testsuites = {
|
||||
"makecheck": "make VERBOSE=1 V=1 %{?_smp_mflags} check",
|
||||
"makecheck": "make VERBOSE=1 V=1 {}check".format(makeflags),
|
||||
"perlcheck": "make TEST_VERBOSE=1 test",
|
||||
"setup.py": "PYTHONPATH=%{buildroot}/usr/lib/python2.7/site-packages python2 setup.py test",
|
||||
"cmake": "pushd clr-build ; make test ; popd",
|
||||
|
||||
Reference in New Issue
Block a user