Disable isolated test in conda build

This commit is contained in:
Siu Kwan Lam 2014-03-13 13:20:08 -05:00
commit 2410267c8e
3 changed files with 5 additions and 5 deletions

View file

@ -15,7 +15,7 @@ if sys.platform == 'darwin':
s = {'64bit': 'x86_64', '32bit': 'x86'}[platform.architecture()[0]]
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()
print('llvm.__version__: %s' % llvm.__version__)

View file

@ -34,14 +34,14 @@ def _extract_ptrs(objs):
class LLVMException(Exception):
pass
def test(verbosity=3):
def test(verbosity=3, run_isolated=True):
"""test(verbosity=1) -> TextTestResult
Run self-test, and return the number of failures + errors
"""
from llvm.tests import run
result = run(verbosity=verbosity)
result = run(verbosity=verbosity, run_isolated=run_isolated)
errct = len(result.failures) + len(result.errors)
return errct

View file

@ -12,7 +12,7 @@ tests = [] # stores unittest.TestCase objects
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 version: ' + llvm.__version__)
print(sys.version)
@ -48,7 +48,7 @@ def run(verbosity=1):
testresult = runner.run(suite)
print(hp.heap())
if testresult:
if testresult and run_isolated:
# Run isolated tests
print("run isolated tests".center(80, '-'))