Disable isolated test in conda build
This commit is contained in:
parent
bc12aae8c1
commit
2410267c8e
3 changed files with 5 additions and 5 deletions
|
|
@ -15,7 +15,7 @@ if sys.platform == 'darwin':
|
||||||
s = {'64bit': 'x86_64', '32bit': 'x86'}[platform.architecture()[0]]
|
s = {'64bit': 'x86_64', '32bit': 'x86'}[platform.architecture()[0]]
|
||||||
assert target.triple.startswith(s + '-apple-darwin')
|
assert target.triple.startswith(s + '-apple-darwin')
|
||||||
|
|
||||||
assert llvm.test(verbosity=2) == 0
|
assert llvm.test(verbosity=2, run_isolated=False) == 0
|
||||||
check_intrinsics.main()
|
check_intrinsics.main()
|
||||||
|
|
||||||
print('llvm.__version__: %s' % llvm.__version__)
|
print('llvm.__version__: %s' % llvm.__version__)
|
||||||
|
|
|
||||||
|
|
@ -34,14 +34,14 @@ def _extract_ptrs(objs):
|
||||||
class LLVMException(Exception):
|
class LLVMException(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def test(verbosity=3):
|
def test(verbosity=3, run_isolated=True):
|
||||||
"""test(verbosity=1) -> TextTestResult
|
"""test(verbosity=1) -> TextTestResult
|
||||||
|
|
||||||
Run self-test, and return the number of failures + errors
|
Run self-test, and return the number of failures + errors
|
||||||
"""
|
"""
|
||||||
from llvm.tests import run
|
from llvm.tests import run
|
||||||
|
|
||||||
result = run(verbosity=verbosity)
|
result = run(verbosity=verbosity, run_isolated=run_isolated)
|
||||||
errct = len(result.failures) + len(result.errors)
|
errct = len(result.failures) + len(result.errors)
|
||||||
|
|
||||||
return errct
|
return errct
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ tests = [] # stores unittest.TestCase objects
|
||||||
isolated_tests = [] # stores modue name
|
isolated_tests = [] # stores modue name
|
||||||
|
|
||||||
|
|
||||||
def run(verbosity=1):
|
def run(verbosity=1, run_isolated=True):
|
||||||
print('llvmpy is installed in: ' + os.path.dirname(__file__))
|
print('llvmpy is installed in: ' + os.path.dirname(__file__))
|
||||||
print('llvmpy version: ' + llvm.__version__)
|
print('llvmpy version: ' + llvm.__version__)
|
||||||
print(sys.version)
|
print(sys.version)
|
||||||
|
|
@ -48,7 +48,7 @@ def run(verbosity=1):
|
||||||
testresult = runner.run(suite)
|
testresult = runner.run(suite)
|
||||||
print(hp.heap())
|
print(hp.heap())
|
||||||
|
|
||||||
if testresult:
|
if testresult and run_isolated:
|
||||||
# Run isolated tests
|
# Run isolated tests
|
||||||
print("run isolated tests".center(80, '-'))
|
print("run isolated tests".center(80, '-'))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue