Changed test command for travis
This commit is contained in:
parent
a5078d6cd7
commit
372d601875
2 changed files with 5 additions and 3 deletions
|
|
@ -20,5 +20,5 @@ install:
|
||||||
- export LLVMPY_DYNLINK=1
|
- export LLVMPY_DYNLINK=1
|
||||||
- python setup.py install -q
|
- python setup.py install -q
|
||||||
|
|
||||||
script: python -c "import llvm; llvm.test()"
|
script: cd ~; python -c "import sys;import llvm;sys.exit(0 if llvm.test() == 0 else 1)"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,9 +34,11 @@ class LLVMException(Exception):
|
||||||
def test(verbosity=1):
|
def test(verbosity=1):
|
||||||
"""test(verbosity=1) -> TextTestResult
|
"""test(verbosity=1) -> TextTestResult
|
||||||
|
|
||||||
Run self-test, and return unittest.runner.TextTestResult object.
|
Run self-test, and return the number of failures + errors
|
||||||
"""
|
"""
|
||||||
from llvm.test_llvmpy import run
|
from llvm.test_llvmpy import run
|
||||||
|
|
||||||
return run(verbosity=verbosity)
|
result = run(verbosity=verbosity)
|
||||||
|
|
||||||
|
return len(result.failures) + len(result.errors)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue