diff --git a/README.md b/README.md index 6567b263a..084cf900c 100644 --- a/README.md +++ b/README.md @@ -112,10 +112,15 @@ unset LLVM_BUILD_DIR LLVM_INCLUDE_DIRS LLVM_LIBRARY_DIR LLVM_SYSPATH ## Running tests -After installation, you can run tests in the backend directory: +After installation, you can run tests: ```shell +# nvidia +cd python/test +python3 -m pytest -s +# other backends cd third_party/backendxxx/python/test python3 -m pytest -s +python3 test_xxx.py ``` ## Contributing diff --git a/README_cn.md b/README_cn.md index 047e1e861..359b1ce86 100644 --- a/README_cn.md +++ b/README_cn.md @@ -110,10 +110,15 @@ unset LLVM_BUILD_DIR LLVM_INCLUDE_DIRS LLVM_LIBRARY_DIR LLVM_SYSPATH ## 运行测试 -安装完成后可以在后端目录下运行测试: +安装完成后可以在设备支持的环境下运行测试: ```shell +# nvidia +cd python/test +python3 -m pytest -s +# other backends cd third_party/backendxxx/python/test python3 -m pytest -s +python3 test_xxx.py ``` ## 关于贡献