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 bin

Note

By default, this will install the atest executables in $HOME/bin folder. This location should be in your PATH 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 test

Note

You need to install the tools before running the tests

Units tests

Unit tests are compiled together with the google-test framework. The library must be built in the build folder (see Installation).

$ cd units
$ mir.make
$ mir.make test

Note

You need to install the tools before running the tests