From a5d19fc7bf1f7ef9f9aadcaddb528ea0c8045841 Mon Sep 17 00:00:00 2001 From: Bing Xu Date: Tue, 9 Apr 2019 10:59:13 -0700 Subject: [PATCH] [Test] Deprecate Python2 --- tests/scripts/task_python_frontend.sh | 2 -- tests/scripts/task_python_integration.sh | 5 ----- tests/scripts/task_python_topi.sh | 2 -- tests/scripts/task_python_unittest.sh | 3 --- tests/scripts/task_python_vta.sh | 3 --- 5 files changed, 15 deletions(-) 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