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

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

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

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

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

# 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