task_python_integration.sh 744 Bytes
Newer Older
1
#!/bin/bash
2
export PYTHONPATH=python:apps/extension/python
3
export LD_LIBRARY_PATH=lib:${LD_LIBRARY_PATH}
4

5 6
rm -rf python/tvm/*.pyc python/tvm/*/*.pyc

7 8
# Test TVM
make cython || exit -1
9
make cython3 || exit -1
10

11
# Test extern package package
12
cd apps/extension
13 14
make || exit -1
cd ../..
15
python -m nose -v apps/extension/tests || exit -1
16 17 18

TVM_FFI=cython python -m nose -v tests/python/integration || exit -1
TVM_FFI=ctypes python3 -m nose -v tests/python/integration || exit -1
19 20
TVM_FFI=cython python -m nose -v tests/python/contrib || exit -1
TVM_FFI=ctypes python3 -m nose -v tests/python/contrib || exit -1
21 22 23 24

# Do not enabke OpenGL
# TVM_FFI=cython python -m nose -v tests/webgl || exit -1
# TVM_FFI=ctypes python3 -m nose -v tests/webgl || exit -1