Skip to content
Andrei Novikov edited this page Dec 25, 2017 · 7 revisions

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:

  1. Import project using 'File -> Import -> Existing Projects into Workspace';
  2. Open folder pyclustering/ccore and press 'Finish' to import ccore project.
  3. 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).

Clone this wiki locally