-
Notifications
You must be signed in to change notification settings - Fork 255
Unit Testing CCORE
ccore as a part of pyclustering library is covered by unit-tests. Unit-tests of ccore (C++ implementation of some parts of pyclustering library) based on google test framework. The ccore project can be opened via Visual Studio 2015 or Eclipse.
Manually by makefile:
Manual variant is prefereble because it is always keeps up-to-date and provide much more actions. Build and run unit-tests:
$ cd pyclustering/ccore/
$ make ut
$ make utrun
There is target for unit-test debugging:
$ cd pyclustering/ccore/
$ make utdbg
To check memory-leackage (by valgrind) using unit-tests:
$ cd pyclustering/ccore/
$ make valgrind
Eclipse based project:
Unit-test Eclipse project of ccore (it uses existed makefile to build ccore's unit-tests using 'ut' and 'utdbg' targets) can be imported as follows:
- Import project using 'File -> Import -> Existing Projects into Workspace';
- Open folder pyclustering/ccore and press 'Finish' to import ccore project.
- Build Release or Debug version of unit-testing project.
Microsoft Visual Studio 2015 based project:
Unit-test MSVS 2015 project of ccore can be opened using solution 'ccore.sln'.
$ ls pyclustering/ccore/ccore.sln
Choose 'utcore' project, built and run it (do not forget to set it as a StartUp project).