Skip to content

unit test

Xiating Xie requested to merge xiext/wukong:gtest into master

To enable unit test, add a test_xx.cc in "tests" folder, and than use ./build.sh to build it. A sample unit test file is in ./tests/test_sample.cc . We use googletest for test framework.

Note: the first time when pulling this request, please use git submodule update --init --recursive to update deps.

To run all the unit test, use export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:PATH_TO_MPI; ./build/coretest; In default, the coretest run all unit tests defined in tests folder. If you want to run individual test, please use filter, please contact me or google "googletest, filter".

For how to write tests and more about googletest, can also google it.

Merge request reports