diff --git a/Jenkinsfile b/Jenkinsfile index f5ff17efcd954..fa055cb6ac0d7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -216,7 +216,7 @@ stage('Build') { } stage('Unit Test') { - parallel 'python2/3: GPU': { + parallel 'python3: GPU': { node('GPU') { ws('workspace/tvm/ut-python-gpu') { init_git() @@ -228,7 +228,7 @@ stage('Unit Test') { } } }, - 'python2/3: i386': { + 'python3: i386': { node('CPU') { ws('workspace/tvm/ut-python-i386') { init_git() diff --git a/tests/scripts/task_python_frontend.sh b/tests/scripts/task_python_frontend.sh index ffcd0a1049149..1679595e712be 100755 --- a/tests/scripts/task_python_frontend.sh +++ b/tests/scripts/task_python_frontend.sh @@ -24,14 +24,12 @@ export PYTHONPATH=nnvm/python:python:topi/python export OMP_NUM_THREADS=1 # Rebuild cython -make cython make cython3 echo "Running relay TFLite frontend test..." python3 -m nose -v tests/python/frontend/tflite echo "Running nnvm unittest..." -python -m nose -v nnvm/tests/python/unittest python3 -m nose -v nnvm/tests/python/unittest echo "Running nnvm compiler test..." diff --git a/tests/scripts/task_python_integration.sh b/tests/scripts/task_python_integration.sh index 54e41d39e6e24..226134c2a9710 100755 --- a/tests/scripts/task_python_integration.sh +++ b/tests/scripts/task_python_integration.sh @@ -25,7 +25,6 @@ export LD_LIBRARY_PATH="build:${LD_LIBRARY_PATH:-}" rm -rf python/tvm/*.pyc python/tvm/*/*.pyc python/tvm/*/*/*.pyc # Test TVM -make cython make cython3 # Test extern package @@ -33,14 +32,10 @@ cd apps/extension rm -rf lib make cd ../.. -python -m nose -v apps/extension/tests -TVM_FFI=cython python -m nose -v tests/python/integration TVM_FFI=ctypes python3 -m nose -v tests/python/integration -TVM_FFI=cython python -m nose -v tests/python/contrib TVM_FFI=ctypes python3 -m nose -v tests/python/contrib -TVM_FFI=cython python -m nose -v tests/python/relay TVM_FFI=ctypes python3 -m nose -v tests/python/relay # Do not enable OpenGL diff --git a/tests/scripts/task_python_topi.sh b/tests/scripts/task_python_topi.sh index bd89604c52ef6..a204f38c6cc62 100755 --- a/tests/scripts/task_python_topi.sh +++ b/tests/scripts/task_python_topi.sh @@ -22,11 +22,9 @@ set -u export PYTHONPATH=python:topi/python # Rebuild cython -make cython make cython3 rm -rf python/tvm/*.pyc python/tvm/*/*.pyc python/tvm/*/*/*.pyc rm -rf topi/python/topi/*.pyc topi/python/topi/*/*.pyc topi/python/topi/*/*/*.pyc topi/python/topi/*/*/*/*.pyc -python -m nose -v topi/tests/python python3 -m nose -v topi/tests/python diff --git a/tests/scripts/task_python_unittest.sh b/tests/scripts/task_python_unittest.sh index 6f6b2777d1d0f..7879c8d64e111 100755 --- a/tests/scripts/task_python_unittest.sh +++ b/tests/scripts/task_python_unittest.sh @@ -23,9 +23,6 @@ export PYTHONPATH=python:topi/python rm -rf python/tvm/*.pyc python/tvm/*/*.pyc python/tvm/*/*/*.pyc -TVM_FFI=ctypes python -m nose -v tests/python/unittest TVM_FFI=ctypes python3 -m nose -v tests/python/unittest -make cython make cython3 -TVM_FFI=cython python -m nose -v tests/python/unittest TVM_FFI=cython python3 -m nose -v tests/python/unittest diff --git a/tests/scripts/task_python_vta.sh b/tests/scripts/task_python_vta.sh index be0f0c694aab9..4345fc2ba39ba 100755 --- a/tests/scripts/task_python_vta.sh +++ b/tests/scripts/task_python_vta.sh @@ -25,13 +25,10 @@ rm -rf python/tvm/*.pyc python/tvm/*/*.pyc python/tvm/*/*/*.pyc python/tvm/*/*/* rm -rf ~/.tvm # Rebuild cython -make cython make cython3 echo "Running unittest..." -python -m nose -v vta/tests/python/unittest python3 -m nose -v vta/tests/python/unittest echo "Running integration test..." -python -m nose -v vta/tests/python/integration python3 -m nose -v vta/tests/python/integration