Esempio n. 1
0
import sys
import numba

args = []
if sys.platform.startswith('win32'):
    args += ['-b']
else:
    args += ['-m', '-b']

if not numba.test(*args):
    print("Test failed")
    sys.exit(1)
print('numba.__version__: %s' % numba.__version__)
Esempio n. 2
0
import numba

if not numba.test():
    raise RuntimeError("Test failed")
print("numba.__version__: %s" % numba.__version__)
Esempio n. 3
0
#!/usr/bin/env python

import sys
import numba

sys.exit(0 if numba.test(sys.argv[1:]) == 0 else 1)
Esempio n. 4
0
    if tuple.__itemsize__ == 8:
        blacklist.append('test_numpy_math')
        blacklist.append('test_cstring')
if sys.platform == 'linux2' and tuple.__itemsize__ == 4:
    blacklist.append('test_ctypes_call')
    blacklist.append('test_ctypes')
    if sys.version_info[0] == 3:
        blacklist.append('test_issue_57')

try:
    import meta
except ImportError:
    blacklist.append('test_nosource')

if sys.platform == 'win32' and sys.version_info[0] == 3:
    print("*** Skipping tests ***")
else:
    assert numba.test(blacklist=blacklist) == 0

import os, sys
from numba import minivect

lst = os.listdir(minivect.get_include())
assert 'miniutils.h' in lst
assert 'miniutils.pyx' in lst

import mandel

print('numba.__version__: %s' % numba.__version__)
#assert numba.__version__ == '0.10.0'
Esempio n. 5
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import

import sys
import numba

# TODO: Use argparse
if '--loop' in sys.argv:
    whitelist = [arg for arg in sys.argv[1:] if arg != '--loop']
    sys.exit(numba.test(whitelist, loop=True))
else:
    sys.exit(numba.test(sys.argv[1:]))
Esempio n. 6
0
import sys
import numba
if not numba.test():
    print("Test failed")
    sys.exit(1)
print('numba.__version__: %s' % numba.__version__)
Esempio n. 7
0
#!/usr/bin/env python

import sys
import numba

numba.test(sys.argv[1:])
Esempio n. 8
0
#!/usr/bin/env python
from __future__ import print_function, division, absolute_import
# -*- coding: utf-8 -*-

import sys
import numba

sys.exit(0 if numba.test(sys.argv[1:]) == 0 else 1)
Esempio n. 9
0
import sys
import os
import numba
import subprocess

subprocess.check_call("conda install --yes pip".split())
subprocess.check_call("pip install xmlrunner".split())

workspace = os.environ.get('WORKSPACE', '')    # jenkins environment variable

if workspace:
    xmloutput = os.path.join(workspace, 'test-reports')
else:
    xmloutput = None

try:
    import xmlrunner
except ImportError:
    # Disable xmloutput if xmlrunner is not available
    xmloutput = None

print("xmloutput ", xmloutput)

if not numba.test(xmloutput=xmloutput):
    print("Test failed")
    sys.exit(1)
print('numba.__version__: %s' % numba.__version__)
Esempio n. 10
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import

import sys
import numba

# TODO: Use argparse
if '--loop' in sys.argv:
    whitelist = [arg for arg in sys.argv[1:] if arg != '--loop']
    while True:
        exit_status = numba.test(whitelist)
        if exit_status != 0:
            sys.exit(exit_status)
else:
    sys.exit(numba.test(sys.argv[1:]))
Esempio n. 11
0
import sys
import os
import numba
import subprocess

subprocess.check_call("conda install --yes pip".split())
subprocess.check_call("pip install xmlrunner".split())

workspace = os.environ.get('WORKSPACE', '')  # jenkins environment variable

if workspace:
    xmloutput = os.path.join(workspace, 'test-reports')
else:
    xmloutput = None

try:
    import xmlrunner
except ImportError:
    # Disable xmloutput if xmlrunner is not available
    xmloutput = None

print("xmloutput ", xmloutput)

if not numba.test(xmloutput=xmloutput):
    print("Test failed")
    sys.exit(1)
print('numba.__version__: %s' % numba.__version__)
Esempio n. 12
0
        blacklist.append('test_numpy_math')
        blacklist.append('test_cstring')
if sys.platform == 'linux2' and tuple.__itemsize__ == 4:
    blacklist.append('test_ctypes_call')
    blacklist.append('test_ctypes')
    if sys.version_info[0] == 3:
        blacklist.append('test_issue_57')

try:
    import meta
except ImportError:
    blacklist.append('test_nosource')

if sys.platform == 'win32' and sys.version_info[0] == 3:
    print("*** Skipping tests ***")
else:
    assert numba.test(blacklist=blacklist) == 0

import os, sys
from numba import minivect

lst = os.listdir(minivect.get_include())
assert 'miniutils.h' in lst
assert 'miniutils.pyx' in lst


import mandel

print('numba.__version__: %s' % numba.__version__)
#assert numba.__version__ == '0.10.0'