simplify unit test by paddle_test_util static lib
Created by: tianbingsz
We need to simplify unit test a little bit by adding paddle_test_util static lib. This is a supporting work to https://github.com/PaddlePaddle/Paddle/pull/1003 and https://github.com/PaddlePaddle/Paddle/pull/1009
The possible gains could be:
-
For example, in #1009, add_unittest(ContextProjectionOpTest ContextProjectionOpTest.cpp ../gserver/tests/TestUtil.cpp) could be simplified as add_simple_unittest(ContextProjectionOpTest).
-
In gserver/tests/CMakeLists.txt, we could remove the dependency of TestUtil.cpp in many unit tests.