提交 ab53bea1 编写于 作者: Y Yi Wang

Run a specific test

上级 4b0235c1
...@@ -53,6 +53,12 @@ ...@@ -53,6 +53,12 @@
docker run -v $PWD:/paddle paddle:dev bash -c "cd /paddle/build; ctest" docker run -v $PWD:/paddle paddle:dev bash -c "cd /paddle/build; ctest"
``` ```
有时候我们只想运行一个特定的单元测试,比如 `memory_test`,我们可以
```bash
docker run -v $PWD:/paddle paddle:dev bash -c "cd /paddle/build; ctest -V -R memory_test"
```
## 为什么要 Docker 呀? ## 为什么要 Docker 呀?
- 什么是 Docker? - 什么是 Docker?
......
...@@ -53,6 +53,12 @@ Nothing else. Not even Python and GCC, because you can install all build tools ...@@ -53,6 +53,12 @@ Nothing else. Not even Python and GCC, because you can install all build tools
docker run -v $PWD:/paddle paddle:dev bash -c "cd /paddle/build; ctest" docker run -v $PWD:/paddle paddle:dev bash -c "cd /paddle/build; ctest"
``` ```
Sometimes we want to run a specific unit test, say `memory_test`, we can run
```bash
docker run -v $PWD:/paddle paddle:dev bash -c "cd /paddle/build; ctest -V -R memory_test"
```
## Docker, Or Not? ## Docker, Or Not?
- What is Docker? - What is Docker?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册