Run tests for one specific module?

#1

Dear all,
I would like to know if it’s possible to run tests only for a specific module? I don’t want to run all of them just for a single one…
Thanks,
Rémi

#2

You can run tests whose name matches a regex with -R, or whose label matches a regex with -L, for example:

ctest -R Hyperspectral
1 Like
#3

Thanks,
I don’t know very well ctest, is it equivalent to make test?
I usually run tests in the following way: cd build then make test

#4

Hi Remi,
yes it is! But you can do more specific thing with ctest!
https://cmake.org/cmake/help/v3.0/manual/ctest.1.html
The basic I am using is :
-VV : verbose output
-L : label , with this if you want to test a module just type : ctest -L OTBModuleName
-R : regex
And without argument it launches all the tests available!

1 Like