Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the main function inside the test file #975

Closed
hedaoyuan opened this issue Dec 21, 2016 · 2 comments
Closed

Remove the main function inside the test file #975

hedaoyuan opened this issue Dec 21, 2016 · 2 comments
Assignees

Comments

@hedaoyuan
Copy link
Contributor

Most of the main functions in the test file are the same.
Move function/TestMain.cpp to utils, and remove the main function in the test files.

@hedaoyuan hedaoyuan self-assigned this Dec 21, 2016
@reyoung
Copy link
Collaborator

reyoung commented Dec 21, 2016

It will lead the paddle modules(gserver, trainer, etc.) to depend on gtest library, which could be unnecessary.

Maybe extract to a module only used for unit tests is better.

@hedaoyuan
Copy link
Contributor Author

There is no dependency problem. Only the executable of the test case is linked to TestMain.cpp.

It will lead the paddle modules(gserver, trainer, etc.) to depend on gtest library

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

No branches or pull requests

3 participants