Skip to content

Comments

simplify the python/paddle/v2/framework/tests/CMakeLists.txt#4044

Merged
luotao1 merged 2 commits intoPaddlePaddle:developfrom
luotao1:pytest_cmake
Sep 13, 2017
Merged

simplify the python/paddle/v2/framework/tests/CMakeLists.txt#4044
luotao1 merged 2 commits intoPaddlePaddle:developfrom
luotao1:pytest_cmake

Conversation

@luotao1
Copy link
Contributor

@luotao1 luotao1 commented Sep 12, 2017

fix #4028
related #3807

@luotao1 luotao1 requested a review from typhoonzero September 12, 2017 10:45
```
py_test(test_mul_op SRCS test_mul_op.py)
```
无需修改 [`python/paddle/v2/framework/tests/CMakeLists.txt`](https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/v2/framework/tests/CMakeLists.txt) 文件,新增的 `test_*.py` 单元测试会被自动加入工程。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感觉既然是"无需修改",就可以不用再提及这个Cmake文件了。文档的前面应该也有类似的地方。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. 文档前面类似的地方也做了修改。

Copy link
Contributor

@typhoonzero typhoonzero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@luotao1 luotao1 merged commit 6d2e87f into PaddlePaddle:develop Sep 13, 2017
@luotao1 luotao1 deleted the pytest_cmake branch September 13, 2017 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

simplify the python/paddle/v2/framework/tests/CMakeLists.txt

2 participants