Testing¶
Mirheo can be tested with a set of regression tests (located in tests
) and unit tests (located in units
).
Regression tests¶
Regression testing makes use of the atest framework. This can be installed as follows:
$ git clone https://gitlab.ethz.ch/mavt-cse/atest.git $ cd atest $ make binNote
By default, this will install the atest executables in
$HOME/bin
folder. This location should be in yourPATH
variable
The regression tests are a set of python scripts. They make use of additional dependencies:
- numpy
- trimesh
- mpi4py
Which can all be installed via pip
.
All tests can be run by typing:
$ cd tests $ make testNote
You need to install the tools before running the tests
Units tests¶
Unit tests are compiled together with the google-test framework.
The unit tests are compiled by adding the option -DBUILD_TESTS=ON
to cmake (see Installation).
The binaries are placed in the build
folder.
$ mir.make units $ cd build $ mir.make testNote
You need to install the tools before running the unit tests
Double precision¶
If compiled with DOUBLE_PRECISION=ON
(see Installation), the reference files for the regression tests are inside the tests/test_data_double
folder.
The tests can be run by typing:
$ cd tests $ make test_double